Blogger Information
Blog 60
fans 0
comment 0
visits 100938
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
快递公司如何接入快递100?快递100的快递实时查询接口示例
快递100API
Original
1603 people have browsed it

请求地址

POST

http://xx.com/api/query

请求头

名称 类型 默认值
Content-Type string application/x-www-form-urlencoded

请求体

名称 是否必填 类型 说明
key string 贵司提供给快递100
num string 运单号
sign string 32位大写,MD5 ( key+ num + secret)的顺序进行加密,不需要加上“+”号,secret和key由贵司提供给快递100

响应数据

名称 是否必填 类型 说明
result boolean 请求结果
message string
state string 轨迹当前状态,如:0在途,1揽收,2疑难,3签收,4退签,5派件,6退回,7转单,10待清关,11清关中,12已清关,13清关异常,14收件人拒签等
Θdata array 物流轨迹
└context string 节点轨迹描述
└location string 节点位置
└time string 节点时间,必须格式化为yyyy-mm-dd hh:mm:ss

接口描述

实时获取运单轨迹

编码:UTF-8

  1. 一、请求失败:
  2. {
  3. "result": false,
  4. "message": "验签失败",
  5. "data": []
  6. }
  7. 二、请求成功,没有物流轨迹:
  8. {
  9. "result": true,
  10. "message": "运单号不存在",
  11. "data": []
  12. }
  13. 三、请求成功,有物流轨迹:
  14. {
  15. "result": true,
  16. "message": "SUCCESS",
  17. "state":0,
  18. "data": [
  19. {
  20. "context": "站点【退货部】进行了【货物退回客户扫描】操作",
  21. "location": "",
  22. "time": "2018-04-29 16:31:48"
  23. },
  24. {
  25. "context": "快件到达【退货部】,上一站是【北京分拣中心】",
  26. "location": "",
  27. "time": "2018-04-03 14:26:25"
  28. },
  29. {
  30. "context": "快件离开【北京分拣中心】,发往【C应急二】",
  31. "location": "",
  32. "time": "2018-03-07 01:21:28"
  33. },
  34. {
  35. "context": "【北京分拣中心】收件入库,交货方是【快乐购北京】",
  36. "location": "北京",
  37. "time": "2018-03-07 00:55:26"
  38. }
  39. ]
  40. }

官方文档:

https://api.kuaidi100.com/document/60509213a52d305ab4d2a1cb.html

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post