Create a Coupon
Creates a coupon — the discount definition that promotional codes are built on.
Only name is required. Set couponType to PERCENTAGE and supply percentOff (1–100), or set it to FLAT and supply both amountOff and currency. When couponType is omitted the coupon is stored as PERCENTAGE, so send percentOff alongside it.
duration controls how long the discount keeps applying to a subscription: once, forever (the default here), or repeating — which additionally requires durationInMonths.
Fires the coupon.created webhook.
Requires coupons:write. This legacy endpoint uses the key’s original program and its existing response format.
Creating Coupons
Create a new coupon definition that can be used to generate promotional codes for your affiliates.Coupon Types
- PERCENTAGE: Discount based on a percentage (e.g., 20% off)
- FLAT: Fixed amount discount (e.g., $10 off)
Duration Options
- once: Applies to a single payment
- forever: Applies to all future payments
- repeating: Applies for a specific number of months
Authorizations
Body
The coupon to create
Response
The created coupon.
A discount definition. Promotional codes point at a coupon for their value.