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
customerId
Open Loyalty
UUID generated when the member is created. Never changes.
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 returns404, 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
customerIdin the request body. Read it once fromGET /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.
To change only labels or custom fields, use PATCH /api/{storeCode}/member/{member} instead — it updates just what you send.
Checklist
Key endpoints
POST /api/{storeCode}/member— Add a memberGET /api/{storeCode}/member/{member}— Get member's detailsPUT /api/{storeCode}/member/{member}— Update member's detailsPATCH /api/{storeCode}/member/{member}— Partially update member details
Last updated
Was this helpful?

