Developer docs / Integrations
Webhooks
Store events delivered to your URL, signed and retried, and the events API.
Events
| Event | When |
|---|---|
| order.created | An order is placed (also test orders on a sandbox store) |
| order.updated | An order changes: paid, shipped, refunded, cancelled |
| product.created | A product is added |
| product.updated | A product changes |
| product.deleted | A product is deleted |
| stock.low | A variant reaches the low-stock threshold |
| observability.alert.opened | An alert rule fired (see Observability hooks and API) |
| observability.alert.resolved | An alert is resolved |
| observability.threshold | A number crossed an alert rule's limit |
| observability.daily_summary | Yesterday's totals, once a day |
| observability.event | The events the store counted; only when named, never with "*" |
Deliveries
Each delivery is a POST of { id, type, created_at, data } with these headers:
| Header | Value |
|---|---|
| Webhook-Id | The event id, the same on retries |
| Webhook-Timestamp | When it was sent |
| Content-Digest | A digest of the body |
| Signature | An RFC 9421 signature from the store's UCP key |
Verify the signature with the store's public keys at https://<store>/.well-known/ucp.
Retries
A non-2xx answer is retried with backoff, from 1 minute doubling to 6 hours, 12 tries in all (about a day and a half). Use Webhook-Id to ignore a delivery you already handled. Delivery goes through the platform relay, so the URL's origin must be on the store's relay allowlist (adding a webhook adds it).
The events API
Every event is also listed, newest first, by GET /api/owner/events (permission webhooks.read), so you can catch up on what you missed.