Webhooks
MoveTheWheels emits domain events for shipment status changes, tracking events, and other logistics lifecycle moments. Subscribe to them to keep your systems in sync without polling.
Event types
shipment.created— a new shipment is createdshipment.status_changed— shipment status advancestracking.event_added— a tracking event is recordedorder.created— a new order is capturedorder.fulfilled— all shipments for an order are deliveredroute.started— a route is marked in progressroute.completed— a route finishes
Subscribing
Configure webhooks via the developer portal or the devportal module in the
SDK/CLI:
movethewheels devportal webhooks create \
--name my-endpoint \
--url https://my-app.com/webhooks/movethewheels \
--events "shipment.status_changed,tracking.event_added"
Payload format
Webhook deliveries are signed HMAC-SHA256 JSON payloads:
{
"event": "shipment.status_changed",
"timestamp": "2026-07-26T10:40:00Z",
"data": {
"shipmentId": "...",
"oldStatus": "PLANNED",
"newStatus": "PICKED_UP"
}
}
Best practices
- Verify the HMAC signature before acting on the payload
- Return 2xx quickly and process asynchronously
- Handle retries gracefully — idempotency is required
- Filter to only the events you need