Check a coupon code
Changed onCheck whether an individual code from a Shopify or BigCommerce pool has been redeemed, read live from the connected store's per-code usage counter (Privy stores no redemption events).
This is a counter, not an event log: usage_count says how many times the store has accepted the code, but redemption dates, order ids, and customer attribution are not available — every response repeats this in an in-band note. Manual pools have no store-side counter and return 422 unsupported_coupon_type.
A spot check for individual codes — there is no bulk sweep; asking "which of my thousands of codes were redeemed" is not served by this endpoint.
Membership semantics: a master pool's single code is matched exactly (case-insensitively) before the store is asked. Unique-pool codes are resolved against the store directly — Privy stores no per-code linkage for platform pools, so a code from one of your OTHER pools would still resolve; the check never crosses accounts.
Required scope: coupons_read
Request
- Base URLhttps://api.privy.com/v1
- AuthHTTP bearer
Path parameters
The coupon pool's unique identifier (returned as id in coupon responses). Ids are opaque public strings — a numeric id from a Privy dashboard URL is not a valid API id and will 404; list coupons and match by title instead.
The coupon code to check, URL-encoded. Matched case-insensitively.
Headers
Target a subaccount instead of the main connected account. Pass a subaccount id from get_account's subaccounts list. Only direct subaccounts of the connected account are reachable — omit this for the main account itself.
Response
The code's store-side usage status.
Example response
{
"data": {
"code": "VIP4X9K2",
"redeemed": true,
"usage_count": 1
}
}Changes
- warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
segment_builder_requiredenum value to the/response property for the response status - warning
added the new
segment_builder_requiredenum value to the/response property for the response status - warning
added the new
segment_builder_requiredenum value to the/response property for the response status - warning
added the new
segment_builder_requiredenum value to the/response property for the response status - warning
added the new
segment_builder_requiredenum value to the/response property for the response status - warning
added the new
segment_builder_requiredenum value to the/response property for the response status
- warning
- info
endpoint added
- info