Update a Coupon
Updates a coupon identified by couponId, and fires the coupon.updated webhook.
Changing the discount affects every promotional code that points at this coupon, including codes already in circulation. Set valid to false to stop a coupon being applied without deleting it.
Every field you send is applied directly to the coupon, so sending a field that is not listed below will fail the request.
Updating Coupons
Update an existing coupon’s properties. Changes to the coupon will affect all associated promotional codes.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Fields to update
The coupon to update
Name of the coupon
Whether the discount is a percentage or a fixed amount
PERCENTAGE, FLAT Percentage taken off, 1–100
Fixed amount taken off. Must be greater than zero.
Currency for amountOff
How long the discount keeps applying to a subscription
once, forever, repeating Number of months the discount repeats for
Total redemptions allowed
Restrict the coupon to productIds
Products the coupon applies to
Set to false to stop the coupon being redeemed
Last date the coupon can be redeemed
Response
The updated coupon.
A discount definition. Promotional codes point at a coupon for their value.
The coupon ID
Name of the coupon
The coupon's ID in the connected billing provider, for example a Stripe coupon ID
Whether the discount is a percentage or a fixed amount
PERCENTAGE, FLAT Percentage taken off, 1–100. Used when couponType is PERCENTAGE.
Fixed amount taken off. Used when couponType is FLAT.
Currency for amountOff, for example USD
How long the discount keeps applying to a subscription
once, forever, repeating Number of months the discount repeats for. Only set when duration is repeating.
Total redemptions allowed across every promotional code on this coupon. null means unlimited.
How many times this coupon has been redeemed so far
Whether the coupon discounts customers or is used to pay affiliates as a non-cash reward
CUSTOMER, PAYOUT Whether the coupon only applies to productIds
Products the coupon is restricted to
Collections the coupon is restricted to
Whether the coupon can currently be redeemed
Last date the coupon can be redeemed
The billing provider this coupon is synced with
NONE, STRIPE, CHARGEBEE, PADDLE, SHOPIFY, WOOCOMMERCE, ZYLVIE, POLAR The affiliate program this coupon belongs to
When the coupon was created
When the coupon was last updated
Promotional codes that point at this coupon
Rule used to generate codes automatically for affiliates, if configured