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

qimen.aliexpress.logistics.getprintinfos (批量获取线上发货标签)

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

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
id String 必须 cn12343523 卖家登录的login_id
print_detail Boolean 可选 true 是否打印详情
warehouse_order_query_d_t_os Struct [] 必须
  • 最大列表长度:999
  • 批量查询线上发货信息进去打印,列表类型,以json格式来表达。{internationalLogisticsId为国际运单号(必填)}
    • └ logistics_id
    • String
    • 可选
    • 123432423
    • 物流订单号
    • └ international_logistics_id
    • String
    • 必须
    • RE700150389CN
    • 国际运单号

    响应参数

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

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
    AliexpressLogisticsGetprintinfosRequest req = new AliexpressLogisticsGetprintinfosRequest();
    req.setId("cn12343523");
    req.setPrintDetail(true);
    List<AliexpressLogisticsGetprintinfosRequest.Struct> list2 = new ArrayList<AliexpressLogisticsGetprintinfosRequest.Struct>();
    AliexpressLogisticsGetprintinfosRequest.Struct obj3 = new AliexpressLogisticsGetprintinfosRequest.Struct();
    list2.add(obj3);
    obj3.setLogisticsId("123432423");
    obj3.setInternationalLogisticsId("RE700150389CN");
    req.setWarehouseOrderQueryDTOs(list2);
    AliexpressLogisticsGetprintinfosResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <result>{key,value}</result>
    <result_success>true</result_success>
    <error_desc>System error</error_desc>
    <error_code>15</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

    返回
    顶部