Skip to main content

Shipment Webhook Documentation

Overview​

The Shipment Webhook is triggered whenever there is a status change in the shipment process. It sends real-time updates to an external webhook, ensuring seamless tracking and synchronization.

Tracked Statuses​

The webhook is activated only for specific shipment statuses:

StatusDescription
TO_PREPAREThe shipment is being prepared.
TO_WITHDRAWThe shipment is ready for pickup.
IN_TRANSITThe shipment is currently in transit.
CARRIER_LATEThe carrier has reported a delay.
ARRIVEDThe shipment has reached its final destination.
RETURNEDThe shipment return has arrived at the warehouse.
PROCESSEDThe shipment return is processed

Webhook Payload​

Whenever a tracked status update occurs, the webhook sends the following payload:

{
"shipmentId": number,
"status": string,
"omsOrderId": string,
"trackingCode": string,
"trackingLink": string,
"isReturn": boolean
}

Example Payload​

{
"shipmentId": 123456,
"status": "IN_TRANSIT",
"omsOrderId": "OMS78910",
"trackingCode": "XYZ1234567",
"trackingLink": "https://tracking.example.com/XYZ1234567",
"isReturn": false
}

Webhook Endpoint Requirements​

The external webhook must meet the following requirements:

  • Accept HTTP POST requests.
  • Support JSON payloads.
  • Respond with a 200 OK status to acknowledge receipt of the webhook event.

Webhook Activation Process​

To activate the Shipment Webhook for your system, you must provide your webhook URL to one of our developers. They will configure the necessary settings and ensure proper integration. Please reach out to our development team to get started.