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

Members & Profile

Registering members from your channels, keeping their profiles in sync, and removing them when they leave — with the API calls, webhooks and checks for each step.

Every other module depends on members existing in Open Loyalty with the right identifier. This page covers how members get there from your channels, how their profiles stay in sync, and what happens when they leave.

Before you start, decide how members are identified — see Member identity. For the Admin Panel side, see Adding members and Removing members.

Who does what

Area
Responsibility

Admin Panel

Member configuration (identifiers, required fields), custom fields, wallets, the welcome campaign

Integration layer

Creates, updates and removes members when the channel's customer account changes; stores the customerId; handles retries

Channels (website, app, e-commerce)

Tell the integration layer about registrations, profile changes and account closures; show loyalty data to the member

CRM / marketing automation

Receives loyalty membership and profile changes through webhooks

Design decisions

Decision
Options
Recommendation

When a customer becomes a member

Automatically at account creation, or by explicit opt-in

Automatic enrolment keeps the integration simple. With opt-in, create the member only when they opt in.

Which system owns the profile

The channel's customer system, or Open Loyalty

The customer system owns personal data; Open Loyalty keeps a copy for rules and messages. Send changes one way only.

What "leaving" means

Delete, anonymise or deactivate

See the removal options below. Agree it with your privacy team before go-live.

Personal data to send

Everything, or only what rules and messages need

Send only fields that campaigns, segments or messages use.

1

Configure (Admin Panel)

Set the member identifiers in member configuration — usually the loyalty card number as required, unique and used for event matching. Create the custom fields and wallets the programme needs, and a welcome campaign on the Member Was Activated internal event.

2

Register

When a customer account is created, the integration layer sends POST /api/{storeCode}/member with the customer ID as loyaltyCardNumber. The member is active straight away, which triggers the welcome campaign. Store the returned customerId with the customer.

3

Keep the profile in sync

On every profile change, read the member, merge the change and write the full profile back (GET → merge → PUT). For labels or custom fields only, use PATCH. Mark the source of each change so webhook echoes can be ignored.

4

Tell other systems

Subscribe to CustomerRegistered, CustomerUpdated and CustomerDeactivated webhooks to update CRM or marketing automation.

5

Remove

When the member leaves, delete, anonymise or deactivate them — see below.

Sequence diagrams

The channel tells the integration layer a customer account was created. The integration layer creates the member in Open Loyalty with the customer ID as loyalty card number. Open Loyalty activates the member, opens wallets and runs the welcome campaign, then returns the customerId. Open Loyalty sends a CustomerRegistered webhook, and the integration layer marks the contact as a loyalty member in CRM.
Registration
The channel reports a profile change. The integration layer reads the member, merges the change and sets the source, then writes the full profile with PUT. Open Loyalty sends a CustomerUpdated webhook, which the integration layer ignores when the change came from the same channel. For labels or custom fields only, PATCH is used instead.
Profile update
Three alternatives. When a member leaves, the integration layer deletes the member, removing profile, wallets, balances, badges and progress. For an erasure request it anonymises the member, removing personal data but keeping transactions. To pause the account it deactivates the member. Re-joining after removal creates a new, empty profile.
Removal: delete, anonymise or deactivate

Removal options

Deactivate
Anonymise
Delete

Use when

The account is suspended and may come back

A member asks to be forgotten, but you need history for reporting

The member leaves and nothing should remain

Personal data

Kept

Removed permanently

Removed permanently

Transactions and history

Kept

Kept, without personal data

Removed

Earning

Transactions and custom events no longer match the member; purchase, tier and time-based campaigns don't run

—

—

Reversible

Yes — activate again

No

No

Call

POST /member/{member}/deactivate

POST /member/{member}/anonymize

DELETE /member/{member}

A member who re-joins after being deleted gets a new, empty profile — points, badges and progress start from zero. Tell members this in your terms if it applies. See Removing members for what an inactive member can still do, and GDPR for data-protection questions.

Go-live checklist

Admin Panel

Integration layer

Channels and CRM

Validation

Key endpoints

Webhooks: CustomerRegistered, CustomerUpdated, CustomerDeactivated

Last updated

Was this helpful?