Rewards & Coupons
Building the rewards catalogue, letting members redeem coupons, vouchers and physical rewards, marking coupons as used and fulfilling orders — with the API calls, webhooks and checks for each step.
Rewards are what members spend their units on: coupon codes for your shop, third-party vouchers, physical merchandise, tickets. Open Loyalty holds the catalogue, checks balance, stock and limits, spends the units and issues the code; your channels show the catalogue and use the codes; your fulfilment process ships physical rewards.
For the Admin Panel side, see Creating a reward, Reward types, Adding coupons and Reward fulfillment.
Reward types
static_coupon
A code with a fixed value — your own codes (uploaded) or generated ones
dynamic_coupon
A code whose value is set when it's issued
conversion_coupon
Units converted to money at a rate (e.g. 100 points = 1 €)
material
Physical merchandise that has to be shipped
fortune_wheel
A spin or lottery draw — see Fortune wheels & lotteries
Who does what
Admin Panel
Rewards, categories, costs, stock, per-member limits, visibility, coupon code pools
Integration layer
Lists rewards for the member, buys them, marks coupons used or unused, updates fulfilment status
Website / app
Catalogue with categories, "redeem" flow, "my rewards" with codes
E-commerce platform / POS
Accepts the codes at checkout and reports when one is used
Fulfilment / warehouse
Ships physical rewards and reports status
CRM / marketing automation
Sends the voucher with its code and status updates
Design decisions
Where codes come from
Uploaded from your shop, or generated by Open Loyalty
Upload codes your shop already validates; generate them if the shop can accept Open Loyalty's codes.
Stock
Limited by quantity, by uploaded codes, or unlimited
Set stock for physical rewards. A coupon with uploaded codes is limited by the codes themselves — set a per-member limit as well.
Who sees what
Everyone, segments, tiers, labels
Use visibility and labels for audience-specific rewards (e.g. a tier-only catalogue, or rewards that need a verified profile).
Coupon use
Report usage back, or not
Report it (reward/redeem) so members and support see which codes are used, and so reporting is complete.
Cancellations
Allowed, or not
Allow cancelling unused rewards — but cancelling doesn't return units, so refund them explicitly.
Recommended flow
Configure (Admin Panel)
Create categories for the catalogue tabs, then the rewards with cost, wallet, stock, limits and visibility. Upload or generate coupon codes (POST /api/{storeCode}/reward/{reward}/coupon).
Redeem
POST /api/{storeCode}/reward/{reward}/buy with the member's customerId (UUID — not the loyalty card number), quantity and withoutPoints = false; add shippingAddress for physical rewards. Open Loyalty checks balance, stock and limits, spends the units and returns the issued reward with its coupon code.
Use and reissue coupons
When the shop accepts a code, call POST /api/{storeCode}/member/{member}/reward/redeem with the couponCode (and usedAt for the real time); a 409 means it's already used. If the order is cancelled and the code should work again, call POST /api/{storeCode}/member/{member}/reward/reissue.
Fulfil physical rewards
Pass new orders to fulfilment from the CustomerBoughtReward webhook, and update their status with POST /api/{storeCode}/redemption/{issuedReward}/status (or /redemption/status/bulk, or a mass status import).
Cancel when needed
POST /api/{storeCode}/redemption/{issuedReward}/cancel cancels an unused reward and restores limits; an uploaded code goes back to the pool, a generated one is deleted. Units aren't returned — refund them with POST /api/{storeCode}/points/add if the member should get them back. See Canceling a redeemed reward.
Sequence diagrams


Go-live checklist
Admin Panel
Integration layer
Website / app and shop
Validation
Key endpoints
GET /api/{storeCode}/member/{member}/reward— Get available rewards to a member listPOST /api/{storeCode}/reward/{reward}/buy— Buy a rewardPOST /api/{storeCode}/member/{member}/reward/redeem— Mark coupon as usedPOST /api/{storeCode}/member/{member}/reward/reissue— Mark coupon as unusedGET /api/{storeCode}/redemption— Get redeemed rewards list, e.g.customerData:loyaltyCardNumber=for "my rewards"POST /api/{storeCode}/redemption/{issuedReward}/status— Change redeemed reward's status, and in bulkPOST /api/{storeCode}/redemption/{issuedReward}/cancel— Cancel redeemed rewardPOST /api/{storeCode}/reward/{reward}/coupon— Add coupon list to the reward
Webhooks: CustomerBoughtReward, RewardRedemptionStatusChanged, CouponWillExpire
Last updated
Was this helpful?

