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

Integration Architecture

How Open Loyalty fits between your member channels and your other systems, and what the integration layer in between is responsible for.

Open Loyalty is headless and API-first. Your channels (website, app, e-commerce, stores) send it what members do; it applies the programme's rules, keeps balances and history, and tells other systems what happened.

Member channels call an integration layer, which calls the Open Loyalty REST API. Open Loyalty sends webhooks to the integration layer and to CRM or marketing automation, and data exports to a data warehouse.
Reference architecture

The integration layer

Most programmes put a small service — the integration layer — between their channels and Open Loyalty, rather than calling the API from each channel. It can be a dedicated middleware, an iPaaS flow or part of an existing backend (e.g. an e-commerce platform's server-side extensions).

It is responsible for:

Responsibility
Why

Holding the API key

An API key acts with the permissions of the admin it belongs to and doesn't expire unless you set an expiry. It must never reach a browser or an app.

Mapping identifiers

Channels know a member by their own ID (customer number, email). The integration layer turns that into the identifier Open Loyalty matches on — see Member identity.

Transforming data

Orders, receipts and app events become Open Loyalty transactions and custom events.

Retries and idempotency

Transient failures (429, 5xx, timeouts) are retried with backoff; every event carries a stable ID so a retry can't be counted twice.

Logging

Every failed request is logged with its payload, so it can be replayed or investigated.

Member-facing channels — including those that only display data, such as balance, rewards and history — call the integration layer, which authenticates the member in your own system and reads from Open Loyalty on their behalf. Don't call Open Loyalty directly from a browser or app.

Synchronous and asynchronous flows

Direction
Mechanism
Typical use

Channels → Open Loyalty

REST API, synchronous

Register and update members, send transactions and custom events, read balances, list and redeem rewards

Open Loyalty → your systems

Webhooks, asynchronous

Balance changes, tier changes, rewards bought, campaign effects — to update CRM, trigger messages or refresh a cache

Open Loyalty → data platform

Data exports

Reporting and reconciliation in a data warehouse

Design every webhook consumer for at-least-once delivery: the same event can arrive more than once, and events can arrive out of order. See the webhook best practices.

Where the business logic lives

Keep programme rules in Open Loyalty, not in the integration layer:

  • Earning — how many points a purchase or an action is worth — belongs in campaigns, so marketing can change it in the Admin Panel without a release.

  • Eligibility — who can see or redeem what — belongs in segments, tiers, labels and campaign or reward conditions.

  • Limits — caps per member, per period or per campaign — belong in campaign and reward limits.

The integration layer should forward facts (this member bought these items, this member read this article) and let Open Loyalty decide what they are worth. A rule hard-coded in middleware is invisible in the Admin Panel, isn't covered by campaign simulation, and needs a deployment to change.

Checklist

Further reading

Last updated

Was this helpful?