Skip to main content

Tracking Information (Public)

The following request can be made to get a detailed lifeline of an order since it was created

Request​

GET - {{url}}/api/public/order/tracking-info

Headers
{
"Accept": "application/json",
"Content-Type": "application/json",
"X-tenant": "{{ tenant }}",
}
Sample Payload
{
"waybill_number": "MG0001201",
}

Response​

Status - 200 - OK

Sample Response Object
{
"data": [
{
"status": {
"name": "CONFIRMED",
},
"date_time": "2022-02-19T19:06:23.000000Z",
"date_time_ago": "1 month ago",
"user": {
"first_name": "Mr. John",
"last_name": "Doe"
},
},
{
"status": {
"name": "DRAFT",
},
"date_time": "2022-02-19T19:05:57.000000Z",
"date_time_ago": "1 month ago",
"user": {
"first_name": "Mr. John",
"last_name": "Doe"
},
}
]
}

Response Payload Objects​

data : Array - An array of statuses that the order has been in since it was created with details of when and who initiated the status change

ERRORS​

Waybill number of the order has not been provided in the request payload
{
"message": "The given data was invalid.",
"errors": {
"waybill_number": [
"The waybill number field is required."
]
}
}
The requested waybill does not exist in the system
{
"message": "The requested waybill does not exist in the system"
}