reward.unlocked
When it is sent. An award made a reward ready: a stamp card filled, or a points card now holding enough for one of its rewards. One event per reward, always after the award.created that caused it. A VIP card reaching a new tier says so on the award itself (tier_reached), not here.
What to do with it. Tell the customer, or show the reward at checkout.
It arrives as a signed POST to each of your endpoints that chose it, and is also in the event feed. See how events work, including how to check the signature.
The event
Section titled “The event”| Field | Type | Required | What it is |
|---|---|---|---|
id |
string (uuid) | yes | The event id, sent as webhook-id. |
type |
"reward.unlocked" |
yes | |
timestamp |
string (date-time) | yes | When it happened. |
data |
object | yes | |
data.card |
object (CardIds) | yes | The card’s id and, where shown, its printed card ID. |
data.card.id |
string (uuid) | yes | |
data.card.card_id |
string or null | yes | The printed card ID, only when the call named the card by serial or card_id, the call made the card (a created sign-up), or this connection’s external_id was linked with the card. Null when the card was found by phone, email or an unproven link. |
data.customer |
object (CustomerIds) | yes | This connection’s external_id, if it set one. |
data.customer.id |
string (uuid) | yes | |
data.customer.external_id |
string or null | yes | |
data.program |
object (ProgramIds) | yes | |
data.program.id |
string (uuid) | yes | |
data.program.type |
stamps, points, coupon, prepaid, membership, tiers |
yes | tiers is the VIP card; prepaid the prepaid card. |
data.reward |
object (UnlockedReward) | yes | |
data.reward.key |
string or null | yes | A points card’s catalogue key; null on stamps. |
data.reward.name |
string | yes | |
data.award |
object | yes | |
data.award.id |
string (uuid) | yes |