Update Discount
Update details of an existing discount code.
Authorizations
Authenticate requests using your standard bearer API key (e.g. YOUR_API_KEY).
Path Parameters
The unique discount ID.
"disc_123"
Body
Customer-facing name of the discount.
Calculation type: percentage or fixed_amount.
percentage, fixed_amount The discount value.
Maximum number of redemptions allowed.
Expiration timestamp for the discount.
Number of subscription cycles this discount applies to.
List of product IDs this discount is restricted to.
Whether to preserve the discount when subscription plan changes.
Custom metadata for the discount.
Response
Discount updated successfully.
Represents a discount code created under your business, containing type, amount, usage limits, and expiration details.
The unique prefix-based identifier of the discount (e.g., disc_cs8f67sd7f6fw3fs).
"disc_cs8f67sd7f6fw3fs"
Alias for the unique identifier of the discount.
"disc_cs8f67sd7f6fw3fs"
The unique discount code (e.g. SAVE10) used during checkout.
The discount calculation type: percentage or fixed_amount.
percentage, fixed_amount The discount value. For percentage type, it is in basis points (e.g. 1000 = 10.00%). For fixed_amount type, it is in cents (e.g. 1000 = $10.00).
Maximum number of times this discount code can be redeemed. Null represents unlimited usage.
The number of times this discount code has been successfully redeemed.
The expiration timestamp after which the discount code is no longer valid.
The current status of the discount.
active, expired The unique identifier associated with the business this discount belongs to.
Timestamp indicating exactly when the discount was created.
Timestamp indicating when the discount was last updated.
The customer-facing name of the discount code (e.g. Summer Sale).