Validate coupon code
Validates a coupon code for the brand and returns its discount details.
Scoped to the brand in the brandId path parameter. A brand key must be that brand’s own key. An organization key works for any brand in its organization, including brands of child organizations, and needs no Way-Brand-Id header.
Authorizations
Your brand's secret API key, e.g. Bearer way_sk_live_bhEqcn0i1fRoUEHBPjJkQA. The key names the brand, so a brandId in the path must be your own brand. Older Way-Brand-Id + Way-Secret-Key credentials still work: see Legacy authentication.
Path Parameters
The brand's ID. With a brand key this must be your own brand; with an organization key it can be any brand in the organization.
The coupon code to validate, as entered by the guest.
Body
The body is of type object.
Response
Validate coupon code.
The unique identifier of the coupon.
"coupon-123"
The coupon code.
"DISCOUNT50"
The type of the coupon.
"percentage"
The discount type.
"fixed_amount"
The value of the discount.
50
List of experience IDs associated with the coupon.