Authorization
Example:
Authorization | Bearer Paste-Your-API-Key-HereRequest Body
Coupon code to check (1–50 characters).
Response
Successful ResponseMain Structure (Root)
Status code from API.
Status message that describes the status code.
Coupon usage details.
data Structure (Object)
The coupon code that was checked.
true when the coupon has reached its usage limit (totalUsed >= limit and
limit > 0), otherwise false.Number of times the coupon has been used.
Maximum usage limit for the coupon (
0 when no limit is set).Remaining usage quota (
limit - totalUsed, never below 0).Errors
Returned with
messages: "Validation Error" when the request body fails
validation (e.g. missing couponCode).Returned with
messages: "Kode kupon tidak ditemukan." when the coupon code
does not exist for the authenticated account.