Skip to main content

Customer Data

Company Data describes what the retailer sells and where. Customer Data describes who the customer is and what they do, and it splits into two parts:

PartWhat it isGuide
CustomersCustomer identity: how external systems create, resolve, update and reconcile Loyal Guru customers — including duplicates, households, associations and card renewalCustomers
Custom EventsAnything a customer does that is not a purchase: registering, completing a profile, attending an event, using the app. Events the program can score and react toCustom Events

Purchases are the third thing customers do, and they live on the company side of the load as Carts — the entity is the ticket, not the person.

The channel decision applies here too​

Customer data is not API-only. The customer base is part of the initial load, and in practice it arrives the same way the catalogue does: as an agreed flat file, because exporting an existing customer database over HTTP one record at a time is rarely worth building. Afterwards, a daily delta by file or the /customers endpoints both work.

Custom events are the exception: they have no historical load, and they are sent through the API as they happen. There is no point in a nightly batch of behaviour the program was supposed to react to yesterday.

Full channel and phase model: Data → Two channels for the same data.

Identity is the decision that costs the most to get wrong​

Everything the program does at runtime — points, vouchers, rewards, games, challenges, audiences — is attached to a Customer ID. If the same person exists twice, their benefits are split; if the ID a channel sends is not the ID that owns the voucher, the voucher cannot be used.

Two rules that belong in the design, not in a later fix:

  • One stable Customer ID per person, used by every channel. Where the retailer cannot guarantee that, the integration has to choose explicitly how duplicates, cards and relationships are handled — the scenarios are laid out in Customers.
  • Loyal Guru must be told when two identities are consolidated. A merge that happens only in the retailer's CRM leaves the loyalty state split.

On the file side, one constraint is worth flagging before the first load: customer email must be unique across the customer file. Duplicated emails are the most common reason an initial customer load has to be re-cut.

caution

Identity verification is not Loyal Guru's job

Loyal Guru does not verify that the person behind a request owns the account. Merging accounts on a matching email or phone alone is a fraud vector — points and vouchers can be taken over. Verify ownership before consolidating, and use a soft association instead when identity cannot be trusted. See Customers → Merges and households.