文档中心 > API类目 > AE-奇门API

qimen.aliexpress.logistics.getprintinfo (获取线上发货标签)

获取线上发货标签(线上物流发货专用接口)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
id String 必须 cn12343523 卖家登录的login_id
international_logistics_id String 必须 RE700150389CN 国际运单号

响应参数

名称 类型 示例值 描述
result String 0 通过国际订单号获取的body内容用base64转码后生成运单标签的pdf字节流。
result_success Boolean true 调用是否成功
error_desc String System error 调用报错信息
error_code String invalid-request 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
AliexpressLogisticsGetprintinfoRequest req = new AliexpressLogisticsGetprintinfoRequest();
req.setId("cn12343523");
req.setInternationalLogisticsId("RE700150389CN");
AliexpressLogisticsGetprintinfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<result>0</result>
<result_success>true</result_success>
<error_desc>System error</error_desc>
<error_code>invalid-request</error_code>

异常示例

  • 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

返回
顶部