For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhooks & CRM Sync

Choosing which Open Loyalty events to subscribe to, receiving webhooks reliably, and keeping CRM and marketing automation in step with the programme.

Webhooks are how Open Loyalty tells your other systems what happened: a member registered, earned, redeemed, changed tier. CRM and marketing automation use them to keep a copy of loyalty data and to trigger messages. This page covers which events to subscribe to and how to receive them reliably.

For the Admin Panel side, see Webhook configuration and HMAC. For developer background, see the Developer Guide's webhooks overview.

Who does what

Area
Responsibility

Admin Panel / API

Webhook subscriptions per event, endpoint URL or SQS queue, HMAC signing, custom headers — set up in each environment

Integration layer

A fast, always-on endpoint that verifies, queues and acknowledges; workers that deduplicate and update downstream systems

CRM / marketing automation

Stores loyalty attributes on the contact and runs journeys (welcome, earn and burn messages, expiry reminders, tier changes)

Which events to subscribe to

Subscribe only to what a downstream system uses. Every event is listed in What triggers a webhook.

Need
Events

Keep the contact's loyalty profile in CRM

CustomerRegistered, CustomerUpdated, CustomerDeactivated

Keep the balance in CRM

WalletBalanceUpdated

Earn messages ("You earned 50 points for…")

CampaignEffectWasApplied

Redemption messages and vouchers with codes

CustomerBoughtReward, RewardRedemptionStatusChanged

Expiry reminders

PointsWillExpire, CouponWillExpire — see Expiring notifications

Tier messages

CustomerLevelChanged, LevelWillExpire

Mission progress

MemberChallengeProgressWasChanged

Purchase confirmations

TransactionRegistered, TransactionAssignedToCustomer

Refresh cached configuration

CampaignCreated, CampaignUpdated, RewardCreated, RewardUpdated

Design decisions

Decision
Options
Recommendation

Delivery target

HTTPS endpoint, or AWS SQS

SQS if you're on AWS — the queue absorbs bursts and outages. Otherwise an HTTPS endpoint that only verifies and queues.

Event payload or a fresh read

Use the webhook data, or read the current state from the API

Use the payload for messages about the event itself; read the API when you need the full, current state (e.g. the whole profile).

One endpoint or many

One endpoint for all events, or one per event

One endpoint with routing by eventName is simpler to secure and monitor.

Real-time or batch in CRM

Write each event, or collect and load daily

Real-time for balances and transactional messages; batches are fine for journeys that run daily.

1

Subscribe

Create the subscriptions in the Admin Panel or with POST /api/{storeCode}/webhook/subscription, one per event. Turn on Enable HMAC signature and store the secret — it's shown only once. Subscriptions aren't part of configuration exports, so set them up in each environment.

2

Receive

Verify the HMAC signature and reject anything that fails. Put the payload on a queue and answer 2xx straight away — do the real work afterwards.

3

Process

Webhooks are sent asynchronously. A request that times out or doesn't get a 2xx is retried a few times and then dropped, and deliveries can repeat or arrive out of order. So in the worker: skip a messageId you've already processed, and when order matters, compare createdAt or read the current state from the API.

4

Update downstream

Upsert into CRM by the member identifier — never insert blindly. Keep loyalty data in dedicated fields so a webhook can't overwrite data CRM owns.

5

Reconcile

Don't rely on webhooks alone for critical data. Compare CRM against Open Loyalty periodically — for example balances for members active that day, or a full data export — and fix differences.

Sequence diagram

Open Loyalty posts an HMAC-signed webhook with messageId, eventName, createdAt and data to the integration layer's endpoint. The endpoint verifies the signature, puts the payload on a queue and answers 2xx at once; without a 2xx in time Open Loyalty retries a few times and then gives up. A worker takes the message, skips it if the messageId was already processed, optionally reads the current member or wallet from Open Loyalty, and upserts the data into CRM. Failures stay on the queue and are retried.
Receiving and processing a webhook

Go-live checklist

Admin Panel / API

Integration layer

CRM / marketing automation

Validation

Key endpoints

Webhook events: each event's payload is in the API docs under Webhook event — e.g. WalletBalanceUpdated, CampaignEffectWasApplied, CustomerBoughtReward.

Last updated

Was this helpful?