Delivery webhooks — payloads, signatures & retries
How Dawurobo sends signed order webhooks to your app — the payload, which status sends which event, HMAC signature checks, retries, and what sandbox keys do.
Dawurobo sends a webhook to your app's endpoint when one of your delivery orders changes. Set the
endpoint URL and signing secret per app in Partner
Hub. You can also send webhook_url on
orders.create to send that one order's webhooks to a different URL. It is signed with the same
app secret.
When a webhook is sent
One webhook is sent each time:
- the order's status changes, or
- a rider is assigned or changed on the order (even if the status stays the same).
No webhook is sent when the order is created. The orders.create response is your
confirmation.
Sandbox (staging) keys send no webhooks
Orders made with a staging key are kept apart from real orders and no rider works them. You can still move a staging order's status on the staging dashboard, but the webhook sender does not run for staging orders, so no webhook is sent when it changes. Use Test webhook in Partner Hub to send a signed test event to your endpoint instead.
The payload
Every webhook is a JSON POST with this body:
{
"event_type": "order.updated",
"timestamp": "2026-10-23T14:05:12.481Z",
"order_data": {
"external_order_reference": "EXT-1001",
"internal_order_id": "ORD-1234567890",
"status": "inTransitToRecipient",
"status_reason": "",
"rider_info": {
"id": "Xb7rQ2kLm9",
"name": "Kwame Asante",
"phone": "0241234567"
},
"delivery_info": {
"recipient_name": "Ama Mensah",
"recipient_phone": "0244000000",
"delivery_address": "123 Oxford St, Osu, Accra, Greater Accra",
"delivery_date": "2026-10-23T10:00:00.000Z"
},
"timestamps": {
"created_at": "2026-10-23T08:12:40.118Z",
"updated_at": "2026-10-23T14:05:11.902Z",
"assigned_at": "2026-10-23T09:30:02.551Z"
},
"tracking_url": "https://delivery.dawurobo.com/track?order_id=ORD-1234567890"
}
}| Field | Description |
|---|---|
event_type | The event name. See the table below. |
timestamp | When this webhook was built (ISO 8601). |
order_data.external_order_reference | Your order_reference from orders.create. |
order_data.internal_order_id | The Dawurobo order id (the order_id you use with orders.get). |
order_data.status | The order's real status. See order statuses. |
order_data.status_reason | Why the status changed, when staff gave a reason. Often empty. |
order_data.rider_info | Only present once someone is assigned (never on an order still waiting for a rider). name falls back to "Rider" and phone can be empty when we can't find the rider's details. |
order_data.delivery_photo | Only present when the rider took a proof-of-delivery photo. It is a link that works for 24 hours, so download it if you want to keep it. |
order_data.delivery_info | Recipient name, phone, full delivery address, and delivery date. |
order_data.timestamps | created_at, updated_at, and assigned_at (only once someone is assigned). |
order_data.tracking_url | The public tracking page for the order: status, timeline and attachments, no sign-in, no expiry. Safe to give to your customers. Production orders link to delivery.dawurobo.com (staging sends no webhooks; orders.get gives staging orders a staging-site link). |
Event types
event_type is set from the order's new status. Statuses that don't have their own event arrive
as order.updated, so always read order_data.status for the exact state.
order_data.status | event_type |
|---|---|
accepted | order.accepted |
rejected | order.rejected |
received | order.received |
pickedUp | order.picked_up |
inTransit | order.in_transit |
delivered | order.delivered |
cancelled | order.cancelled |
rescheduled | order.rescheduled |
returned | order.returned |
returned_to_vendor | order.returned_to_vendor |
refunded | order.refunded |
placed | order.created (only sent if an order is moved back to placed, never at creation) |
processing, toGoOut, inTransitToHub, inTransitToRecipient, to_return_to_vendor | order.updated |
A rider assignment with no status change uses the event for the current status. For example, a
rider assigned to an accepted order sends another order.accepted, now with rider_info.
Headers
Each webhook request carries:
Content-Type: application/jsonUser-Agent: Dawurobo-Delivery-Webhook/1.0X-Webhook-Source: dawurobo-deliveryX-Webhook-Signature: HMAC-SHA256 (hex) of the raw request body, using your app's webhook secret. You can change the header name in Partner Hub.X-Webhook-Timestamp: when the request was sent (ISO 8601).Authorization: only if an authorization header is configured for your app.
Only the body is signed
The signature covers the raw body and nothing else. X-Webhook-Timestamp is not signed, so
don't use it to judge freshness. Use timestamp inside the body, which is signed.
Verifying the signature (Node.js)
import crypto from "crypto";
function verifyWebhook(rawBody: string, signature: string, secret: string): boolean {
const expected = crypto.createHmac("sha256", secret).update(rawBody, "utf8").digest("hex");
const left = Buffer.from(expected, "utf8");
const right = Buffer.from(signature || "", "utf8");
return left.length === right.length && crypto.timingSafeEqual(left, right);
}Always verify the raw request body. If you parse the JSON and serialise it again, the bytes can change and the signature will not match.
Answer a bad or missing signature with 401. The Go live checks
send one event with a wrong signature and expect your endpoint to refuse it.
Where webhooks come from
Webhooks are sent from Google Cloud Functions, which have no fixed IP addresses. Don't allow-list IPs. Check the signature instead.
Retries
- We wait up to 20 seconds for your response. Any
2xxcounts as delivered. - A timeout, a network error, a
5xx, or a429is retried. Any other4xxis not retried. - There are up to 5 attempts in total. The gaps between them are about 1, 5, 15 and 30 minutes. Retries are picked up by a sweep that runs every 5 minutes, so a gap can be a few minutes longer.
- After the fifth failed attempt the webhook is dropped and not sent again. If your endpoint is
down for a long time, read your open orders with
orders.getwhen it comes back.
Handling duplicates and order
The same order change is only queued once. But a retry can still reach you twice, for example when your server did the work but answered after our 20-second timeout. Webhooks can also arrive out of order.
There is no event id. To de-duplicate, use internal_order_id + status +
timestamps.updated_at. To stay in order, keep the webhook with the newest
timestamps.updated_at for each order.
Test events
Test webhook in Partner Hub and the Go live webhook check send signed test events with a
different body ("event": "test.webhook" or "event": "readiness.check"). Verify the signature
and answer 2xx for any event you don't handle.
Receiver checklist
- Answer
2xxquickly. Do slow work after you reply. - Verify the signature on the raw body before trusting anything in it.
- Log
event_type,internal_order_id,status, and the verification result for every request. - Alert on repeated non-
2xxanswers from your own endpoint. - Change your webhook secret in Partner Hub if you think it has leaked.
Safe catalog
Sell products online in Ghana without holding inventory — syndicated catalog + order endpoints, paid by mobile money or card.
Dawurobo API error codes & how to fix them
Decode Dawurobo Partner Platform API error responses — 401, 402, 409, 429 and the signing, scope, nonce, and wallet failures behind them — with the exact fix for each.