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

alibaba.ascp.industry.ecology.delivery.isv.accept (家享-揽配装,ISV下单)

阿里巴巴.家享.揽配装.ISV下单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bfc_collect_delivery_order_request BFCCollectDeliveryOrderRequest 必须 请求对象
  • └ 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
  • 详细地址
  • package_list
  • PackageInfo []
  • 必须
  • {}
  • 包裹信息
  • └ pack_name
  • String
  • 必须
  • 衣架
  • 包裹名称
  • └ pack_num
  • Number
  • 必须
  • 3
  • 包裹数量
  • └ weight
  • String
  • 必须
  • 10
  • 重量 单位kg
  • └ volume
  • String
  • 必须
  • 10
  • 体积,单位cm3
  • └ remark
  • String
  • 可选
  • xxxx
  • 包裹备注
  • └ remark
  • String
  • 可选
  • xxx
  • 备注
  • └ feature
  • String
  • 可选
  • {"a":"b"}
  • 扩展字段
  • └ is_secret
  • Boolean
  • 必须
  • false
  • 默认为false;false-明文、true-密文;非淘必须为明文
  • └ oa_id
  • String
  • 必须
  • 321312312
  • 获取隐私小号

响应参数

名称 类型 示例值 描述
result BaseResult 下单返回参数
  • └ success
  • Boolean
  • true
  • true
  • └ error_msg
  • String
  • 异常
  • 异常
  • └ error_code
  • String
  • 1000
  • 1000
  • result
  • 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);
AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest req = new AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest();
AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.BFCCollectDeliveryOrderRequest obj1 = new AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.BFCCollectDeliveryOrderRequest();
obj1.setTaskId("12345");
obj1.setTradeCode("22234234434");
obj1.setOrderChannel(1L);
obj1.setSellerOrderCode("ERP001");
AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.ContactInfo obj2 = new AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.ContactInfo();
obj2.setContact("张三");
obj2.setMobile("13623452345");
obj2.setProvince("浙江省");
obj2.setCity("杭州市");
obj2.setArea("余杭区");
obj2.setAddress("五常街道xx");
obj1.setSender(obj2);
AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.ContactInfo obj3 = new AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.ContactInfo();
obj3.setContact("张三");
obj3.setMobile("13623452345");
obj3.setProvince("浙江省");
obj3.setCity("杭州市");
obj3.setArea("余杭区");
obj3.setAddress("五常街道xx");
obj1.setReceiver(obj3);
List<AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.PackageInfo> list5 = new ArrayList<AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.PackageInfo>();
AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.PackageInfo obj6 = new AlibabaAscpIndustryEcologyDeliveryIsvAcceptRequest.PackageInfo();
list5.add(obj6);
obj6.setPackName("衣架");
obj6.setPackNum(3L);
obj6.setWeight("10");
obj6.setVolume("10");
obj6.setRemark("xxxx");
obj1.setPackageList(list5);
obj1.setRemark("xxx");
obj1.setFeature("{\"a\":\"b\"}");
obj1.setIsSecret(false);
obj1.setOaId("321312312");
req.setBfcCollectDeliveryOrderRequest(obj1);
AlibabaAscpIndustryEcologyDeliveryIsvAcceptResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部