文档中心 > API类目 > 五道口API

wdk.logistics.wcs.command.pullbycode (硬件通过指令编码拉取指令数据)

硬件通过线下给到它的指令编码拉取指令数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_type Number 必须 1 业务类型
unique_keys String [] 必须 '123','456','789'
  • 最大列表长度:10
  • 指令号
    device_no String 必须 DEFAULT 设备编号
    warehouse_code String 必须 b2cCode 仓库code

    响应参数

    名称 类型 示例值 描述
    data WcsCommandQueryResponse 响应
    • └ device_no
    • String
    • DEFAULT
    • 设备编号
    • └ biz_type
    • Number
    • 1
    • 业务类型
    • └ warehouse_code
    • String
    • b2cCode
    • 仓库编号
    • commands
    • Commands []
    • 指令列表
    • └ content
    • String
    • {"a":"b"}
    • 指令内容
    • └ uuid
    • String
    • 1234567890
    • 对外唯一编号

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    WdkLogisticsWcsCommandPullbycodeRequest req = new WdkLogisticsWcsCommandPullbycodeRequest();
    req.setBizType(1L);
    req.setUniqueKeys("'123','456','789'");
    req.setDeviceNo("DEFAULT");
    req.setWarehouseCode("b2cCode");
    WdkLogisticsWcsCommandPullbycodeResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <wdk_logistics_wcs_command_pullbycode_response>
        <data>
            <device_no>DEFAULT</device_no>
            <biz_type>1</biz_type>
            <warehouse_code>b2cCode</warehouse_code>
            <commands>
                <commands>
                    <content>{&quot;a&quot;:&quot;b&quot;}</content>
                    <uuid>1234567890</uuid>
                </commands>
            </commands>
        </data>
    </wdk_logistics_wcs_command_pullbycode_response>

    异常示例

    • XML示例
    • JSON示例
    <error_response>
        <code>50</code>
        <msg>Remote service error</msg>
        <sub_code>isv.invalid-parameter</sub_code>
        <sub_msg>非法参数</sub_msg>
    </error_response>

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部