Creates a discount coupon with a promo code. Coupons can offer percentage or fixed-amount discounts and can be limited by redemption count or expiration date. Customers can apply coupons during checkout.
API key authentication. Include your API key in the Authorization header as: Bearer
Request to create a discount coupon. Specify either percent_off or amount_off, not both.
The promo code customers will enter to apply the discount
Display name for the coupon (shown to customers)
Percentage discount (1-100). Mutually exclusive with amount_off.
1 <= x <= 100Fixed discount in the smallest currency unit (e.g., cents). Mutually exclusive with percent_off.
-9007199254740991 <= x <= 9007199254740991Three-letter ISO currency code for amount_off discounts
How long the discount applies: once (first payment only), repeating (for duration_in_months), or forever
once, repeating, forever Number of months the discount applies when duration is 'repeating'
0 <= x <= 9007199254740991Maximum number of times this coupon can be redeemed
0 <= x <= 9007199254740991Expiration date after which the coupon can no longer be redeemed
The created coupon object
A discount coupon that customers can apply during checkout using a promo code
Unique identifier for the entitlement
Timestamp when the coupon was created
The promo code customers enter to apply the discount
How long the discount applies: once (first payment only), repeating (for duration_in_months), or forever
once, repeating, forever Number of times this coupon has been successfully redeemed
-9007199254740991 <= x <= 9007199254740991Whether the coupon is currently active and can be redeemed
Display name for the coupon (shown to customers)
Percentage discount (1-100). Mutually exclusive with amount_off.
Fixed discount amount in the smallest currency unit (e.g., cents). Mutually exclusive with percent_off.
-9007199254740991 <= x <= 9007199254740991Three-letter ISO currency code for amount_off discounts
Number of months the discount applies when duration is 'repeating'
-9007199254740991 <= x <= 9007199254740991Maximum number of times this coupon can be redeemed across all customers
-9007199254740991 <= x <= 9007199254740991Expiration date after which the coupon can no longer be redeemed