文档中心 > API类目 > 代发管理

taobao.daifa.supplier.order.consign (代发管理-供货商单据发货接口)

代发管理-供货商单据发货接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
refund_contact_model ContactModel 可选 退货地址
  • └ address
  • String
  • 可选
  • 文一西路969号
  • 详细地址
  • └ province
  • String
  • 可选
  • 浙江省
  • └ city
  • String
  • 可选
  • 杭州市
  • └ name
  • String
  • 可选
  • 李先生
  • 姓名
  • └ mobile
  • String
  • 可选
  • 13456713567
  • 电话
  • └ distinct
  • String
  • 可选
  • 余杭区
  • └ downtown
  • String
  • 可选
  • 五常街道
  • 镇/街道
  • └ telephone
  • String
  • 可选
  • 12345
  • 座机
supplier_id Number 可选 12 供货商平台侧id
scp_order_ids Number 可选 供货单据ID,必须属于同一个淘宝主订单下,如果一次回传多个发货单据,以英文逗号分隔
send_contact_model ContactModel 可选 发货地址
  • └ address
  • String
  • 可选
  • 文一西路969号
  • 详细地址
  • └ province
  • String
  • 可选
  • 浙江省
  • └ city
  • String
  • 可选
  • 杭州市
  • └ name
  • String
  • 可选
  • 李先生
  • 姓名
  • └ mobile
  • String
  • 可选
  • 13456713567
  • 手机号
  • └ distinct
  • String
  • 可选
  • 余杭区
  • └ downtown
  • String
  • 可选
  • 五常街道
  • 镇/街道
  • └ telephone
  • String
  • 可选
  • 12345
  • 座机号
package_list Package 可选 业务对象
  • └ out_sid
  • String
  • 可选
  • 12345
  • 运单号
  • └ company_code
  • String
  • 可选
  • SF
  • 快递公司码
feature String 可选 identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE;instantMobilePhoneNumber=12345678910 发货单对应的子订单为未发货状态时可用,已发货状态传递该值无用了。feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段。instantMobilePhoneNumber表示同城配送物流公司的物流订单收货人手机号,支持11位真实号和15位隐私号"12345678910-1234"。

响应参数

名称 类型 示例值 描述
call_result String true 调用结果
call_err_code String SYSTEM_ERROR 错误码
call_err_msg String 系统异常 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
DaifaSupplierOrderConsignRequest req = new DaifaSupplierOrderConsignRequest();
DaifaSupplierOrderConsignRequest.ContactModel obj1 = new DaifaSupplierOrderConsignRequest.ContactModel();
obj1.setAddress("文一西路969号");
obj1.setProvince("浙江省");
obj1.setCity("杭州市");
obj1.setName("李先生");
obj1.setMobile("13456713567");
obj1.setDistinct("余杭区");
obj1.setDowntown("五常街道");
obj1.setTelephone("12345");
req.setRefundContactModel(obj1);
req.setSupplierId(12L);
req.setScpOrderIds(L);
DaifaSupplierOrderConsignRequest.ContactModel obj2 = new DaifaSupplierOrderConsignRequest.ContactModel();
obj2.setAddress("文一西路969号");
obj2.setProvince("浙江省");
obj2.setCity("杭州市");
obj2.setName("李先生");
obj2.setMobile("13456713567");
obj2.setDistinct("余杭区");
obj2.setDowntown("五常街道");
obj2.setTelephone("12345");
req.setSendContactModel(obj2);
DaifaSupplierOrderConsignRequest.Package obj3 = new DaifaSupplierOrderConsignRequest.Package();
obj3.setOutSid("12345");
obj3.setCompanyCode("SF");
req.setPackageList(obj3);
req.setFeature("identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE;instantMobilePhoneNumber=12345678910");
DaifaSupplierOrderConsignResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<daifa_supplier_order_consign_response>
    <call_result>true</call_result>
    <call_err_code>SYSTEM_ERROR</call_err_code>
    <call_err_msg>系统异常</call_err_msg>
</daifa_supplier_order_consign_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

返回
顶部