Create a coupon
Creates a discount coupon that can be applied to subscriptions. The code must be unique within the company.
Authorizations
Company API key. Send in the X-API-Key header.
Body
Unique alphanumeric code (max 50 chars). Case-sensitive.
"SUMMER20"
Display name for the coupon (max 255 chars).
"20% off Summer Sale"
How the discount is calculated.
percentage, fixed "percentage"
Discount amount: percentage (1–100) when type is percentage; cents when type is fixed.
20
Date from which the coupon can be applied.
"2026-07-01"
Optional description (max 1000 chars).
"Applies to all monthly plans."
Expiry date (must be after valid_from). Null = no expiry.
"2026-08-31"
Maximum total uses across all subscriptions. Null = unlimited.
100
Maximum billing cycles the discount applies per subscription. Null = applies forever.
3
Response
Coupon created