The two tracking tools
Use both. The tracking link gives customers a zero-effort view. Webhooks let your backend react to status changes without polling.
The tracking link
Every successfulcreate-order response includes a tracking_link:
Polling (fallback only)
If you need order status and missed a webhook event, poll the tracking endpoint:Webhooks as the primary update source
Configure a webhook endpoint in your Yonne dashboard. Yonne willPOST a JSON payload to your URL on every order status change.
Example payload:
- Verify the HMAC-SHA256 signature (see Webhook Setup & Security)
- Look up the order by
order_idormerchant_reference_id - Update the order status in your database
- Trigger any downstream logic (customer notification, OMS update, support tool refresh)
- Return
200 OK
Order status lifecycle
Testing your webhook handler
Use the simulate-status endpoint to push status changes in test mode without waiting for a real rider:Reconciliation strategy
If your webhook receiver goes down and misses events:- On recovery, query
GET /api/v1/external/track/:tracking_idfor any orders in a non-terminal state. - Update your database to match the current Yonne status.
- Trigger any missed downstream actions (notifications, OMS updates).
order_id and tracking_id in your database from the moment the order is created — you’ll need them for this reconciliation.