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

alibaba.ascp.industry.ecology.delivery.update (阿里巴巴.行业.三方揽配.更新运单)

阿里巴巴.行业.三方揽配.更新运单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
wds_collect_delivery_update_request WdsCollectDeliveryUpdateRequest 必须 请求对象
  • └ wds_coordination_order_id
  • String
  • 必须
  • BFC001
  • 接单单号
  • └ order_channel
  • Number
  • 可选
  • 1
  • 1-淘宝/天猫 2-其它 3-抖音 4-拼多多 5-京东 6-唯品会 默认1
  • receiver
  • ContactInfo
  • 必须
  • 收货人信息
  • └ contact
  • String
  • 必须
  • 张三
  • 姓名
  • └ mobile
  • String
  • 必须
  • 13623452345
  • 电话
  • └ province
  • String
  • 必须
  • 浙江省
  • └ city
  • String
  • 必须
  • 杭州市
  • └ area
  • String
  • 必须
  • 余杭区
  • └ address
  • String
  • 必须
  • 五常街道xx
  • 详细地址
  • └ feature
  • String
  • 可选
  • {"a":"b"}
  • 扩展字段

响应参数

名称 类型 示例值 描述
result ResultWrapper 返回对象
  • └ success
  • Boolean
  • true
  • 调用是否成功
  • └ error_message
  • String
  • 异常
  • 错误信息
  • └ error_code
  • String
  • 1000
  • 错误码
  • └ data
  • String
  • {}
  • 返回对象

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpIndustryEcologyDeliveryUpdateRequest req = new AlibabaAscpIndustryEcologyDeliveryUpdateRequest();
AlibabaAscpIndustryEcologyDeliveryUpdateRequest.WdsCollectDeliveryUpdateRequest obj1 = new AlibabaAscpIndustryEcologyDeliveryUpdateRequest.WdsCollectDeliveryUpdateRequest();
obj1.setWdsCoordinationOrderId("BFC001");
obj1.setOrderChannel(1L);
AlibabaAscpIndustryEcologyDeliveryUpdateRequest.ContactInfo obj2 = new AlibabaAscpIndustryEcologyDeliveryUpdateRequest.ContactInfo();
obj2.setContact("张三");
obj2.setMobile("13623452345");
obj2.setProvince("浙江省");
obj2.setCity("杭州市");
obj2.setArea("余杭区");
obj2.setAddress("五常街道xx");
obj1.setReceiver(obj2);
obj1.setFeature("{\"a\":\"b\"}");
req.setWdsCollectDeliveryUpdateRequest(obj1);
AlibabaAscpIndustryEcologyDeliveryUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_industry_ecology_delivery_update_response>
    <result>
        <success>true</success>
        <error_message>异常</error_message>
        <error_code>1000</error_code>
        <data>{}</data>
    </result>
</alibaba_ascp_industry_ecology_delivery_update_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

返回
顶部