Package info
Getting current information about a previously added package.
Request
GET /packages?trackNumber={trackNumber}
Required GET request parameters:
Parameter | Type | Description |
---|---|---|
trackNumber | String | Package tracking number |
Example of a successful response
The response will return a Package object
{
"code": 200,
"payload": {
"created_at": "2021-07-06T13:46:25+03:00",
"updated_at": "2021-07-06T13:46:25+03:00",
"started_tracking_at": "2021-07-06T13:46:25+03:00",
"track_number": "UA937578848US",
"origin": null,
"destination": null,
"last_status": "Receiving status...",
"status": -1,
"checkpoints": [
{
"id": "",
"date": "2021-07-06T13:46:25+03:00",
"title": "Tracking started",
"location": "The package most likely isn't shipped yet",
"latitude": null,
"longitude": null,
"courier_id": null
}
],
"last_status_date": "2021-07-06T13:46:25+03:00",
"est_delivery_date_from": null,
"est_delivery_date_to": null,
"extra_track_numbers": [],
"hash": "f25370e9",
"consolidated_track_number": null,
"consolidation_date": null,
"destination_country_code": "ru",
"updating": false,
"last_tracking_date": null,
"days_on_way": 1,
"weight": null,
"extra_info": [],
"couriers_ids": [
1,
4,
10,
366
],
"courier_id": null,
"info": []
}
}
Error response codes
Error codes possible with HTTP status code other than 400:
Code | Description |
---|---|
404 | Package with the specified tracking number not found |