Create coupon
Creates a new discount coupon with percentage or fixed amount off, applicable to customer subscriptions.
Authorizations
Server API Key
Headers
Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.
Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).
Body
Create a coupon with percentage or fixed-amount discount.
The unique identifier for the entity
1 - 255^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$Name of the coupon
40Description of the coupon
255Percentage discount off the original price
1 <= x <= 100Fixed amount discounts in different currencies
1Duration of the coupon validity in months
x >= 1Metadata associated with the entity
Response
The newly created coupon object.
Response object
Discount instrument with percentage or fixed amount
