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

alibaba.ascp.industry.ecology.delivery.erp.accept (家装非标揽配装ERP下单)

家装非标揽配装ERP下单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bfc_collect_delivery_order_request BFCCollectDeliveryOrderRequest 必须 请求对象
  • └ order_type
  • String
  • 可选
  • DELIVERY_INSTALL
  • orderType订单服务类型, 非淘需传,orderType: DELIVERY_INSTALL 送装一体 SELLER_INSTALL 送装分离 DELIVERY_ONLY 纯配
  • receiver
  • ContactInfo
  • 必须
  • 收货人信息
  • └ area
  • String
  • 必须
  • 余杭区
  • └ address
  • String
  • 必须
  • 五常街道xx
  • 详细地址
  • └ province
  • String
  • 必须
  • 浙江省
  • └ city
  • String
  • 必须
  • 杭州市
  • └ contact
  • String
  • 必须
  • 张三
  • 姓名
  • └ mobile
  • String
  • 必须
  • 13623452345
  • 电话
  • └ trade_code
  • String
  • 可选
  • 22234234434
  • 交易单号, 多个以英文逗号分隔
  • └ remark
  • String
  • 可选
  • xxx备注
  • 整单备注
  • └ order_channel
  • Number
  • 可选
  • 1
  • 1-淘宝/天猫 2-其它 3-抖音 4-拼多多 5-京东 6-唯品会 默认1
  • package_list
  • PackageInfo []
  • 必须
  • {}
  • 包裹信息
  • └ volume
  • String
  • 可选
  • 10
  • 体积,单位cm3
  • └ pack_num
  • Number
  • 必须
  • 3
  • 包裹数量
  • └ weight
  • String
  • 可选
  • 10
  • 重量 单位kg
  • └ remark
  • String
  • 可选
  • xxxx
  • 包裹备注
  • └ pack_name
  • String
  • 必须
  • 衣架
  • 包裹名称
  • └ is_sync
  • Boolean
  • 必须
  • true
  • 默认为true, false表示异步开单
  • service_item_dto_list
  • ServiceItemDTO []
  • 可选
  • {}
  • 服务商品信息,非淘需传
  • └ quantity
  • String
  • 必须
  • 2
  • 服务商品数量
  • └ feature
  • String
  • 可选
  • {"a":"b"}
  • 扩展字段
  • └ goods_name
  • String
  • 必须
  • 床头柜
  • 服务商品名称
  • └ category_name
  • String
  • 可选
  • 徐州床头柜
  • 服务计费类目名称
  • └ sku_id
  • String
  • 必须
  • 1212
  • 商品skuId
  • └ category_id
  • String
  • 必须
  • XZ001
  • 服务计费类目Id
  • └ seller_order_code
  • String
  • 必须
  • ERP001
  • 商家单号
  • └ is_secret
  • Boolean
  • 必须
  • false
  • 默认为false;false-明文、true-密文;非淘必须为明文
  • └ main_user_id
  • String
  • 必须
  • 1200121
  • 主店铺id
  • └ feature
  • String
  • 可选
  • {"a":"b"}
  • 扩展字段
  • sender
  • ContactInfo
  • 必须
  • 发货人信息
  • └ area
  • String
  • 必须
  • 余杭区
  • └ address
  • String
  • 必须
  • 五常街道xx
  • 详细地址
  • └ province
  • String
  • 必须
  • 浙江省
  • └ city
  • String
  • 必须
  • 杭州市
  • └ contact
  • String
  • 必须
  • 张三
  • 姓名
  • └ mobile
  • String
  • 必须
  • 13623452345
  • 电话
  • └ sub_user_id
  • String
  • 可选
  • 1200121
  • 子店铺id,主店铺开子店铺订单必传
  • └ task_id
  • String
  • 必须
  • 12345
  • 商家发起请求id 用于幂等
  • └ settle_account
  • String
  • 可选
  • 月结账号
  • 月结账号,存在多个月结账号必传,需指定
  • └ need_cosign
  • Boolean
  • 必须
  • true
  • 是否驱动交易发货

