The Carriyo webhook endpoint acts as the primary link for carriers to transmit real-time status updates to Carriyo.
The carrier's system will call the endpoint for each status update as and when they happen. It is important for the carrier to include the exact date and time of the event for Carriyo to uniquely identify each update.
This feature guarantees that Carriyo and its users consistently receive current and precise details regarding the shipment's progress and location.
OK
Error
{- "tracking_number": "new-shipment-1",
- "status_update_date": "2023-05-24T12:15:05.000Z",
- "carriyo_status_code": "failed_delivery_attempt",
- "carriyo_reason_code": "refused_by_customer",
- "carrier_status_code": "CUSTOMER-REFUSAL",
- "carrier_status_description": "Customer refused to accept delivery",
- "status_location": "Dubai",
- "status_coordinates": null,
- "proof_of_delivery": "",
- "driver_name": "John",
- "driver_phone": "",
- "recipient_name": "John"
}
{- "request": {
- "tracking_number": "new-shipment-1",
- "status_update_date": "2023-05-24T12:15:05.000Z",
- "carriyo_status_code": "failed_delivery_attempt",
- "carriyo_reason_code": "refused_by_customer",
- "carrier_status_code": "CUSTOMER-REFUSAL",
- "carrier_status_description": "Customer refused to accept delivery",
- "status_location": "Dubai",
- "status_coordinates": null,
- "proof_of_delivery": "",
- "driver_name": "John",
- "driver_phone": "",
- "recipient_name": "John"
}, - "tracking_info": {
- "shipment_id": "shipment-1",
- "status": "SUCCESS",
- "tracking_number": "new-shipment-1",
- "status_events": [
- {
- "status": "failed_delivery_attempt",
- "carrier_status": "CUSTOMER-REFUSAL",
- "carrier_status_description": "Customer refused to accept delivery",
- "update_date": "2023-05-24T12:15:05.000Z",
- "status_update_date": "2023-05-24T14:15:07.222Z",
- "update_status_location": "Dubai"
}
]
}
}