文档中心 > API类目 > 菜鸟裹裹API

cainiao.endpoint.locker.misc.order.tracking (自提柜订单跟踪消息)

自提柜公司回推送消息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
gui_tracking GuiTracking 必须 1
  • └ auth_code
  • String
  • 可选
  • 1
  • 1
  • └ order_code
  • String
  • 必须
  • 1
  • 1
  • └ order_type
  • Number
  • 必须
  • 0
  • 订单类型
  • └ extra
  • String
  • 可选
  • {}
  • 1
  • └ gui_name
  • String
  • 必须
  • 1
  • 1
  • └ gui_code
  • String
  • 必须
  • 1
  • 1
  • └ cell
  • String
  • 可选
  • 1
  • 格子
  • └ action_time
  • Number
  • 可选
  • 1
  • 1
  • └ gui_no
  • String
  • 必须
  • 1
  • 1
  • └ action_code
  • String
  • 必须
  • 1
  • 1

响应参数

名称 类型 示例值 描述
result Json data
error_desc String 1 errorDesc
error_no String 1 errorCode
is_success Boolean true success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoEndpointLockerMiscOrderTrackingRequest req = new CainiaoEndpointLockerMiscOrderTrackingRequest();
CainiaoEndpointLockerMiscOrderTrackingRequest.GuiTracking obj1 = new CainiaoEndpointLockerMiscOrderTrackingRequest.GuiTracking();
obj1.setAuthCode("1");
obj1.setOrderCode("1");
obj1.setOrderType(0L);
obj1.setExtra("{}");
obj1.setGuiName("1");
obj1.setGuiCode("1");
obj1.setCell("1");
obj1.setActionTime(1L);
obj1.setGuiNo("1");
obj1.setActionCode("1");
req.setGuiTracking(obj1);
CainiaoEndpointLockerMiscOrderTrackingResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_endpoint_locker_misc_order_tracking_response>
    <result></result>
    <error_desc>1</error_desc>
    <error_no>1</error_no>
    <is_success>true</is_success>
</cainiao_endpoint_locker_misc_order_tracking_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

返回
顶部