- API Location:
/consignment/tracktracking - Params:(POST or GET)
tracktracking_reference(mandatory field): track references imploded by ',';
newest(true/false default to be false): true with results not loading from cache. - Response Data:
success(true/false): true with data returns and false with message returns;
data(array): track info in associate array like ['TRACK_REFERENCE' => [TIME_LINEINFO]];
message(string): error info. For Example:
We You send a request like:
http://consignment/track?track_reference=1api.birdsystem.com/consignment/tracking?tracking_references=BSLZZ1020007635YQ
or
http://api.birdsystem.com/consignment/tracking?tracking_references=BSLZZ0926000004YQ&newest=true
It will returns json data like:Code Block language js theme Confluence linenumbers true { "success": true, "data": { "BSLZZ0926000004YQ": { "destination_country": "GB", "16465436check_points": [ { "create_time": "2015-01-01 0801T08:10:19+00:00", "current_status": "PREPARING", "note": "Create consignment, preparing." }, { "create_time": "2015-01-01 0801T08:10:19+00:00", "current_status": "PENDING", "note": "Consignment fromis [PREPARING]now toat [PENDING] status." }, { "create_time": "2015-01-02 15:48:40",02T15:30:39+00:00", "current_status": "WAIT_PICKING", "note": "Consignment fromis [PENDING]now toat [WAIT_PICKING]"} status." ] }, "message":[] }
{
"success":true,
"data":{
"16465436":[
{"{ "create_time": "2015-01-
02T15:43:40+00:00", "current_status": "
PICKING", "note":
"Consignment is now at [PICKING] status." }, { "create_time": "2015-01-
02T19:50:39+00:00", "current_status": "
FINISHED", "note": "Consignment
is now at [FINISHED] status." }, { "create_time": "2015-01-
02T19:50:39+00:00", "current_status": "
FINISHED", "note":
]
},
"message":[]
"This is a non-tracked service, no more delivery service is shown." } ] } }, "message": [] }
or error response like:
{
Code Block language js theme Confluence linenumbers true { "success": false,
"data": [],
"message": "Invalid track reference."
}