Get One Discount Code
Retrieves a single discount code by its ID, including discount type (percentage, absolute, or specific), applicable line items, capacity limits, line-item-specific fees (custom_fees), and group registration settings.
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 you want to get
1
Query Parameters
string - optional - Comma separated list of fields you want to return
"absolute_discount,applicable_line_items,capacity,code,created_at,custom_fees,event_id,id,notes,parent_id,percentage_discount,sold_out_message,type,updated_at"
string - optional - Comma separated list of expandable objects to include. Valid values: alternates, autopopulate, registrantCount, reservedCount.
"alternates,registrantCount"
Response
Get Discount Code
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"