Create a coupon

Create a new coupon with a discount configuration.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≤ 256

A display name for the coupon.

string
enum
required

The type of discount. 'percentage' applies a percentage reduction. 'fixed_amount' applies a fixed currency reduction.

Allowed:
number
required
> 0

The discount value. For percentage: 20 = 20% (max 100 = 100%). For fixed_amount: 5.00 = 5.00 in the specified currency.

string | null
enum

Required for fixed_amount discounts. Must be null for percentage discounts.

Allowed:
string
enum
required

How long the discount applies when used on a subscription.

Allowed:
integer | null
≥ 1

Number of billing cycles the discount applies for. Required when duration is 'repeating'. Must be null otherwise.

integer | null
≥ 1

Maximum number of times this coupon can be applied across all subscriptions. Null for unlimited.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Choose an example:
application/json