This webhook will be called when an order have changed it's wayPoint. The request from the webhook would look like this:
{
"webhookId": "614b3389b2b02903dbf87c25",
"name": "wayPointChangedOrder",
"sent": "2021-09-22T13:45:45.265Z",
"data": [
{
"orderId": "61487cfa9ce101003169dc48",
"orderNumber": "TEST-ORDER-NUMBER-3",
"tntKey": "dccd286c-8a17-4729-a499-6934d46930c1",
"vehicle": "TUR001",
"vehicleId": "5e1ddf5052f3b0002f18af81",
"taskListId": "649a13215a8fa0017b4dc482",
"hub": "",
"origin": {
"previous": 1,
"eta": "2021-09-22T13:45:45.265Z",
"current": 2
},
"destination": {
"previous": 2,
"eta": "2021-09-22T13:45:45.265Z",
"current": 3
}
},
{
"orderId": "6136a4b88eac3f019e0bf586",
"orderNumber": "TEST-ORDER-NUMBER-4",
"tntKey": "dccd286c-8a17-4729-a499-6934d46930c2",
"origin": {
"previous": 3,
"eta": "2021-09-22T13:45:45.265Z",
"current": 2
},
"destination": {
"previous": 3,
"eta": "2021-09-22T13:45:45.265Z",
"current": 4
},
"vehicle": "TUR001",
"vehicleId": "5e1ddf5052f3b0002f18af81",
"taskListId": "649a13215a8fa0017b4dc482",
"hub": ""
}
]
}
The data contains:
Key | Description |
---|---|
orderId | The id of the order |
orderNumber | The orderNumber of the order |
tntKey | The key to be used for the Track & Trace link |
vehicle | The vehicle the order have been placed on |
vehicleId | The id of the vehicle that handle the order |
taskListId | The id of the task list the order is on |
hub | The hub the order is placed, if selected |
origin.previous | The previous wayPoint for the origin |
origin.eta | The current ETA for origin |
origin.current | The new wayPoint for the origin |
destination.previous | The previous wayPoint for the destination |
destination.eta | The current ETA for destination |
destination.current | The new wayPoint for the destination |