文档中心 > API类目 > ICBU-交易

alibaba.seller.order.multi.shipping (国际站订单多批次发货接口)

国际站订单多批次发货接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_multi_shipping_create_request MultiShippingCreateRequest 可选 {}
  • requests
  • OneBatchCreateRequest []
  • 必须
  • {}
  • goods
  • Goods []
  • 必须
  • 发货商品信息
  • └ product_id
  • String
  • 必须
  • 123454
  • 该批次要发哪些品
  • └ quantity
  • String
  • 必须
  • 10
  • 数量
  • shipping_request
  • ShippingRequest
  • 必须
  • {}
  • attachments
  • Attachment []
  • 必须
  • 物流凭证
  • └ file_name
  • String
  • 必须
  • test.jpg
  • 文件名
  • └ file_path
  • String
  • 必须
  • gfhfgdsadfghfd
  • 上传接口(alibaba.order.picture.upload) 获取的path
  • └ logistics_type
  • String
  • 必须
  • EXPRESS或者POST
  • 物流类型
  • └ service_provider
  • String
  • 必须
  • DHL
  • 物流承运商(通过alibaba.seller.order.shipping.channels获取对应的code)
  • └ tracking_number
  • String
  • 必须
  • 23454234
  • 物流单号
  • └ trade_id
  • String
  • 必须
  • 123441
  • 订单号
  • └ trade_id
  • String
  • 必须
  • 123441
  • 订单号

响应参数

名称 类型 示例值 描述
voucher_ids Number [] [1234,234,333] 成功创建的 物流凭证id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSellerOrderMultiShippingRequest req = new AlibabaSellerOrderMultiShippingRequest();
AlibabaSellerOrderMultiShippingRequest.MultiShippingCreateRequest obj1 = new AlibabaSellerOrderMultiShippingRequest.MultiShippingCreateRequest();
List<AlibabaSellerOrderMultiShippingRequest.OneBatchCreateRequest> list3 = new ArrayList<AlibabaSellerOrderMultiShippingRequest.OneBatchCreateRequest>();
AlibabaSellerOrderMultiShippingRequest.OneBatchCreateRequest obj4 = new AlibabaSellerOrderMultiShippingRequest.OneBatchCreateRequest();
list3.add(obj4);
List<AlibabaSellerOrderMultiShippingRequest.Goods> list7 = new ArrayList<AlibabaSellerOrderMultiShippingRequest.Goods>();
AlibabaSellerOrderMultiShippingRequest.Goods obj8 = new AlibabaSellerOrderMultiShippingRequest.Goods();
list7.add(obj8);
obj8.setProductId("123454");
obj8.setQuantity("10");
list5.setGoods(list7);
AlibabaSellerOrderMultiShippingRequest.ShippingRequest obj10 = new AlibabaSellerOrderMultiShippingRequest.ShippingRequest();
List<AlibabaSellerOrderMultiShippingRequest.Attachment> list12 = new ArrayList<AlibabaSellerOrderMultiShippingRequest.Attachment>();
AlibabaSellerOrderMultiShippingRequest.Attachment obj13 = new AlibabaSellerOrderMultiShippingRequest.Attachment();
list12.add(obj13);
obj13.setFileName("test.jpg");
obj13.setFilePath("gfhfgdsadfghfd");
obj10.setAttachments(list12);
obj10.setLogisticsType("EXPRESS或者POST");
obj10.setServiceProvider("DHL");
obj10.setTrackingNumber("23454234");
obj10.setTradeId("123441");
list9.setShippingRequest(obj10);
obj1.setRequests(list3);
obj1.setTradeId("123441");
req.setParamMultiShippingCreateRequest(obj1);
AlibabaSellerOrderMultiShippingResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_seller_order_multi_shipping_response>
    <voucher_ids>
        <number>[1234</number>
        <number>234</number>
        <number>333]</number>
    </voucher_ids>
</alibaba_seller_order_multi_shipping_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

返回
顶部