Skip to main content

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 created
  • shipment.status_changed — shipment status advances
  • tracking.event_added — a tracking event is recorded
  • order.created — a new order is captured
  • order.fulfilled — all shipments for an order are delivered
  • route.started — a route is marked in progress
  • route.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

Next steps​