文档中心 > API类目 > 新零售供应链API

alibaba.ascp.industry.ecology.delivery.accept (阿里巴巴.行业.三方揽配.商家下单)

阿里巴巴.行业.三方揽配.商家下单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
wds_collect_delivery_gen_request WdsCollectDeliveryGenRequest 必须 请求对象
  • └ task_id
  • String
  • 必须
  • 12345
  • 商家发起请求id 用于幂等
  • └ trade_code
  • String
  • 可选
  • 22234234434
  • 交易单号
  • └ order_channel
  • Number
  • 可选
  • 1
  • 1-淘宝/天猫 2-其它 3-抖音 4-拼多多 5-京东 6-唯品会 默认1
  • └ seller_order_code
  • String
  • 必须
  • ERP001
  • 商家单号
  • sender
  • ContactInfo
  • 必须
  • 发货人信息
  • └ contact
  • String
  • 必须
  • 张三
  • 姓名
  • └ mobile
  • String
  • 必须
  • 13623452345
  • 电话
  • └ province
  • String
  • 必须
  • 浙江省
  • └ city
  • String
  • 必须
  • 杭州市
  • └ area
  • String
  • 必须
  • 余杭区
  • └ address
  • String
  • 必须
  • 五常街道xx
  • 详细地址
  • receiver
  • ContactInfo
  • 必须
  • 收货人信息
  • └ contact
  • String
  • 必须
  • 张三
  • 姓名
  • └ mobile
  • String
  • 必须
  • 13623452345
  • 电话
  • └ province
  • String
  • 必须
  • 浙江省
  • └ city
  • String
  • 必须
  • 杭州市
  • └ area
  • String
  • 必须
  • 余杭区
  • └ address
  • String
  • 必须
  • 五常街道xx
  • 详细地址
  • item_list
  • ItemList []
  • 必须
  • {}
  • 货品信息
  • └ item_name
  • String
  • 必须
  • 衣架
  • 货品名称
  • └ quantity
  • Number
  • 必须
  • 1
  • 货品数量
  • └ pack_num
  • Number
  • 必须
  • 3
  • 包裹数量
  • └ weight
  • String
  • 必须
  • 10
  • 重量 单位kg
  • └ volume
  • String
  • 必须
  • 10
  • 体积,单位m3
  • └ remark
  • String
  • 可选
  • xxxx
  • 货品备注
  • └ remark
  • String
  • 可选
  • xxx
  • 备注
  • └ feature
  • String
  • 可选
  • {"a":"b"}
  • 扩展字段

响应参数

名称 类型 示例值 描述
result ResultWrapper 下单返回参数
  • └ success
  • Boolean
  • true
  • true
  • └ error_message
  • String
  • 异常
  • 异常
  • └ error_code
  • String
  • 1000
  • 1000
  • data
  • WdsCollectDeliveryResponse
  • {}
  • 返回参数
  • └ wds_coordination_order_id
  • String
  • BFC001
  • 接单单号
  • └ feature
  • String
  • {"a":"b"}
  • 扩展字段

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpIndustryEcologyDeliveryAcceptRequest req = new AlibabaAscpIndustryEcologyDeliveryAcceptRequest();
AlibabaAscpIndustryEcologyDeliveryAcceptRequest.WdsCollectDeliveryGenRequest obj1 = new AlibabaAscpIndustryEcologyDeliveryAcceptRequest.WdsCollectDeliveryGenRequest();
obj1.setTaskId("12345");
obj1.setTradeCode("22234234434");
obj1.setOrderChannel(1L);
obj1.setSellerOrderCode("ERP001");
AlibabaAscpIndustryEcologyDeliveryAcceptRequest.ContactInfo obj2 = new AlibabaAscpIndustryEcologyDeliveryAcceptRequest.ContactInfo();
obj2.setContact("张三");
obj2.setMobile("13623452345");
obj2.setProvince("浙江省");
obj2.setCity("杭州市");
obj2.setArea("余杭区");
obj2.setAddress("五常街道xx");
obj1.setSender(obj2);
AlibabaAscpIndustryEcologyDeliveryAcceptRequest.ContactInfo obj3 = new AlibabaAscpIndustryEcologyDeliveryAcceptRequest.ContactInfo();
obj3.setContact("张三");
obj3.setMobile("13623452345");
obj3.setProvince("浙江省");
obj3.setCity("杭州市");
obj3.setArea("余杭区");
obj3.setAddress("五常街道xx");
obj1.setReceiver(obj3);
List<AlibabaAscpIndustryEcologyDeliveryAcceptRequest.ItemList> list5 = new ArrayList<AlibabaAscpIndustryEcologyDeliveryAcceptRequest.ItemList>();
AlibabaAscpIndustryEcologyDeliveryAcceptRequest.ItemList obj6 = new AlibabaAscpIndustryEcologyDeliveryAcceptRequest.ItemList();
list5.add(obj6);
obj6.setItemName("衣架");
obj6.setQuantity(1L);
obj6.setPackNum(3L);
obj6.setWeight("10");
obj6.setVolume("10");
obj6.setRemark("xxxx");
obj1.setItemList(list5);
obj1.setRemark("xxx");
obj1.setFeature("{\"a\":\"b\"}");
req.setWdsCollectDeliveryGenRequest(obj1);
AlibabaAscpIndustryEcologyDeliveryAcceptResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_industry_ecology_delivery_accept_response>
    <result>
        <success>true</success>
        <error_message>异常</error_message>
        <error_code>1000</error_code>
        <data>
            <wds_coordination_order_id>BFC001</wds_coordination_order_id>
            <feature>{&quot;a&quot;:&quot;b&quot;}</feature>
        </data>
    </result>
</alibaba_ascp_industry_ecology_delivery_accept_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

返回
顶部