Burning Coupons in Gameball
Burning a coupon is the final step in the coupon lifecycle. Once a coupon is burned, it becomes used, ensuring:- It cannot be redeemed again
- Discount usage is accurately reflected in reporting
- Customer reward balances remain consistent
Automatically, when the coupon is passed through the Track Order API or Track Payment API
Manually, using the Burn Coupon API for non-transactional or external workflows
Overview
Gameball supports a full coupon lifecycle:How Burning Works in Gameball
Coupons can be burned in two ways:- Automatic Burn (Recommended) When the final transaction is submitted using: • Track Order API, or • Track Payment API …and the coupon codes are included in the payload, Gameball automatically burns the coupon as part of finalizing the transaction.
- Manual Burn (Advanced) When the coupon was validated + locked earlier, but the final confirmation happens in a system not sending transactions to Gameball, you must use the Burn Coupon API to complete the lifecycle.
Use either the Order / Payment API auto-burn flow or the Burn Coupon API, never both for the same checkout experience.
When to Use Automatic vs Manual Burning
1. Automatic Burning (Recommended)
The coupon is burned automatically when:- You send the final transaction through the Track Order API (e-commerce, POS with product-level data), or
- You send the final transaction through the Track Payment API (fintech, wallet top-up, bill payment flows)
couponCodes/couponsLockReference in the transaction.
This flow:
- Applies the discount
- Burns the coupon
- Calculates cashback/points
- Updates loyalty history, all in one call
2. Manual Burning
Use the Burn Coupon API only when the final transaction cannot be submitted through Track Order or Track Payment with thecouponsLockReference included.
Common scenarios:
a. POS without full order structure POS system does not send:- lineItems
- collections
- taxes
- or a formal “cart”
- QR activation coupons at events
- Coupons unlocking access/features (VIP lounge, early access, subscription tier)
- In-app “Claim Reward” actions
- Non-monetary value coupons (bonus credits, in-game items)
- Redemption flows where no money is exchanged
Customer Experience
Regardless of which method you use, burning happens behind the scenes. Customers experience:- Correct final pricing
- One-time usage enforcement
- Accurate reward balances
The burning mechanism is internal, the user sees only the result.
Use Case 1: E-commerce Checkout (Auto Burn via Order API)
Scenario: Customer applies couponWINTER20 during checkout.
Your backend:
- Validates + locks coupon at preview
- Payment succeeds
- Sends final order through Track Order API, including couponCodes
Use Case 2: Free Product Coupon (Manual Burn)
Scenario: Sarah has a coupon FREE-MUG that grants her a free product. She visits a store, shows the code, and the staff hands over the item. There’s no checkout discount, and the store may not record this as an order/payment event in Gameball.Why manual burn is required:
Because the coupon redemption is not tied to a Track Order / Track Payment call that includescouponsLockReference/couponCodes, Gameball cannot auto-burn it. You still need to mark it as used to prevent reuse.
What the flow looks like
- Validate + lock the coupon when it’s presented (optional but recommended)
- Staff confirms the item was given
- Call Burn Coupon API to finalize redemption
Example Request
Use this approach for non-transactional redemptions (free items, access, claims).
If the redemption is tied to a real order/payment sent via Track Order/Payment with
couponCodes, prefer auto-burn instead.Use Case 3: Payment-Based Redemption (Auto Burn via Track Payment API or Manual Burn)
If the payment system sends the coupon inside the Track Payment API, burning is automatic. If not, you manually burn after payment. Or, manual burn if coupon is not included in the payment call:Coupon Burning Flow Selection Guide
| Scenario | Best Method |
|---|---|
| Standard ecommerce checkout | Track Order API (auto-burn) |
| POS with full order payload | Track Order API (auto-burn) |
| POS without order structure | Burn Coupon API |
| Wallet top-up / bill payment | Track Payment API (auto-burn) |
| Fintech flows without coupon in request | Burn Coupon API |
| Campaign / event / access-based coupons | Burn Coupon API |
If your flow cannot send a final order/payment with the coupon included (e.g., event access coupons, offline/manual fulfillment, distributed systems), finalize redemption using the Burn Coupon API.
Best Practices
Always burn after payment succeeds.
Use auto-burn whenever possible (Order/Payment APIs).
Use Burn Coupon API only in non-transactional or external flows.
Use Release Coupon API when the transaction fails.