Create coupon
Creates a coupon. Side effect: a Stripe Coupon + Promotion Code are created. Restrictions: percentage discounts must be 1-100; duration=repeating requires durationMonths; discountType=fixed_amount requires applicablePlanIds; plans in applicablePlanIds must already have a Stripe product and share a currency.
Autorizações
Corpo
Body for creating a new discount coupon.
Discount type (percentage or fixed amount).
percentage, fixed_amount Discount amount. For PERCENTAGE: 1..100. For FIXED_AMOUNT: amount in the smallest currency unit (cents).
x >= 110
How the discount is applied across billing cycles.
once, repeating, forever Whether the coupon applies to all plans or a specific list.
hub, plans Required when scope = SPECIFIC. Plan public IDs the coupon applies to.
Public coupon code shared with customers. Letters, numbers and underscores only.
3 - 50^[A-Za-z0-9_]+$"WELCOME10"
Required when duration = REPEATING. Number of months the discount lasts (1..36).
1 <= x <= 363
Maximum total redemptions of this coupon. Omit for unlimited.
x >= 1100
Optional internal display name for the coupon.
100"Welcome 10% off"
Start of the validity window. Defaults to now when omitted.
"2026-06-01T00:00:00Z"
End of the validity window. Must be in the future when provided.
"2026-12-31T23:59:59Z"
Resposta
Created
percentage, fixed_amount once, repeating, forever hub, plans 
