ems快递单号查询(EMS快递单号查询 API接口)

EMS快递单号查询 API接口

EMS快递查询

调用快递鸟提供的快递查询API标准接口,快速对接100多家快递公司的物流轨迹查询,本篇文章完成<EMS>的快递单号查询。

起首我们准备好必要用到的资源,

这里保举各位去爱奇艺查察视频教程:


https://www.iqiyi.com/v_19rxcwtwk0.html(怎样从注册到认证,最快1小时完成上百家物流轨迹查询)

测试商户ID:

test1617571

测试API key:


554343b2-7252-439b-b4eb-1af42c8f2175(此Key仅限测试情况使用)

API测试地点:

http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json

接下去,我们解说一下哀求参数

一、接口形貌/分析

哀求体系级参数分析:


备注:R-必填(Required),O-可选(Optional),C-报文中该参数在一定条件下可选(Conditional)

这里提到了体系级参数,也相当于是公用参数,这些参数是调用每个接口都是必必要传参的。

二、接口参数

哀求内容字段界说:

接口参数,也叫业务参数,哀求的业务接口不同,参数的字段,内容也不同,是随着业务厘革的,这里我们完成的是即时查询接口,哀求指令典范:1002,快递鸟官网要求必需转达快递公司编码和物流单号 ,EMS快递的编码是EMS

如要查察其他快递公司的编码,点击此链接:

http://www.kdniao.com/documents

我们用真实单号(1160001630231)来完成轨迹接口调用,

哀求 JSON

{'OrderCode':'','ShipperCode':'EMS','LogisticCode':' 1160001630231'}


哀求的完备报文(URL编码今后):

RequestData=%7b%27OrderCode%27%3a%27%27%2c%27ShipperCode%27%3a%27EMS%27%2c%27LogisticCode%27%3a%271160001630231%27%7d%0d%0a++++++++&EBusinessID=1264783&RequestType=1002&DataSign=NDlmMDAzZTYwYmYyY2FmZjRjOTNhZDAwYjVkNDVjODM%3d&DataType=2

未编码的哀求报文:

RequestData={'OrderCode':'','ShipperCode':'EMS','LogisticCode':'1160001630231'} &EBusinessID=1264783&RequestType=1002&DataSign=NDlmMDAzZTYwYmYyY2FmZjRjOTNhZDAwYjVkNDVjODM=&DataType=2


返报答文信息

  {                    "LogisticCode": "1160001630231",                    "ShipperCode": "EMS",                    "Traces": [{                                       "AcceptStation": "[莆田市]【莆田电商业务部】已收件,揽投员:郑美停,电话:15260903325",                                       "AcceptTime": "2020-02-06 20:12:56"                    }, {                                       "AcceptStation": "[莆田市]分开【莆田电商业务部】,下一站【莆田市邮区中央】",                                       "AcceptTime": "2020-02-06 20:15:50"                    }, {                                       "AcceptStation": "[莆田市]抵达【莆田市邮区中央】",                                       "AcceptTime": "2020-02-06 20:17:26"                    }, {                                       "AcceptStation": "[莆田市]分开【莆田市邮区中央】,下一站【福州旗山处理中央】",                                       "AcceptTime": "2020-02-06 23:59:31"                    }, {                                       "AcceptStation": "[福州市]抵达【福州旗山处理中央】(经转)",                                       "AcceptTime": "2020-02-07 17:40:37"                    }, {                                       "AcceptStation": "[福州市]分开【福州旗山处理中央】,下一站【长沙邮件处理中央】(经转)",                                       "AcceptTime": "2020-02-08 04:56:41"                    }, {                                       "AcceptStation": "[长沙市]抵达【长沙邮件处理中央】(经转)",                                       "AcceptTime": "2020-02-08 16:05:58"                    }, {                                       "AcceptStation": "[长沙市]分开【长沙邮件处理中央】,下一站【益阳邮件处理中央】(经转)",                                       "AcceptTime": "2020-02-08 20:28:47"                    }, {                                       "AcceptStation": "[益阳市]抵达【益阳邮件处理中央】",                                       "AcceptTime": "2020-02-09 00:25:22"                    }, {                                       "AcceptStation": "[益阳市]分开【益阳邮件处理中央】,下一站【益阳市资阳揽投部】",                                       "AcceptTime": "2020-02-09 06:22:33"                    }, {                                       "AcceptStation": "[益阳市]抵达【益阳市资阳揽投部】",                                       "AcceptTime": "2020-02-09 08:56:06"                    }, {                                       "AcceptStation": "[益阳市]【益阳市资阳揽投部】安插投递,投递员:龙奔腾,电话:15898401808,揽投部电话:17773770736",                                       "AcceptTime": "2020-02-09 09:26:09"                    }, {                                       "AcceptStation": "[益阳市]已签收,收发室,投递员:龙奔腾,电话:15898401808",                                       "AcceptTime": "2020-02-09 15:03:48"                    }],                    "State": "3",                    "EBusinessID": "1264783",                    "Success": true }  

附上具体的接口文档给各位:

http://www.kdniao.com/documents

内容底部广告位(手机)
标签:

管理员
草根站长管理员

专注网站优化+网络营销,只做有思想的高价值网站,只提供有担当的营销服务!

上一篇:这个假期,淄博“怎么还这么多人?”
下一篇:返回列表

相关推荐