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

qimen.aliexpress.logistics.sellershipmentsupportsubtradeorder (支持子订单声明发货接口)

支持子订单声明发货接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
id String 必须 cn12343523 卖家登录的login_id
sub_trade_order_list AeopSellerShipmentSubTradeOrderDTO [] 必须
  • 最大列表长度:999
  • 声明发货信息
    • shipment_list
    • AeopShipmentDTO []
    • 可选
    • 包裹声明发货信息
    • └ service_name
    • String
    • 可选
    • CAINIAO_STANDARD
    • 用户选择的实际发货物流服务(物流服务key:该接口根据api.listLogisticsService列出平台所支持的物流服务 进行获取目前所支持的物流。平台支持物流服务详细一览表详见论坛链接 (http://sale.aliexpress.com/seller/shipping_methods_list.htm)
    • └ tracking_web_site
    • String
    • 可选
    • www.baidu.com
    • 追踪网址
    • └ logistics_no
    • String
    • 可选
    • LT123456789CN
    • 运单号
    • └ sub_trade_order_index
    • Number
    • 可选
    • 1
    • 子订单序号,从1开始
    • └ send_type
    • String
    • 可选
    • part
    • 声明发货类型:part(部分发货),all(全部发货)
    • └ ioss
    • String
    • 可选
    • XX1234567890
    • ioss税号
    trade_order_id Number 必须 778824234234 交易订单号

    响应参数

    名称 类型 示例值 描述
    sub_trade_order_list AeopSellerShipmentSubTradeOrderDTO [] 结果
    • shipment_list
    • AeopShipmentDTO []
    • 包裹声明发货结果
    • └ service_name
    • String
    • CAINIAO_STANDARD
    • 用户选择的实际发货物流服务(物流服务key:该接口根据api.listLogisticsService列出平台所支持的物流服务 进行获取目前所支持的物流。平台支持物流服务详细一览表详见论坛链接 (http://sale.aliexpress.com/seller/shipping_methods_list.htm)
    • └ tracking_web_site
    • String
    • www.baidu.com
    • 追踪网址
    • └ logistics_no
    • String
    • LT123456789CN
    • 运单号
    • └ sub_trade_order_index
    • String
    • 1
    • 子订单序号,从1开始
    • └ send_type
    • String
    • all
    • 声明发货类型:part(部分发货),all(全部发货)
    trade_order_id Number 778824234234 交易订单号
    error_code String -1 调用出错码
    error_msg String System error 调用出错信息
    is_success Boolean true 调用是否成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
    AliexpressLogisticsSellershipmentsupportsubtradeorderRequest req = new AliexpressLogisticsSellershipmentsupportsubtradeorderRequest();
    req.setId("cn12343523");
    List<AliexpressLogisticsSellershipmentsupportsubtradeorderRequest.AeopSellerShipmentSubTradeOrderDTO> list2 = new ArrayList<AliexpressLogisticsSellershipmentsupportsubtradeorderRequest.AeopSellerShipmentSubTradeOrderDTO>();
    AliexpressLogisticsSellershipmentsupportsubtradeorderRequest.AeopSellerShipmentSubTradeOrderDTO obj3 = new AliexpressLogisticsSellershipmentsupportsubtradeorderRequest.AeopSellerShipmentSubTradeOrderDTO();
    list2.add(obj3);
    List<AliexpressLogisticsSellershipmentsupportsubtradeorderRequest.AeopShipmentDTO> list6 = new ArrayList<AliexpressLogisticsSellershipmentsupportsubtradeorderRequest.AeopShipmentDTO>();
    AliexpressLogisticsSellershipmentsupportsubtradeorderRequest.AeopShipmentDTO obj7 = new AliexpressLogisticsSellershipmentsupportsubtradeorderRequest.AeopShipmentDTO();
    list6.add(obj7);
    obj7.setServiceName("CAINIAO_STANDARD");
    obj7.setTrackingWebSite("www.baidu.com");
    obj7.setLogisticsNo("LT123456789CN");
    list4.setShipmentList(list6);
    obj3.setSubTradeOrderIndex(1L);
    obj3.setSendType("part");
    obj3.setIoss("XX1234567890");
    req.setSubTradeOrderList(list2);
    req.setTradeOrderId(778824234234L);
    AliexpressLogisticsSellershipmentsupportsubtradeorderResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <sub_trade_order_list>
        <aeop_seller_shipment_sub_trade_order_d_t_o>
            <shipment_list>
                <aeop_shipment_d_t_o>
                    <service_name>CAINIAO_STANDARD</service_name>
                    <tracking_web_site>www.baidu.com</tracking_web_site>
                    <logistics_no>LT123456789CN</logistics_no>
                </aeop_shipment_d_t_o>
            </shipment_list>
            <sub_trade_order_index>1</sub_trade_order_index>
            <send_type>all</send_type>
        </aeop_seller_shipment_sub_trade_order_d_t_o>
    </sub_trade_order_list>
    <trade_order_id>778824234234</trade_order_id>
    <error_code>-1</error_code>
    <error_msg>System error</error_msg>
    <is_success>true</is_success>
    

    异常示例

    • 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

    返回
    顶部