Loyalty cards and programmes
Create Cegid Retail Y2 loyalty cards and show programme names, points, stored value, and expiry on wallet passes.
The connector creates loyalty cards in Cegid Retail Y2 and reads card details, programme names, and point balances for wallet passes. This keeps Apple Wallet and Google Wallet loyalty passes aligned with Cegid data.
Creating a card
A loyalty card is created by adding the corresponding step to the enrolment flow, after the step that creates the customer. The card is created against the store the customer is being enrolled at, and the flow can be configured to ignore the store the end-user's session carries and use a fixed default instead, which is useful for online enrolment where no real store applies.
Two Cegid prerequisites decide whether creation succeeds. The store must belong to the relevant loyalty campaign, and it must be open. Where a closed store is used, the connector retries once against the configured default store before failing.
Reading loyalty data
Cards attached to a customer are read on demand, filtered to those that are active and not closed. Where Cegid reports which programmes are available at the store, the list is further narrowed to cards belonging to those programmes, so that a card from an unrelated programme does not appear on a pass.
The following values are made available for pass templates.
loyalty.programName
The name of the loyalty programme the card belongs to.
loyalty.points
The point balance, with trailing zeros removed.
loyalty.activationDate
When the card was activated.
loyalty.expirationdate
When the card expires.
loyalty.amount, loyalty.currency
Stored value, where the programme carries a monetary balance.
The card identifier itself is written onto the pass as y2.loyaltyCardId.
When a card is deactivated
A pass carries the identifier of the loyalty card it represents. If that card is subsequently deactivated in Cegid, reads against it fail, and Cegid reports that the programme is not associated with a campaign defined for the store. That message is misleading, because the underlying cause is the card rather than the campaign.
The remedy is to clear the loyalty card identifier from the affected pass, so that the next read resolves the customer's current card instead.
FAQ
Last updated

