Webhooks
Subscribe an HTTPS endpoint in Developers → Webhooks. Events are written in the same database transaction as the change they describe, then delivered at least once — handle duplicates using LW-Event-Id.
Request
POSTwith a JSON body:{ id, object: "event", type, api_version, created, livemode, tenant_id, provenance, data: { object } }- Headers:
LW-Event-Id,LW-Event-Type,LW-Delivery-Id,LW-Signature - Respond with any 2xx within 10 seconds. Redirects are not followed.
- Retries: 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, 24 h, 24 h (±20% jitter), then the dead-letter queue, from where you can replay deliveries.
Verify the signature
LW-Signature: t=<unix seconds>,v1=<hex>. Compute HMAC-SHA256 of t + "." + raw body with the endpoint secret, compare in constant time, and reject timestamps older than 5 minutes. During secret rotation several v1 values are sent for 24 hours — accept any match.
# Webhooks are verified in your server code, not with cURL.
# Header format: LW-Signature: t=1790000000,v1=<hex>[,v1=<hex during secret rotation>]
# expected = HEX( HMAC_SHA256( endpoint_secret, t + "." + raw_request_body ) )
# Accept if any v1 equals expected (constant-time) and |now - t| <= 300 seconds.Events and provenance
Apple and Google do not report every lifecycle step. Each event says how it is known in provenance.verification:
- platform_verified the platform performed and committed the change
- platform_observed Apple or Google told the platform (device registration, signed callback)
- pos_reported your POS or integration asserted it
- inferred derived from indirect signals; treat as a hint
| Event | When | Verification |
|---|---|---|
customer.created | Customer created (API, dashboard, enrollment page, import) | platform_verified |
customer.updated | Profile, tags or consent changed | platform_verified |
pass.issued | Pass created and install links generatedDoes not mean installed. | platform_verified |
pass.installed (Apple) | A device registered the pass for updatesOnly when automatic updates are on. | platform_observed |
pass.installed (Google) | Google save callback received and verifiedBest-effort delivery by Google. | platform_observed |
pass.updated | New content committed; push/PATCH sentApple does not confirm delivery to the device. | platform_verified |
pass.uninstalled (Apple) | Device unregisteredMay be a removal or the user turning off updates. | inferred |
pass.uninstalled (Google) | Google delete callback verified | platform_observed |
loyalty.points_earned | Earn or bonus written to the ledgerThe sale itself is reported by your POS. | platform_verified |
loyalty.points_redeemed | Redemption written to the ledger | platform_verified |
loyalty.transaction_reversed | Reversal written to the ledger | platform_verified |
reward.issued / reward.redeemed | Voucher issued or used | platform_verified |
promotion.redeemed | Coupon or offer redeemedThe POS asserts the purchase happened. | pos_reported |
webhook.delivery_failed | A delivery was dead-letteredNever sent to the failing endpoint. | platform_verified |