响应参数

名称 类型 示例值 描述
result BaseResult 下单返回参数
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_msg
  • String
  • 异常
  • 错误信息
  • └ error_code
  • String
  • 1000
  • 错误码
  • result
  • WdsCollectDeliveryResponse
  • {}
  • 返回内容
  • └ wds_coordination_order_id
  • String
  • BFC001
  • 接单单号
  • └ feature
  • String
  • {"a":"b"}
  • 扩展字段
  • └ cp_code
  • String
  • SF
  • 物流服务商编码
  • └ cp_name
  • String
  • 顺丰速运
  • 物流服务商名称
  • way_bill_list
  • WdsCollectDeliveryWayBillDTO []
  • 运单集合
  • └ way_bill_type
  • Number
  • 1
  • 运单号类型:1母单;2,子单
  • └ way_bill_no
  • String
  • SF0001
  • 运单号

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest req = new AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest();
AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.BFCCollectDeliveryOrderRequest obj1 = new AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.BFCCollectDeliveryOrderRequest();
obj1.setOrderType("DELIVERY_INSTALL");
AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.ContactInfo obj2 = new AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.ContactInfo();
obj2.setArea("余杭区");
obj2.setAddress("五常街道xx");
obj2.setProvince("浙江省");
obj2.setCity("杭州市");
obj2.setContact("张三");
obj2.setMobile("13623452345");
obj1.setReceiver(obj2);
obj1.setTradeCode("22234234434");
obj1.setRemark("xxx备注");
obj1.setOrderChannel(1L);
List<AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.PackageInfo> list4 = new ArrayList<AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.PackageInfo>();
AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.PackageInfo obj5 = new AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.PackageInfo();
list4.add(obj5);
obj5.setVolume("10");
obj5.setPackNum(3L);
obj5.setWeight("10");
obj5.setRemark("xxxx");
obj5.setPackName("衣架");
obj1.setPackageList(list4);
obj1.setIsSync(true);
List<AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.ServiceItemDTO> list7 = new ArrayList<AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.ServiceItemDTO>();
AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.ServiceItemDTO obj8 = new AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.ServiceItemDTO();
list7.add(obj8);
obj8.setQuantity("2");
obj8.setFeature("{\"a\":\"b\"}");
obj8.setGoodsName("床头柜");
obj8.setCategoryName("徐州床头柜");
obj8.setSkuId("1212");
obj8.setCategoryId("XZ001");
obj1.setServiceItemDtoList(list7);
obj1.setSellerOrderCode("ERP001");
obj1.setIsSecret(false);
obj1.setMainUserId("1200121");
obj1.setFeature("{\"a\":\"b\"}");
AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.ContactInfo obj9 = new AlibabaAscpIndustryEcologyDeliveryErpAcceptRequest.ContactInfo();
obj9.setArea("余杭区");
obj9.setAddress("五常街道xx");
obj9.setProvince("浙江省");
obj9.setCity("杭州市");
obj9.setContact("张三");
obj9.setMobile("13623452345");
obj1.setSender(obj9);
obj1.setSubUserId("1200121");
obj1.setTaskId("12345");
obj1.setSettleAccount("月结账号");
obj1.setNeedCosign(true);
req.setBfcCollectDeliveryOrderRequest(obj1);
AlibabaAscpIndustryEcologyDeliveryErpAcceptResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_industry_ecology_delivery_erp_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>
            <cp_code>SF</cp_code>
            <cp_name>顺丰速运</cp_name>
            <way_bill_list>
                <wds_collect_delivery_way_bill_d_t_o>
                    <way_bill_type>1</way_bill_type>
                    <way_bill_no>SF0001</way_bill_no>
                </wds_collect_delivery_way_bill_d_t_o>
            </way_bill_list>
        </result>
    </result>
</alibaba_ascp_industry_ecology_delivery_erp_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

返回
顶部