Updates an existing coupon. Use this to modify the display name or deactivate the coupon. Discount amounts and codes cannot be changed after creation.
API key authentication. Include your API key in the Authorization header as: Bearer
The unique identifier of the coupon
The updated 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