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
Output data:
A sample request in PHP:
package_ids | array | An array with a list of parcel IDs. |
Output data
The method returns the data in JSON format.
status | varchar(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_history | array | Array of shipments, key parcel ID |
| - tracking_status_date | int | Status date |
| - courier_status_code | varchar(100) | Original status code in the courier system |
| - tracking_status | int | Tracking 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: