Express order number query API – Baishi Express

Time:2020-10-31

How to use the interface provided by express bird to query the logistics track of Baishi express.

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 order number query API - Baishi 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 order number query API - Baishi Express

Interface parameters, also known as business parameters, request business interfaces, parameter fields, content is also different, it changes with the business, 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, Baishi express code is btwl

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

http://www.kdniao.com/documents

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

Request JSON

{‘OrderCode’:”,’ShipperCode’: BTWL’,LogisticCode’:’ 18111255341′}

The complete message of the request (after the URL code): request data% 0d% 0A% 0A + + + + + + + + + + +% 7b% 27ordercode% 27% 3A% 27% 27% 27% 2C% 27shipcode% 27% 3A% 27btwl% 27% 2C% 27logisticcode% 27% 3A% 2718111255341% 27% 7d% 0d% 0d% 0A + + ebusinesid = 1264783 & requesttype = 1002 & datasign = m2ny2fiyzc1mz5mvizzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz3d & datatype = 2

Uncoded request message:

RequestData= {‘OrderCode’:”,’ShipperCode’:’BTWL’,’LogisticCode’:’18111255341′} &EBusinessID=1264783&RequestType=1002&DataSign=M2NhY2FiYzc1MzI5MmViZGYzZTVhNzI1ODg5N2I1Njk=&DataType=2

Return message information
{

"LogisticCode": "18111255341",

"ShipperCode": "BTWL",

"Traces": [{

    "Acceptstation": "express has already taken delivery in [Xinxiang Yuanyang ZX]",

    "AcceptTime": "2019-11-03 19:03:12"

}, {

    "Acceptstation": "the express is sent from [Xinxiang Yuanyang] to [Zhengzhou Distribution]",

    "AcceptTime": "2019-11-03 19:03:45"

}, {

    "Acceptstation": "the express has arrived at [Zhengzhou Distribution]",

    "AcceptTime": "2019-11-03 21:48:50"

}, {

    "Acceptstation": the express is sent from Zhengzhou to Nanning,

    "AcceptTime": "2019-11-05 21:54:20"

}, {

    "Acceptstation": "the express has arrived at [Nanning distribution]",

    "AcceptTime": "2019-11-07 17:24:45"

}, {

    "Acceptstation": "the express is sent from [Nanning distribution] to [Guilin distribution]",

    "AcceptTime": "2019-11-07 22:32:55"

}, {

    "Acceptstation": "the express has arrived at [Guilin distribution]",

    "AcceptTime": "2019-11-08 13:07:55"

}, {

    "Acceptstation": "the express is sent from [Guilin distribution] to [Guilin Gongcheng]",

    "AcceptTime": "2019-11-08 18:27:30"

}, {

    "Acceptstation": the express has arrived in Gongcheng, Guilin,

    "AcceptTime": "2019-11-09 14:30:15"

}, {

    "Acceptstation": "the express has arrived at [Guilin Gongcheng ZX], station customer service hotline [199979797, 1997]",

    "AcceptTime": "2019-11-10 09:07:51"

}, {

    "Acceptstation": "express delivery was made in [Guilin Gongcheng ZX], and the dispatcher was [Chen zhenxue] [17376492827]",

    "AcceptTime": "2019-11-10 09:12:09"

}, {

    "AcceptStation": "has signed, the recipient is: [Alipay payment sign]"

    "AcceptTime": "2019-11-10 16:29:00"

}],

"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