This webhook will be called when an order have changed it's ETA. The request from the webhook would look like this:
{
"name": "etaChangedOrder",
"sent": "2018-04-13T10:55:23.623Z",
"data": [
{
"orderId": "5ad066886a9deecd679e6ac5",
"orderNumber": "WUX-123-45678901",
"requisition": "this-is-requisition",
"tntKey": "dccd286c-8a17-4729-a499-6934d46930c1",
"vehicleId": "5e1ddf5052f3b0002f18af81",
"taskListId": "649a0ea9b513a2014e1b3beb",
"origin": {
"previous": null,
"current": "2018-04-13T13:00:00.000Z"
},
"destination": {
"previous": null,
"current": "2018-04-13T13:32:51.000Z"
}
}
]
}
The data contains:
Key | Description |
---|---|
orderId | The id of the order. |
orderNumber | The order number the order have been given. |
requisition | The requisition the order have been given. |
tntKey | The key to be used for the Track & Trace link |
vehicleId | The id of the vehicle that handle the order |
taskListId | The id of the task list the order is on |
origin.previous | Origin's previous ETA time. |
origin.current | Origin's current ETA time. |
destination.previous | Destination's previous ETA time. |
destination.current | Destination's current ETA time. |
If orderNumber or requisition is not set, it will not be in the payload.