Skip to main content
POST
/
api
/
v2
/
customers
/
{id}
/
coupons
/
{coupon_id}
/
validate
Validate (use) a coupon
curl --request POST \
  --url https://api.zupy.com/api/v2/customers/{id}/coupons/{coupon_id}/validate/ \
  --header 'X-API-Key: <api-key>'
{
  "data": {
    "coupon_code": "<string>",
    "status": "<string>",
    "remaining_usages": 123,
    "total_usages_allowed": 123,
    "validated_at": "2023-11-07T05:31:56Z"
  },
  "meta": {
    "cursor": "<string>",
    "has_next": true,
    "count": 123
  }
}

Authorizations

X-API-Key
string
header
required

API key for partner access via APISIX key-auth plugin

Path Parameters

coupon_id
string
required
id
string
required

Unique identifier for this customer.

Response

data
object
required

Coupon validation result with current status and remaining usages.

meta
object
required

Cursor-based pagination metadata matching envelope middleware output.