API
查询轨迹(库内)
更新时间: 2019-11-28 21:56:41 访问次数:7280

接口说明

本接口用于提供给第三方平台或是卖家自有系统“获取轨迹”。

接口名称

queryTrack

请求说明

请求内容 说明
URL https://openapi.winit.com.cn/openapi/service
接口测试 https://sandboxopenapi.winit.com.cn/openapi/service
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,1000有需要可申请加大。

请求入参

名称 类型 必填 说明 示例
warehouseID String() Y 出库海外仓ID 1000069
outboundNum String(10) Y 海外仓出库单单号 WO0000001285
trackingNum String(100) N 下出库单时选用的派送方式对应生成的快递单号

请求示例

  1. {
  2. "action":"queryTrack",
  3. "app_key":"rebecca",
  4. "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
  5. "client_sign":"6A57A3AF36DFAD2CBE4662D3A19D73FE",
  6. "data":{
  7. "outboundNum":"WO0000001285",
  8. "warehouseID":"1000069"
  9. },
  10. "format":"json",
  11. "language":"zh_CN",
  12. "platform":"OWNERERP",
  13. "sign":"890885757E39833CE43BD0AA441386C4",
  14. "sign_method":"md5",
  15. "timestamp":"2015-06-16 00:19:26",
  16. "version":"1.0"
  17. }

返回出参

返回参数说明:正确的返回编码code:0及结果data,错误的返回错误码及错误信息msg。

名称 类型 必传 说明 示例
status String() Y 状态
详见出库单状态列表
scandateTime String() Y 扫描时间
scanlocation String() Y 扫描地点
trackingmess String() Y 轨迹描述信息

返回示例

  1. {
  2. "code": "0",
  3. "msg": "操作成功",
  4. "data": [ {
  5. "scanlocation": null,
  6. "scandateTime": "2019-05-28 17:31:46",
  7. "trackingmess": "提交订单",
  8. "status": "SO"
  9. }]
  10. }
  1. {
  2. "code": 0,
  3. "msg": "操作成功",
  4. "data": [
  5. {
  6. "scanlocation": null,
  7. "scandateTime": "2019-05-05 16:00:06",
  8. "trackingmess": "提交订单",
  9. "status": "SO"
  10. },
  11. {
  12. "scanlocation": "UK Warehouse",
  13. "scandateTime": "2019-05-06 14:31:11",
  14. "trackingmess": "拣选完成",
  15. "status": "PKC"
  16. },
  17. {
  18. "scanlocation": "UK Warehouse",
  19. "scandateTime": "2019-05-06 22:39:14",
  20. "trackingmess": "打包完成",
  21. "status": "PAC"
  22. },
  23. {
  24. "scanlocation": "UK Warehouse",
  25. "scandateTime": "2019-05-07 22:52:51",
  26. "trackingmess": "发货完成",
  27. "status": "DIC"
  28. },
  29. {
  30. "scanlocation": "UK Warehouse",
  31. "scandateTime": "2019-05-07 22:52:51",
  32. "trackingmess": "派送中",
  33. "status": "DLI"
  34. },
  35. {
  36. "scanlocation": "UK Warehouse",
  37. "scandateTime": "2019-05-08 16:56:01",
  38. "trackingmess": "派送完成",
  39. "status": "DLC"
  40. }
  41. ]
  42. }