Fortune Wheels & Lotteries
Spins and prize draws: members buying a spin, campaigns awarding spins that still need drawing, pay-to-enter prize draws from the catalogue, detecting a win, and fulfilling prizes.
A fortune wheel is a reward whose outcome is drawn: the member gets a spin, Open Loyalty draws a result by probability, and a win issues units, a coupon or a prize. The same mechanism powers lotteries — "scan a code for a chance to win", "spend 100 points to enter the draw for a bag".
For the basic flow — a member buying and spinning a wheel — follow the User Guide's fortune wheel implementation checklist (buy → draw → fetch the result). This page adds the patterns around it: spins awarded by campaigns, pay-to-enter prize draws, detecting a win and fulfilling prizes. See also How probability works.
Who does what
Admin Panel
Wheels with prizes and probabilities, costs, limits; campaigns that give spins; prize rewards and their stock
Integration layer
Buys spins and entries, finds undrawn spins, draws them, interprets the result
Website / app
The wheel or draw animation and the win or "try again" screens
Fulfilment / CRM
Ships physical prizes; tells winners
Design decisions
How members get spins
Buy with units, or awarded by campaigns
Both work with the same wheel. Awarded spins need an extra step: they're issued undrawn and must be drawn.
When to draw an awarded spin
Immediately in the integration, or when the member opens the wheel
When the member opens it, if the animation is part of the fun; immediately (server-side) if the member never sees a wheel.
Units won at random
Fixed amounts, or a wheel with several amounts
A wheel with amounts and probabilities — the campaign effect gives a spin instead of units.
Catalogue prizes as draws
Direct purchase, or "enter the draw"
For scarce prizes, a pay-to-enter wheel per prize: each entry costs units, a win issues the prize reward. Link the prize to its wheel with a label (e.g. draw_reward_id) so the catalogue can show the prize and buy the entry.
Limits
None, per member, per period, prize stock
Set reward limits on high-value prizes — a spin can't win a prize that's out of stock or over its limit.
Recommended flow
Fulfil prizes
Ship physical prizes as in Rewards & coupons — from the CustomerBoughtReward webhook, or in batches with a rewardFulfillment export — and update their status.
Sequence diagram

Go-live checklist
Admin Panel
Integration layer
Website / app
Validation
Key endpoints
POST /api/{storeCode}/reward/{reward}/buy— Buy a rewardGET /api/{storeCode}/redemption— Get redeemed rewards list (rewardType=fortune_wheel,fortuneWheelStatus:drawnAt[notHasValue])POST /api/{storeCode}/redemption/{issuedReward}/draw— Draw a reward from the fortune wheelPOST /api/{storeCode}/export/{type}— Create an export (rewardFulfillment)
Webhooks: CustomerBoughtReward, CampaignEffectWasApplied
Last updated
Was this helpful?

