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

Member Identity

Choosing how members are identified across your systems and Open Loyalty, and the rules for reading and updating member profiles safely.

Every transaction, custom event and redemption has to land on the right member. Decide early which identifier your systems share with Open Loyalty — changing it after go-live means migrating every integration.

The identifiers

Identifier
Set by
Notes

customerId

Open Loyalty

UUID generated when the member is created. Never changes.

loyaltyCardNumber

You (or autogenerated)

Free-form text. Usually your own customer ID.

email

You

Can change over the member's lifetime.

phone

You

Can change over the member's lifetime.

In the Admin Panel's member configuration, each of email, phone and loyaltyCardNumber can be required at registration, unique in the tenant, and used for event matching (finding the member a transaction or custom event belongs to). Only unique identifiers can be used for matching, and an identifier set to non-unique can't be switched back. The configuration is per tenant.

Recommendation: your customer ID as the loyalty card number

For most programmes, store the ID your own customer system already uses (e-commerce customer ID, CRM contact ID) as loyaltyCardNumber, and make it required, unique and used for event matching.

  • Every system already knows it, so the integration layer doesn't need a lookup table.

  • Unlike email or phone, it doesn't change when the member updates their profile.

  • Member endpoints accept it directly in the path, so you rarely need the customerId.

If members join in several channels before they have a customer ID, make sure one system issues the ID at registration and the others receive it.

Using the identifier in the API

Member endpoints take the member as {member} in the path, as the UUID or as identifier=value:

  • The identifier= prefix is required — a bare value in the path returns 404, and so does an unknown member.

  • List endpoints filter by the identifier instead, e.g. customerData:loyaltyCardNumber= on transactions, custom events and redemptions.

  • A few calls take the customerId in the request body. Read it once from GET /member/loyaltyCardNumber=… and cache it with the member.

Updating a profile: GET, merge, PUT

PUT /member/{member} replaces the whole profile, including its labels. A PUT built only from the fields your system knows removes everything else — for example the labels that make a member eligible for campaigns.

1

Read

GET /api/{storeCode}/member/{member} to load the current profile.

2

Merge

Apply your change to that profile in the integration layer. Remove read-only fields that the PUT doesn't accept.

3

Write

PUT /api/{storeCode}/member/{member} with the full, merged profile.

To change only labels or custom fields, use PATCH /api/{storeCode}/member/{member} instead — it updates just what you send.

Checklist

Key endpoints

Last updated

Was this helpful?