1.1 KiB
1.1 KiB
07 Webhooks
Webhook design goals:
- Multi-merchant event routing
- Idempotent processing
- Retry-safe handlers
- Event logging and replay support
- Signature verification (
X-Uber-SignatureHMAC SHA256 with client secret)
Current ingestion endpoint: POST /api/v1/webhooks/uber
Acknowledgement behavior:
- Valid webhook events are acknowledged with
200and empty body - Duplicate retries are de-duplicated and still acknowledged with
200
Common event types handled:
orders.notificationorders.failureorders.releaseorders.scheduled.notificationorders.canceldelivery.state_changedstore.provisionedstore.deprovisionedstore.menu_refresh_requeststore.status.changed
Menu refresh handling:
- On
store.menu_refresh_request, wrapper records the request on the mapped Uber store connection. - Persisted fields include:
last_menu_refresh_requested_atlast_menu_refresh_webhook_uuidlast_webhook_environment(fromX-Environment)
Retail fulfillment follow-up:
- On
orders.fulfillment_issues.resolved, fetch updated order details and inspect customer acknowledgment before next action.