文档中心 > API类目 > 天猫供应链

taobao.logistics.express.courier.region.code.async (官流路区段码更新接口)

官流路区段码更新接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
courier_region_code_async_request CourierRegionCodeAsyncRequest 必须 官流路区段码更新接口入参
  • └ request_time
  • Number
  • 必须
  • 1689067417799
  • 业务请求时间戳(毫秒)
  • └ request_id
  • String
  • 必须
  • 1689067417799
  • 业务请求ID,用于做幂等
  • └ supplier_id
  • String
  • 必须
  • 10000074832948
  • 服务商ID
  • └ delivery_code
  • String
  • 必须
  • SF123
  • 配资源编码
  • └ service_type
  • String
  • 必须
  • 1
  • 服务类型:1-送货上门
  • └ region_id
  • String
  • 必须
  • region_code001
  • 路区id,主键,需保证服务商下唯一性
  • └ waybill_third_code
  • String
  • 必须
  • 1111111
  • 路区对应的电子面单三段码
  • └ waybill_second_code
  • String
  • 可选
  • 222222
  • 路区对应的电子面单二段码
  • └ site_code
  • String
  • 必须
  • site_code001
  • 二段码对应网点编码
  • └ site_name
  • String
  • 可选
  • 测试网点001
  • 二段码对应网点名称

响应参数

名称 类型 示例值 描述
courier_region_code_async_response CourierRegionCodeAsyncResponse 官流路区段码更新接口出参
  • └ success
  • Boolean
  • true
  • 系统处理结果true|false
  • └ code
  • String
  • SYSTEM_ERROR
  • 响应码
  • └ message
  • String
  • 系统错误
  • 响应信息
  • └ is_retry
  • Boolean
  • true
  • 是否可重试

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsExpressCourierRegionCodeAsyncRequest req = new LogisticsExpressCourierRegionCodeAsyncRequest();
LogisticsExpressCourierRegionCodeAsyncRequest.CourierRegionCodeAsyncRequest obj1 = new LogisticsExpressCourierRegionCodeAsyncRequest.CourierRegionCodeAsyncRequest();
obj1.setRequestTime(1689067417799L);
obj1.setRequestId("1689067417799");
obj1.setSupplierId("10000074832948");
obj1.setDeliveryCode("SF123");
obj1.setServiceType("1");
obj1.setRegionId("region_code001");
obj1.setWaybillThirdCode("1111111");
obj1.setWaybillSecondCode("222222");
obj1.setSiteCode("site_code001");
obj1.setSiteName("测试网点001");
req.setCourierRegionCodeAsyncRequest(obj1);
LogisticsExpressCourierRegionCodeAsyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<logistics_express_courier_region_code_async_response>
    <courier_region_code_async_response>
        <success>true</success>
        <code>SYSTEM_ERROR</code>
        <message>系统错误</message>
        <is_retry>true</is_retry>
    </courier_region_code_async_response>
</logistics_express_courier_region_code_async_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

返回
顶部