API documentation
Method list
Test your request
Changelog


getCourierPackagesStatusHistory
The method allows you to retrieve the history of the status list of the given shipments. Maximum 100 shipments at a time


Input parameters
package_idsarrayAn array with a list of parcel IDs.



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
packages_historyarrayArray of shipments, key parcel ID
| - tracking_status_dateintStatus date
| - courier_status_codevarchar(100)Original status code in the courier system
| - tracking_statusintTracking status code:
0 - Unknown
1 - Courier label created
2 - Shipped
3 - Not delivered
4 - Out for delivery
5 - Delivered
6 - Return
7 - Aviso
8 - Waiting at point
9 - Lost
10 - Canceled
11 - On the way
12 - Exception (sorting error, other event, complaint)
13 - Transferred abroad



Sample
Input data:
Output data:
A sample request in PHP: