This webhook is activated when an order include a CAS (Container Accounting System) instruction to the driver and the CAS API is activated.
When the driver either picked up or delivered an order with a return container instruction, the payload of the actual instruction details, is shown in this webhook.
This webhook is directly associated to the "Container return result", where this webhook provide details of what the driver is expected to swap, and the "Container Return Result" will show the actual exchange and details.
The request from the webhook will look like this:
{
"webhookId": "692f3e573d27aa190025d0dd",
"name": "containerSwapInstructions",
"sent": "2025-12-01T19:30:31.550Z",
"created": "2025-12-01T19:30:31.559Z",
"data": [
{
"orderId": "692e5a47c0a3f50031b1d9ba",
"orderNumber": "DROP-123-45678901",
"containerId": "579169e3-07e0-4135-8a63-edaf98e79c9e",
"containerName": "Pallet",
"containerSubTypeId": "6a6068ae-3a7d-4f6a-ba06-845b32885cf5",
"containersubTypeName": "Euro",
"amount": 3
},
{
"orderId": "692e5a47c0a3f50031b1d9ba",
"orderNumber": "DROP-123-45678901",
"containerId": "579169e3-07e0-4135-8a63-edaf98e79c9e",
"containerName": "Pallet",
"containerSubTypeId": "f3056f2a-44f3-47aa-b72e-fdc140dff7cf",
"containersubTypeName": "1/2 Euro",
"amount": 2
},
{
"orderId": "692e5a47c0a3f50031b1d9ba",
"orderNumber": "DROP-123-45678901",
"containerId": "579169e3-07e0-4135-8a63-edaf98e79c9e",
"containerName": "Pallet",
"containerSubTypeId": "0940e354-e096-4b93-b287-61a3de940dcb",
"containersubTypeName": "1/4 Euro",
"amount": 1
}
]
}| Key | Description |
|---|---|
| orderId | The id of the order |
| orderNumber | The order number of the order |
| containerId | The id of the container on CAS |
| containerName | The name of the container on CAS |
| containerSubTypeId | The id of the sub container on CAS |
| containerSubTypeName | The name of the sub container on CAS |
| containerRequireQuantity | If the container requires quantity |
| amount | The amount of containers |
