CustomerId, CardId and ActivityId.
Field reference
Field definitions match the card models of the Challenges endpoints. A Data streams request body carries these properties under camelCase names, such ascardId for CardId, unless the subscription transforms the payload.
The mobile app equivalent (
PUT /mobile-app/v3/cards/{id}/activate) emits the same Card Activated event.
Lobyco publishes Card Activated when a customer’s card becomes active. A customer has one active card per challenge at most, so Card Activated is published only when they have none. On a challenge the customer activates themselves, it is published when they activate it. On a pre-activated triggered challenge, it follows Card Assigned straight away. On any other pre-activated challenge, it is published the first time the customer opens the app, or with their first purchase that adds progress. When the app opens it, ActivatedAt is the challenge’s start time.
A card can also wait to become active. A triggered card assigned while the customer still has an active card stays inactive. When that card completes, Lobyco activates the waiting one and publishes Card Activated then. On a challenge that isn’t triggered, completing a card opens the next one at once, until the challenge’s activation limit is reached.
Progress Increased also covers progress going down, for example after a return. Card Completed means the card is complete and its rewards are unlocked.
Progress Increased shows how a purchase moved the card through the challenge’s tiers. PreviousTier is the highest tier the card had reached before the purchase, and CurrentTier the highest it reached with it. Each is null when the card had reached no tier yet. On a return, both carry the tier the card had already reached.
Card Completed is usually published by the purchase that brings the card to the challenge’s top tier. On a single-purchase challenge, a purchase that reaches any tier is enough. On a challenge with an Instant draw, its Rewards lists the rewards of every tier, not only the ones the customer got.
The exception is a challenge set to Issue only the highest tier. When it ends, Lobyco closes each open card that reached a tier and publishes Card Completed for it. No purchase completed that card, so CompletedByPurchaseId is null. Its Rewards holds only the rewards of the tier the card reached, and ClosedAt is when Lobyco closed the card.
Every card event has an EventId that joins the event’s name, the CardId and a time from the payload, written as yyyy-MM-ddTHH:mm:ss.fffffff. Each schema’s EventId description shows which time.
Schemas
A payload can carry properties that its schema does not list. Rely only on the listed ones: see Events.- Card Assigned
- Card Activated
- Progress Increased
- Card Completed
API reference
Endpoint documentation: Challenges.Related
- Challenge events — the definition the card belongs to.
- Purchase events — the purchase that advances or completes a card.
- OutboundAPI connection — how these events reach an endpoint in your system.