Create Coupon
Create a new coupon.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
account_id
Request
This endpoint expects an object.
discount_type
Type of discount: amount_off, percent_off, or trial_extension
name
Display name for the coupon
amount_atom_off
Fixed amount discount in smallest currency unit (e.g., 1000 for $10.00)
percent_off
Percentage discount (1-100, up to 2 decimal places, e.g. 16.67)
trial_days_off
Number of trial days to extend
currency
ISO 4217 currency code (required for amount_off)
duration
How long the coupon applies: once, repeating, or forever
duration_in_months
Number of months for repeating coupons (required if duration=repeating)
max_redemptions
Maximum number of times this coupon can be redeemed
valid_from
Date when coupon becomes valid
valid_until
Fixed date when coupon expires (mutually exclusive with validity_period_days)
validity_period_days
Number of days the coupon is valid for redemption (from creation date). Mutually exclusive with valid_until.
product_ids
List of product IDs this coupon applies to. Empty list = all products.
metadata
Arbitrary metadata
discount
Response
Successful Response
id
status
name
discount_type
amount_atom_off
percent_off
trial_days_off
currency
ISO 4217 currency codes.
duration
duration_in_months
max_redemptions
redemption_count
valid_from
valid_until
validity_period_days
products
metadata
created_at
updated_at
promotion_code_count
product_details
Errors
422
Unprocessable Entity Error