Webhooks
Receive signed, at-least-once lifecycle events and reconcile deliveries.
Configure a public HTTPS endpoint through PATCH /integration/webhook-subscription. It requires webhooks:write, an Idempotency-Key, a webhook secret, and an address that resolves only to public IP space on an allowed port (443 by default).
Delivery contract
EgyptLimo sends POST JSON with these headers:
Content-Type: application/json
X-Webhook-Event: booking.confirmed
X-Webhook-Id: evt_…
X-Webhook-Timestamp: 2026-10-03T10:00:00.000000Z
X-Webhook-Signature: sha256=<base64 HMAC>
X-Webhook-Key-Id: <signing key id>
X-Merchant-Id: <merchant id>
X-Correlation-Id: <trace id>
X-Idempotency-Key: <same value as X-Webhook-Id>The HMAC canonical string is X-Webhook-Id, lowercase event type, timestamp, SHA-256 of the raw body, and merchant ID, each on a separate line. Verify it with the webhook secret using a timing-safe comparison.
{
"event_id": "evt_…",
"event_type": "booking.confirmed",
"event_time": "2026-10-03T10:00:00.000000Z",
"channel": "partner",
"booking": {
"booking_id": "pbk_…",
"partner_reference": "AGENCY-BOOKING-1001",
"status": "confirmed",
"currency": "USD",
"total_price": "45.00"
}
}Delivery is at least once. Return a 2xx response quickly, record X-Webhook-Id before side effects, and process asynchronously. EgyptLimo retries transient delivery failures; the same event ID can be delivered more than once.
Events
booking.created, booking.confirmed, booking.updated, booking.update_requested, booking.update_approved, booking.update_rejected, booking.cancelled, booking.link_created, booking.customer_data_completed, driver.dispatched, driver.arrived, trip.started, trip.completed, refund.created, refund.updated, invoice.issued, invoice.paid, invoice.overdue.
Use GET /integration/webhook-deliveries to inspect delivery state. A terminal failed delivery can be requested again through POST /integration/webhook-deliveries/{delivery_id}/replay with webhooks:replay and a new idempotency key.
Replay requires an enabled subscription with a configured secret and a URL that passes the current webhook URL policy. Disabling the subscription before a queued job runs prevents delivery; re-enable and explicitly replay a failed delivery when ready.
delivery_id is an opaque, client-scoped string (for example pwd_r8k2m5n7q9s4t6v1w3x0y2z5), not a database integer. Replay accepts only IDs returned to the same API client.
The delivery list and replay action contain only outgoing deliveries owned by the authenticated client. An inbound event log, even if associated with the same client, is not an outgoing delivery and cannot be replayed through this API.