Validates a single coupon identified by {code} and checks its eligibility for use by a customer. Describe the cart as well, and the coupon is additionally matched against its merchant, branch, collection, category and product restrictions. Set the lock flag to True to reserve the coupon by creating a lock reference, so it cannot be used by others while the order is being completed. By default the lock flag is False, allowing only validation without reserving the coupon.
Request
- Base URL: https://api.gameball.co
- URL: https://api.gameball.co/api/v4.0/integrations/coupons/{code}/validate
- Auth: API key in header apikey and API key in header secretkey
Path parameters
The coupon code you want to validate. Compared case-insensitively.
Request body
Example request
{
"merchantId": "cairo-downtown",
"branchId": "branch-14",
"categories": [
"Audio",
"TV"
]
}Response
Coupon validated successfully
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- warning
removed the request property
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
the endpoint scheme security
apiKey AND secretKeywas added to the API - info
the endpoint scheme security
apiKeywas removed from the API - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning