Update Discount Code
Updates an existing discount code by its ID. All body fields are optional; only the fields included in the request body will be updated. event_id cannot be changed — discounts are bound to their original event. To create alternate codes for an existing discount, use the clone endpoint.
Authorizations
OAuth 2.0 bearer token obtained from POST /oauth2/token. Tokens expire after 30 minutes. Include in the Authorization header as Bearer {access_token}.
Path Parameters
integer - required - The ID of the Discount Code you want to update
1
Body
All fields are optional on update. event_id cannot be changed — discounts are bound to their
original event. To create alternate codes for an existing discount, use the clone endpoint.
Unique code for the discount within the event. May not contain <, >, \, or ".
255"SPRINGSALE2024"
The type of discount being applied.
percentage, absolute, specific "percentage"
0 <= x <= 10015
25.5
true
10
x >= 25
x >= 22
true
["session", "package"]New entries to merge into the stored custom_fees. See discountCreateRequest for shape.
{ "session": { "4147126": "315" } }"Discount for early bird registrants."
255"SPRINGSALE2024 has been used too many times."
Response
Updated
The discount payload returned by every read endpoint. Reflects Discount::fields() exactly —
every property is always present in the response (values may be null).
6095869
ID of the primary discount when this row is an alternate code; null (or 0) for primary codes.
null
261977
"SPRINGSALE2024"
percentage, absolute, specific "percentage"
Maximum number of times this discount can be used. 0 means unlimited.
10
0
0
null
15
0
["session", "package"]Returned as 0 or 1 (not a JSON boolean), even though the request accepts a boolean.
0, 1 1
Merged set of line-item-specific fees for specific discounts. Outer key is the line-item
type (reg_type, package, session), inner key is the line-item ID (numeric string), value
is the fee as a string. Populated by custom_fees_update on write.
{
"session": { "4147126": "315", "4147127": "337.5" }
}"Discount for early bird registrants."
Timestamp when the discount was created. Formatted as YYYY-MM-DD HH:MM:SS.
"2026-04-28 21:00:15"
Timestamp when the discount was last updated. Formatted as YYYY-MM-DD HH:MM:SS.
"2026-04-28 21:00:15"