Skip to main content
Endpoint:

Authorization

string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here

Request Body

string
required
Coupon code to check (1–50 characters).

Response

Successful Response

Main Structure (Root)

integer
Status code from API.
string
Status message that describes the status code.
object
Coupon usage details.

data Structure (Object)

string
The coupon code that was checked.
boolean
true when the coupon has reached its usage limit (totalUsed >= limit and limit > 0), otherwise false.
integer
Number of times the coupon has been used.
integer
Maximum usage limit for the coupon (0 when no limit is set).
integer
Remaining usage quota (limit - totalUsed, never below 0).

Errors

object
Returned with messages: "Validation Error" when the request body fails validation (e.g. missing couponCode).
object
Returned with messages: "Kode kupon tidak ditemukan." when the coupon code does not exist for the authenticated account.