Express bill number query API – Cross Express

Time:2020-10-30

How to use the interface provided by express bird to query the logistics track across express transportation.

First of all, we have the resources we need,

Test merchant ID:

test1617571

Test API key:

554343b2-7252-439b-b4eb-1af42c8f2175 (this key is only used in test environment)

API test address:

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

Next, let’s talk about request parameters

1、 Interface description / description

Description of request system level parameters:
Express bill number query API - Cross Express
remarks:R-required, o-optional, and the parameter in c-message is optional under certain conditions

The system level parameters mentioned here are equivalent to public parameters. These parameters must be passed to each interface when calling.

Interface parameters:
Express bill number query API - Cross Express

Interface parameters, also known as business parameters, request business interfaces are different, parameter fields, content is also different, is with the business change, here we implement the instant query interface, request instruction type: 1002, express bird official website requires that express company code and logistics order number must be passed, cross express code is kysy

To view the codes of other express companies, click this link:

http://www.kdniao.com/documents

We use the real order number (80037661101) to complete the track interface call,

The complete message of a request (after the URL code): request data% 0d% 0A% 0A + + + + + + + + + + + +% 7b% 27ordercode% 27% 3A% 27% 27% 2C% 27% 2C% 27shipcode% 27% 3A% 27kysy% 27% 2C% 27logisticcode% 27% 3A% 2780037661101% 27% 7d% 0d% 0d% 0A + + + + + + + + + + + & ebusinessiid = 1264783 & request type = 1264783 & request type = 1002 & data sign = zwfjnjjizzd4zwmyymge2mtzmzmzzzzzzzzzzzzzzzzzzzzzzzzzzzmmzmzmmzzmmzmmzmmzzzzzzzzzzzzhmwy% 3D & datatype = 2

Uncoded request message:

RequestData= {‘OrderCode’:”,’ShipperCode’:’KYSY’,’LogisticCode’:’80037661101′} &EBusinessID=1264783&RequestType=1002&DataSign=ZWFjNjJiZDg4ZWMyMGE2MTlhMzMzZmMxNzYxMTFhMWY=&DataType=2

Return message information
{

"LogisticCode": "80037661101",

"ShipperCode": "KYSY",

"Traces": [{

    "Acceptstation": the driver is going to pick up the goods from the customer,

    "AcceptTime": "2020-02-18 20:28:40"

}, {

    "Acceptstation": "the pick-up clerk has arrived at the customer's office and is waiting for the order! "

    "AcceptTime": "2020-02-18 20:52:30"

}, {

    "Acceptstation": "the express has been completed by the Chigang Point Department of Xinlian! "

    "AcceptTime": "2020-02-18 21:31:08"

}, {

    "Acceptstation": "the express has been handed over from the customer to the cross special vehicle, ready to be sent to Daning Hongjiang secondary middle school for transfer",

    "AcceptTime": "2020-02-18 22:28:46"

}, {

    "Acceptstation": "the express has arrived at Daning Hongjiang No.2 Middle School, and sorting is in progress! "

    "AcceptTime": "2020-02-19 05:02:02"

}, {

    "Acceptstation": "the express has been transferred from Daning Hongjiang No.2 Middle School to the crossing special bus, ready to be sent to xiegangzhong transfer zone 1",

    "AcceptTime": "2020-02-19 06:52:46"

}, {

    "Acceptstation": "the express has arrived at xiegangzhong transfer zone 1, sorting is in progress! "

    "AcceptTime": "2020-02-19 10:09:57"

}, {

    "Acceptstation": "the express has been handed over from xiegangzhong transfer zone 1 to the crossing special bus, ready to be sent to Huangpu Nan'an secondary middle school for transfer.",

    "AcceptTime": "2020-02-19 10:54:28"

}, {

    "Acceptstation": "the express has arrived at Huangpu Nan'an second level middle school, and is sorting! "

    "AcceptTime": "2020-02-19 13:12:06"

}, {

    "Acceptstation": "the express has been sent out from Huangpu Nan'an secondary middle school and is ready to be sent to Zengcheng Shapu secondary middle school for transfer",

    "AcceptTime": "2020-02-19 15:38:17"

}, {

    "Acceptstation": "the express has arrived at the second level of Zengcheng Shapu, and the transfer is in the process of sorting! "

    "AcceptTime": "2020-02-19 16:08:41"

}, {

    "Acceptstation": "express has been transferred from Zengcheng Shapu secondary middle school to xiangl3yf08",

    "AcceptTime": "2020-02-20 07:48:53"

}, {

    "Acceptstation": goods are being delivered,

    "AcceptTime": "2020-02-20 07:59:13"

}, {

    "Acceptstation": "the express has arrived at the receiving customer, waiting to be signed in! "

    "AcceptTime": "2020-02-20 09:12:36"

}, {

    "Acceptstation": "the express has been signed by Wang bangqun. Thank you for using the cross express and look forward to serving you again! "

    "AcceptTime": "2020-02-20 09:13:59"

}],

"State": "3",

"EBusinessID": "1264783",

"Success": true

}
Here according to our actual business needs to choose free package or charge package.

The detailed interface document is attached to you:

http://www.kdniao.com/documents

Recommended Today

Introduction to vernacular spring cloud

First of all, let me show you a picture. If you don’t understand this picture very well, I hope you will suddenly realize it after reading my article. What is spring cloud Building a distributed system doesn’t need to be complex and error prone. Spring cloud provides a simple and easy to accept programming model […]