文档中心 > API类目 > 菜鸟仓配API

alibaba.cainiao.whc.warehouse.tms.query (获取面单)

获取面单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
package_query_d_t_o PackageQueryDTO 可选 入参
  • └ token_code
  • String
  • 可选
  • 20111xxx
  • 同城令牌号
  • └ node_code
  • String
  • 可选
  • 20111xxx
  • 仓Code
  • └ work_unit_id
  • String
  • 可选
  • lbx
  • 作业单元ID

响应参数

名称 类型 示例值 描述
result Result 结果
  • data
  • Data
  • data
  • route_nodes
  • RouteNodes []
  • 路由节点
  • └ node_index
  • String
  • 1
  • 节点序号
  • └ node_type
  • String
  • 1
  • 节点类型
  • └ node_code
  • String
  • 大润发闸北店
  • 节点名称
  • └ token_codes
  • String []
  • 令牌列表
  • └ operational_requirement
  • String
  • 温层:冷 服务要求:贵品
  • 作业要求
  • └ merge_order_tag
  • String
  • 多-2
  • 合单标
  • └ buyer_address
  • String
  • xxxx
  • 收件人地址
  • └ buyer_phone
  • String
  • 138****1234
  • 收件人电话
  • └ buyer_name
  • String
  • 张三
  • 收件人名称
  • └ time_order_tag
  • String
  • 早001
  • 末端合流标示
  • └ aoi_name
  • String
  • 阿里巴巴西溪园区
  • AOI名称
  • └ route_area
  • String
  • 123456
  • 区块ID
  • └ wave_time
  • String
  • 09:00:00~13:00:00
  • 波次时间
  • └ fulfill_date
  • String
  • 2020-11-26
  • 应履约日期
  • └ end_rdc_short_code
  • String
  • 1
  • 1
  • └ site_short_code
  • String
  • 1
  • 1
  • └ end_chute_short_code
  • String
  • 1
  • 1
  • └ success
  • Boolean
  • true
  • 成功
  • └ code
  • String
  • 1001
  • 1001
  • └ message
  • String
  • 1001
  • 1001

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCainiaoWhcWarehouseTmsQueryRequest req = new AlibabaCainiaoWhcWarehouseTmsQueryRequest();
AlibabaCainiaoWhcWarehouseTmsQueryRequest.PackageQueryDTO obj1 = new AlibabaCainiaoWhcWarehouseTmsQueryRequest.PackageQueryDTO();
obj1.setTokenCode("20111xxx");
obj1.setNodeCode("20111xxx");
obj1.setWorkUnitId("lbx");
req.setPackageQueryDTO(obj1);
AlibabaCainiaoWhcWarehouseTmsQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_cainiao_whc_warehouse_tms_query_response>
    <result>
        <data>
            <route_nodes>
                <route_nodes>
                    <node_index>1</node_index>
                    <node_type>1</node_type>
                    <node_code>大润发闸北店</node_code>
                </route_nodes>
            </route_nodes>
            <operational_requirement>温层:冷 服务要求:贵品</operational_requirement>
            <merge_order_tag>多-2</merge_order_tag>
            <buyer_address>xxxx</buyer_address>
            <buyer_phone>138****1234</buyer_phone>
            <buyer_name>张三</buyer_name>
            <time_order_tag>早001</time_order_tag>
            <aoi_name>阿里巴巴西溪园区</aoi_name>
            <route_area>123456</route_area>
            <wave_time>09:00:00~13:00:00</wave_time>
            <fulfill_date>2020-11-26</fulfill_date>
            <end_rdc_short_code>1</end_rdc_short_code>
            <site_short_code>1</site_short_code>
            <end_chute_short_code>1</end_chute_short_code>
        </data>
        <success>true</success>
        <code>1001</code>
        <message>1001</message>
    </result>
</alibaba_cainiao_whc_warehouse_tms_query_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

返回
顶部