v1
latestOpenAPI 3.0.12026-08-062532117.6 KBCreate 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.
post/coupons
Request body
Example request
{
"name": "Launch 20%",
"currency": "USD"
}Response
The created coupon.