cURL
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 } }
Atomically mark a coupon as used, creating an activity record. Prevents double-usage via select_for_update. Auto-expires coupons past valid_until.
API key for partner access via APISIX key-auth plugin
Unique identifier for this customer.
Coupon validation result with current status and remaining usages.
Show child attributes
Cursor-based pagination metadata matching envelope middleware output.