文档中心 > API类目 > 菜鸟集货API

cainiao.global.im.pickup.bigbag.waybill.info (大包面单查询)

大包面单查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bigbag_waybill_request BigbagWaybillRequest 必须 bigbagId和appointmentOrderId必填一个
  • └ seller_id
  • Number
  • 必须
  • 123
  • 商家id
  • └ bigbag_id
  • Number
  • 可选
  • 2345
  • 大包id
  • └ appointment_order_id
  • Number
  • 可选
  • 12342
  • 预约单id

响应参数

名称 类型 示例值 描述
hsf_result HsfResult hsfResult
  • bigbag_waybill_response
  • BigbagWaybillResponse
  • 响应
  • └ bigbag_id
  • Number
  • 34
  • 大包id
  • └ bigbag_code
  • String
  • XXXXX
  • 大包Code
  • └ tracking_number
  • String
  • XXXXX
  • 大包运单号
  • └ sub_waybill_nos
  • String
  • [JD011100003656642724,JD011100003656642725]
  • 大包子运单号集合(用,分隔 )
  • └ file_context
  • String
  • Base64Context
  • 面单内荣
  • └ file_name
  • String
  • 2206729397105_LP00490532401468.pdf
  • 面单文件名称
  • └ image_format
  • String
  • pdf
  • 面单格式
  • └ success
  • Boolean
  • true
  • 是否响应正常
  • └ error_code
  • String
  • xxxxx
  • 异常code
  • └ internal_error_code
  • String
  • xxxxx
  • 网络异常code
  • └ error_msg
  • String
  • xxxxx
  • 异常消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoGlobalImPickupBigbagWaybillInfoRequest req = new CainiaoGlobalImPickupBigbagWaybillInfoRequest();
CainiaoGlobalImPickupBigbagWaybillInfoRequest.BigbagWaybillRequest obj1 = new CainiaoGlobalImPickupBigbagWaybillInfoRequest.BigbagWaybillRequest();
obj1.setSellerId(123L);
obj1.setBigbagId(2345L);
obj1.setAppointmentOrderId(12342L);
req.setBigbagWaybillRequest(obj1);
CainiaoGlobalImPickupBigbagWaybillInfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_global_im_pickup_bigbag_waybill_info_response>
    <hsf_result>
        <bigbag_waybill_response>
            <bigbag_id>34</bigbag_id>
            <bigbag_code>XXXXX</bigbag_code>
            <tracking_number>XXXXX</tracking_number>
            <sub_waybill_nos>[JD011100003656642724,JD011100003656642725]</sub_waybill_nos>
            <file_context>Base64Context</file_context>
            <file_name>2206729397105_LP00490532401468.pdf</file_name>
            <image_format>pdf</image_format>
        </bigbag_waybill_response>
        <success>true</success>
        <error_code>xxxxx</error_code>
        <internal_error_code>xxxxx</internal_error_code>
        <error_msg>xxxxx</error_msg>
    </hsf_result>
</cainiao_global_im_pickup_bigbag_waybill_info_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

返回
顶部