Validate Single Coupon
Validate a single coupon and optionally lock it for exclusive use.
{code} and checks its eligibility for use by a customer. It also supports a locking feature, where setting the lock flag to True reserves the coupon by creating a lock reference. This ensures the coupon cannot be used by others during the lock session, preventing conflicts or double usage. By default, the lock flag is False, allowing only validation without reserving the coupon.
There are two ways to burn a coupon when placing an order:
- Option 1 — Use the coupon code directly in the Order API: Pass the coupon code in the Order API without needing the lock reference. The coupon burns automatically.
- Option 2 — Use the lock reference in the Order API: Pass the
lockReferencefrom this API intoredemption.couponsLockReferencein the Order API. The coupon burns automatically — no separate Burn Coupon API call is needed.
If your system uses different customer IDs across multiple channels (e.g., online and offline), Gameball’s channel merging feature helps unify customer profiles. By including the customer’s mobile number or email (based on your merging configuration) with each request, Gameball will combine activities into a single profile.For more information, head to the Omni-Channel Handling Guide.
Path Parameters
The coupon code you want to validate.
Body
Unique identifier for the customer that you can reference across the customer's whole lifetime. Could be a database ID, random string, email or anything that uniquely identifies the customer.
Customer's email address. Required if your account uses email-based channel merging.
Customer's mobile number. Required if your account uses mobile-based channel merging.
Indicates whether the request is intended to validate the coupon or to lock it for a future redemption.
Required only if the lock flag is set to True and you need to validate and lock a new or updated list of coupons within an existing lock session.
Represents the number of minutes for which a coupon will be locked if the lock flag is set to True.
This parameter is required only if the coupon is designed to apply to specific merchants.
This parameter is required only if the coupon is configured to apply to specific collections.
This parameter is required only when the coupon is configured to apply to specific collections.
This parameter represents the total value of the purchase where the coupon will be applied.
Response
Coupon validated successfully