To enable this feature, please contact our support team. Once requested, our team will assist in activating the feature for your account.
Integration Walkthrough
1. Generating a Coupon
To generate a coupon, use the Generate Coupon API. This API call creates a coupon for the customer based on the redemption rule configured in Gameball. The redemption rule determines the number of points required to redeem the coupon, the discount type, and any minimum order requirements. Example Use Case _Generate a 10 discount to a loyal customer. Use theGenerate Coupon API with the customer’s ID and the applicable rule ID for the reward.
2. Validating and Locking Coupons
To validate and optionally lock a coupon, use the Validate Single Coupon API for a single coupon or the Validate Multiple Coupons API for multiple coupons. Setting thelock flag to true locks the coupon, reserving it for the customer until checkout. The system will return a lockReference, which will be needed in the next steps.
Example Use Cases
Single Coupon Validation and Locking: A customer applies the SAVE10 coupon at checkout. Use the Validate Single Coupon API to validate and lock the coupon exclusively for this customer.
lockReference along with coupon details, which can be used in the next step.
SAVE10 and FREESHIP, for their order. Use the Validate Multiple Coupons API to validate and lock both coupons for this transaction.
lockReference and details for each validated coupon.
3. Burning or Releasing Locked Coupons
Once a coupon is validated and locked, you have two possible actions depending on the outcome of the customer’s transaction:⚫ Burn the Coupon
If the customer completes the purchase, you can mark the coupon as used in one of the following two ways:You only need to use one method—either the Burn Coupons API or the Order API. Choose whichever is more convenient for your integration; there’s no need to use both.
Option 1: Burn the coupon using the Burn Coupons API Send a request using the same
lockReference to finalize the redemption and apply the discount.
A successful request returns HTTP 204 No Content, confirming that the coupon has been burned and is no longer usable.
Option 2: Link the coupon through the Order API Instead of sending a separate burn request, you can include either the same
lockReference or the locked coupon codes when placing the order through the Order API.
This automatically links the reserved coupon to the transaction and marks it as used once the order is successfully placed.
⚫ Release the Coupon
If the transaction does not proceed, you should release the locked coupon(s) so they become available for future use. Use the Release Coupons API with the samelockReference.
A successful release request returns HTTP 204 No Content, confirming that the coupon has been released and is available again.
Additional Operations to Consider
- Reverse Lock: If you need to release a locked coupon within the 10-minute window without redeeming it, use the Reverse Lock API to unlock the coupon.