Check promo code claim status
Check whether codes of an Enter a Code rule have been claimed or are still available. Requires an API key. Pass 1 to 10 codes per request.
Authorizations
API key passed in the header.
Query Parameters
Unique identifier for the organization
Unique identifier for the website
The Enter a Code rule whose codes to check
Codes to check, 1 to 10. Repeat the parameter for each code (promoCode=a&promoCode=b). Matching is case-insensitive.
Response
200
dataarray<object>requiredMatching promo codes. A requested code missing from the list does not exist on the website.
data.idstring<uuid>requiredUnique identifier for the promo code
data.promoCodestringrequiredThe code as stored on the rule
data.loyaltyRuleIdstring<uuid>requiredThe Enter a Code rule the code belongs to
data.status"available" | "claimed"requiredclaimed once a user has redeemed the code, available otherwise. A rule with a single shared code never marks it claimed, so that code is always available.
"available" | "claimed"data.claimedAtstring<date-time>requiredWhen the code was claimed, null if it is available
data.claimedByUserIdstring<uuid>requiredThe user who claimed the code, null if it is available
GET /api/loyalty/promo_codes — query parameters: organizationId, websiteId, loyaltyRuleId, promoCode