文档中心 > API类目 > 全球速卖通-物流管理

aliexpress.logistics.local.getwaybillbypdf (本对本电子面单打印)

本对本电子面单打印 (不支持AE跨境)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
warehouse_order_id Number 必须 3546234234 Logistics order No
intl_tracking_no String 必须 LN123123123CN waybill number (tracking number)
print_detail Boolean 可选 false option to print package bill

响应参数

名称 类型 示例值 描述
result HsfResult response result
  • └ success
  • Boolean
  • true
  • outcome of request
  • └ error_code
  • String
  • P-088-0000-00-99-000
  • error code
  • └ error_msg
  • String
  • 系统异常
  • error message
  • └ data
  • Json
  • {"Content-Disposition":"attachment;filename=5000003870318","body":"Ay4fyiTmJLpfnci4mFCOcXdRqz","StatusCode":200,"Content-Type":"application/x-zip-compressed"}
  • PDF data flow with BASE 64

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressLogisticsLocalGetwaybillbypdfRequest req = new AliexpressLogisticsLocalGetwaybillbypdfRequest();
req.setWarehouseOrderId(3546234234L);
req.setIntlTrackingNo("LN123123123CN");
req.setPrintDetail(false);
AliexpressLogisticsLocalGetwaybillbypdfResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_logistics_local_getwaybillbypdf_response>
    <result>
        <success>true</success>
        <error_code>P-088-0000-00-99-000</error_code>
        <error_msg>系统异常</error_msg>
        <data>{&quot;Content-Disposition&quot;:&quot;attachment;filename=5000003870318&quot;,&quot;body&quot;:&quot;Ay4fyiTmJLpfnci4mFCOcXdRqz&quot;,&quot;StatusCode&quot;:200,&quot;Content-Type&quot;:&quot;application/x-zip-compressed&quot;}</data>
    </result>
</aliexpress_logistics_local_getwaybillbypdf_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

返回
顶部