Update discount
Updates editable fields of an existing discount by id.
Documentation Index
Fetch the complete documentation index at: https://docs.quentli.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Organization API key using Authorization: Bearer sk_....
Path Parameters
Identifier of the discount.
Body
Request body for updating a discount. All fields are optional.
Display name of the discount.
1"Buen Fin 25%"
Optional description.
null
Replaces all existing codes with this list. Codes are uppercased automatically.
1 - 140["BUEN-FIN-2025"]
Whether the discount is a fixed amount (FIXED) or a percentage (PERCENTAGE).
FIXED, PERCENTAGE "PERCENTAGE"
Fixed discount amount in minor currency units. Required when type is FIXED.
0 <= x <= 99999999999null
Percentage to discount (0-100). Required when type is PERCENTAGE.
0 <= x <= 10025
Whether the discount is active.
true
Whether this discount is single-use.
false
Optional expiration date.
null
Maximum number of times this discount can be applied.
x >= 1null
Response
Discount updated
Updated discount.
A reusable discount that can be applied to invoices or subscriptions.