Skip to main content
Lobyco publishes a loyalty card event when a customer’s loyalty card changes. A loyalty card is the card a customer identifies with at the till. It is not a challenge card, which Card events covers. Every payload carries CustomerId, MemberId and LoyaltyCardId, with CustomerId equal to MemberId.
Deleting a customer removes all their loyalty cards without publishing Loyalty Card Deleted. Treat Member Deleted as the deletion of every card that customer had.An import publishes Loyalty Card Imported only for cards that did not exist yet. A card that already exists publishes Loyalty Card State Changed, and only if the import changes its state.Loyalty Card State Changed is published only when the state actually changes. Besides a card update, three more cases publish it:
  • Creating a card that replaces the customer’s active cards.
  • Creating a card that reactivates an inactive one.
  • Deactivating the customer.
Activating a customer does not reactivate their cards.The EventId of these events contains a random part, so a redelivered event carries a new EventId. Don’t use it alone for idempotent processing.

Field reference

Field definitions match the loyalty card models of the Members endpoints. A Data streams request body carries these properties under camelCase names, such as loyaltyCardId for LoyaltyCardId, unless the subscription transforms the payload. The mobile app equivalents (POST /mobile-app/v1/loyalty-cards and PUT /mobile-app/v1/loyalty-cards/{cardId}) and the card actions in Nexus emit the same events. POST /v1/loyalty-cards/import/data-import behaves like /import. POST /v1/loyalty-cards/{memberId}/deactivate and PUT /v1/members/{memberId}/deactivate emit Loyalty Card State Changed for every card they deactivate.

Schemas

A payload can carry properties that its schema does not list. Rely only on the listed ones: see Events.

API reference

Endpoint documentation: Members.
  • Customer events — the customer the cards belong to, and the deletion that removes them.
  • Card events — challenge cards, a different thing with a similar name.
  • OutboundAPI connection — how these events reach an endpoint in your system.
Last modified on November 20, 2026