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
Coupon update details
The coupon ID to update
Name of the coupon
Type of discount
PERCENTAGE
, FLAT
Percentage off (1-100)
Amount off
Currency
How long the discount applies
once
, forever
, repeating
Number of months for repeating duration
Maximum redemptions
Limit to specific products
Product IDs
Whether the coupon is valid
Redeem by date
Response
Coupon updated successfully
The coupon ID
Name of the coupon
External ID (e.g., Stripe coupon ID)
Type of discount - percentage or flat amount
PERCENTAGE
, FLAT
Percentage off (1-100) for percentage coupons
Amount off for flat coupons
Currency for flat amount coupons (e.g., USD, EUR)
How long the discount applies
once
, forever
, repeating
Number of months for repeating duration
Maximum number of times this coupon can be redeemed
Whether coupon is limited to specific products
Array of product IDs this coupon applies to
Whether the coupon is currently valid
Date by which the coupon must be redeemed
Integration type (e.g., stripe, custom)
The affiliate program ID
Timestamp when the coupon was created
Timestamp when the coupon was last updated
Promotional codes associated with this coupon