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

qimen.aliexpress.logistics.sellermodifiedshipmentsupportsubtradeorder (支持对子订单进行修改声明发货的接口)

支持对子订单进行修改声明发货的接口

公共参数

请求参数

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

    响应参数

    名称 类型 示例值 描述
    sub_trade_order_list AeopSellerShipmentSubTradeOrderDto [] 修改声明发货结果
    • shipment_list
    • AeopShipmentDto []
    • 包裹声明发货结果
    • └ service_name
    • String
    • 物流公司名称
    • CAINIAO_STANDARD
    • └ error_msg
    • String
    • system error
    • 错误提示
    • └ error_code
    • String
    • -100
    • 错误码
    • └ tracking_web_site
    • String
    • www.17track.com
    • 追踪网址
    • └ logistics_no
    • String
    • LT123456789CN
    • 运单号
    • └ sub_trade_order_index
    • Number
    • 1
    • 子订单序号,从1开始
    • └ error_msg
    • String
    • system error
    • 错误提示
    • └ send_type
    • String
    • part
    • 声明发货类型:part(部分发货),all(全部发货)
    • └ error_code
    • String
    • -100
    • 错误码
    old_logistics_no String LV87654321CN 旧的运单号
    old_serivce_name String EMS 旧的物流服务名称
    trade_order_id Number 888887777766 交易订单号
    error_code String 0 调用出错码
    error_msg String Error message 调用出错信息
    is_success Boolean true 调用是否成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
    AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest req = new AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest();
    req.setId("cn12343523");
    List<AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest.AeopSellerShipmentSubTradeOrderDTO> list2 = new ArrayList<AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest.AeopSellerShipmentSubTradeOrderDTO>();
    AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest.AeopSellerShipmentSubTradeOrderDTO obj3 = new AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest.AeopSellerShipmentSubTradeOrderDTO();
    list2.add(obj3);
    obj3.setSendType("part");
    obj3.setSubTradeOrderIndex(1L);
    List<AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest.AeopShipmentDTO> list6 = new ArrayList<AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest.AeopShipmentDTO>();
    AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest.AeopShipmentDTO obj7 = new AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderRequest.AeopShipmentDTO();
    list6.add(obj7);
    obj7.setServiceName("EMS");
    obj7.setTrackingWebSite("http://ems.com");
    obj7.setLogisticsNo("LV87654321CN");
    list4.setShipmentList(list6);
    req.setSubTradeOrderList(list2);
    req.setOldLogisticsNo("LV87654321CN");
    req.setTradeOrderId(888887777766L);
    req.setOldServiceName("EMS");
    AliexpressLogisticsSellermodifiedshipmentsupportsubtradeorderResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <sub_trade_order_list>
        <aeop_seller_shipment_sub_trade_order_dto>
            <shipment_list>
                <aeop_shipment_dto>
                    <service_name>物流公司名称</service_name>
                    <error_msg>system error</error_msg>
                    <error_code>-100</error_code>
                    <tracking_web_site>www.17track.com</tracking_web_site>
                    <logistics_no>LT123456789CN</logistics_no>
                </aeop_shipment_dto>
            </shipment_list>
            <sub_trade_order_index>1</sub_trade_order_index>
            <error_msg>system error</error_msg>
            <send_type>part</send_type>
            <error_code>-100</error_code>
        </aeop_seller_shipment_sub_trade_order_dto>
    </sub_trade_order_list>
    <old_logistics_no>LV87654321CN</old_logistics_no>
    <old_serivce_name>EMS</old_serivce_name>
    <trade_order_id>888887777766</trade_order_id>
    <error_code>0</error_code>
    <error_msg>Error message</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

    返回
    顶部