Get a shipment status
This API endpoint allows you to retrieve the current status of a shipment.
URL
https://api.trackship.com/v1/shipment/get/
Header Parameter:
trackship-api-key: <your api key here>
app-name: <your app name here>
CURL POST request:
curl --location 'https://api.trackship.com/v1/shipment/get/' \
--header 'trackship-api-key: <your api key here>' \
--header 'app-name: <your app name here>' \
--header 'Content-Type: application/json' \
--data '{
"tracking_number": "6860010537552",
"tracking_provider": "delhivery"
}'
Request Parameters:
Parameter | Type | Description |
tracking_number (required) | String | Tracking number for the package |
tracking_provider | String | Unique code of tracking provider for that tracking |
Response Body:
{
"status": "success",
"data": {
"order_id": "24",
"tracking_number": "9212490276905104629392",
"tracking_provider": "usps",
"tracking_event_status": "in_transit",
"tracking_est_delivery_date": null,
"origin_country": null,
"destination_country": "",
"delivery_number": null,
"delivery_provider": null,
"shipping_service": "Priority Mail<SUP>®</SUP>",
"last_event_time": "2023-02-09 10:38:00",
"events": [
{
"object": "TrackingDetail",
"message": "Merchant Order Receipt Notification, USPS Awaiting Item - LOS ANGELES, CA",
"description": "",
"status": "pre_transit",
"status_detail": "pre_transit",
"datetime": "2023-02-09 04:13:00",
"source": "USPS",
"tracking_location": {
"object": "TrackingLocation",
"city": "LOS ANGELES",
"state": "CA",
"country": "",
"zip": "90045"
}
},
{
"object": "TrackingDetail",
"message": "Picked Up by Shipping Partner, USPS Awaiting Item - LOS ANGELES, CA",
"description": "",
"status": "pre_transit",
"status_detail": "pre_transit",
"datetime": "2023-02-09 06:24:00",
"source": "USPS",
"tracking_location": {
"object": "TrackingLocation",
"city": "LOS ANGELES",
"state": "CA",
"country": "",
"zip": "90045"
}
},
...
],
"destination_events": null
}
}
{
"status": "error",
"message": "tracking information is not exist"
}
Response Parameters:
Parameter | Type | Description |
status | String | success/error |
data | Object | shipment tracking data |
message | String | response message |