Skip to main content
Webhooks push events to your systems as they happen, so you never have to poll. Register an HTTPS endpoint, choose the events you want, and optionally limit the endpoint to specific stores.
The response includes a signing secret (starting whsec_). It is shown once; store it securely.

Events

Full payload schemas are in the API reference.

Payload

Every event uses the same envelope:

Verifying signatures

Each request carries a Lula-Signature header:
Compute an HMAC-SHA256 of {t}.{raw request body} using your endpoint secret and compare it to v1 with a constant-time comparison. Reject requests where t is more than five minutes old.

Delivery and retries

  • Respond with any 2xx within 10 seconds. Do the work asynchronously if it takes longer.
  • Failed deliveries are retried with exponential backoff for up to 24 hours.
  • Events can arrive more than once and out of order. Use id to de-duplicate and created_at or the resource’s updated_at to order them.
  • An endpoint that keeps failing for 72 hours is disabled and your account contacts are notified. Re-enable it with PATCH /webhooks/{endpoint_id}.
  • Use POST /webhooks/{endpoint_id}/test to send a signed sample of any event.

Event history and replay

Every event from the last 30 days is available with GET /events, filtered by type, store, and time. Use it to reconcile your systems against Lula or to catch up after downtime. To have Lula redeliver instead, call POST /webhooks/{endpoint_id}/replay with a since time.