Skip to content

Webhooks

Preview — not live, shape may changeView as Markdown

Register an HTTPS endpoint and choose the events you want. LoyX sends each event as a signed POST, and retries until your endpoint answers 2xx.

Events are small. They carry ids and non-personal fields only. Fetch details with your token when you need them.

{
"id": "evt_...",
"type": "points.earned",
"api_version": "v1",
"created_at": "2026-11-20T10:15:04Z",
"sequence": 42,
"resource": { "type": "membership", "id": "..." },
"data": { "sale_id": "...", "receipt_id": "store12-reg3-000123", "points": 45, "balance_after": 310 }
}
Group Events
Joining join.created, join.confirmed, join.expired, join.cancelled
Members member.joined, member.updated, member.left, member.deleted, consent.changed
Points points.earned, points.reversed, points.adjusted, balance.changed, cycle.completed
Tiers tier.reached, tier.dropped
Rewards reward.granted, reward.held, reward.redeemed, reward.released, hold.expired, reward.restored, reward.expired, reward.revoked
Offers offer.published, offer.updated, offer.ended
Sales sale.recorded, sale.resolved, return.recorded, return.linked
Catalog product.created, store.updated
Access grant.approved, grant.revoked
Testing webhook.test

member.deleted means the person asked to be erased. Delete any copy of their data you keep.

  • Signed. Each request carries an id, a timestamp and an HMAC-SHA256 signature made with your endpoint’s secret. Verify it and reject requests older than 5 minutes. The exact header format is still being decided.
  • Retried. Anything but 2xx is retried with growing gaps for about 3 days. Answer fast and do the work afterwards.
  • At least once. The same event can arrive twice: de-duplicate on its id.
  • Not ordered. Use sequence to drop stale updates for the same resource.
  • Never dropped silently. An endpoint that keeps failing is switched off and the brand and you are told. Missed events can be replayed, and an events list lets you catch up for 30 days.
  • Secrets rotate without downtime: during an overlap, both secrets sign.
  • HTTPS only. Private addresses and redirects are refused.