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

wdk.logistics.wcs.command.pull.device.command (根据deviceUttCode批量拉取任务)

拉取下发给硬件的指令。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
warehouse_code String 可选 b2cCode 仓库code
device_no String 可选 DEFAULT 设备编号
biz_type Number 可选 1 业务类型
device_utt_code_list String 可选 B971234 设备注册的唯一号

响应参数

名称 类型 示例值 描述
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);
WdkLogisticsWcsCommandPullDeviceCommandRequest req = new WdkLogisticsWcsCommandPullDeviceCommandRequest();
req.setWarehouseCode("b2cCode");
req.setDeviceNo("DEFAULT");
req.setBizType(1L);
req.setDeviceUttCodeList("B971234");
WdkLogisticsWcsCommandPullDeviceCommandResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wdk_logistics_wcs_command_pull_device_command_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_pull_device_command_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

返回
顶部