Webhooks
Webhooks provide real-time notifications about changes in the Mailship, including orders and products. We can configure the following webhooks for you:
Expedition status change
Expedition booked change
Product stock change
Product change
Stock advice status change
For more details on how webhooks are created, please refer to the Knowledge Base.
Webhook Payload Structure
Expedition status change
The system sends webhooks when the expedition status changes.
Below is an overview of the statuses that may be included in the webhook payload. Status names are referenced exactly as written in API responses.
Status | Description |
---|---|
incorrect | The order contains invalid data and must be fixed by the client. |
waiting_for_goods | Waiting for goods to be restocked. |
stock_ok | “To be cofirmed” in Mailship. Waiting for your confirmation. |
on_hold | The order is on hold. |
awaiting_processing | The order is waiting for processing. |
awaiting_reservation | The order is waiting for product reservation. |
take_out | The order is being picked. |
completion | The order is being packed. |
waiting_for_the_carrier | The order is ready to be picked up by the carrier. |
ready_to_takeover | Ready for customer pickup. |
carrier_picked_up | The carrier has picked up the shipment. |
delivered | The order has been delivered. |
returning | The order is on its way back to warehouse. |
returned | Our warehouse has processed the returned order. |
canceled | The order has been canceled. |
You can find more details about order statuses in our Knowledge Base.
Expedition booked change
Product stock change
Product change
Stock advice status change
The system sends webhooks when the stock advice status changes.
Below is an overview of the statuses that may be included in the webhook payload. Status names are referenced exactly as written in API responses.
Status | Description |
---|---|
new | New stock advice. |
incorrect | The stock advice contains invalid data and must be fixed by the client. |
waiting | “Awaiting inbound” in Mailship. The stock advice is waiting for processing. |
in_progress | The stock advice is being processed. |
partially_finished | Only some items have been stocked. |
finished | All items have been stocked. |
canceled | The stock advice has been canceled. |
closed | The stock advice has been closed. |
You can find more details about stock advice statuses in our Knowledge Base.
If you are interested in setting up a new webhook, please contact our customer support and provide the following information: URL and event type.