Get All Discount Codes

Retrieves all discount codes for a specific event. Discount codes can be percentage-based, absolute (fixed amount), or specific (custom fees per line item). Requires the event_id query parameter. Use expand to include alternates, autopopulate field mappings, registrantCount, or reservedCount.

Available Fields

These are the standard fields returned for each discount code:

NameTypeDescription
idintegerThe ID of the discount code.
parent_idinteger (nullable)ID of the primary discount code when this row is an alternate; null for primary codes.
event_idintegerThe ID of the event to which this discount is associated.
codestringThe unique code for the discount.
typestringThe type of discount: percentage, absolute, or specific.
percentage_discountnumberThe percentage value of the discount (when type is percentage).
absolute_discountnumberThe absolute monetary value of the discount (when type is absolute).
applicable_line_itemsarray of strings (nullable)Line items the discount applies to when apply_to_all is 0. Standard values: reg_type, package, session, plus c_<questionId> for custom questions.
apply_to_allinteger (0 or 1)Returned as 0 or 1 (not a JSON boolean). 1 means the discount applies to every line item.
capacityintegerThe maximum number of times this discount can be used. 0 means unlimited.
min_group_sizeintegerThe minimum group size required to use this discount.
registrants_per_useintegerMaximum number of times the code can be used per group of N registrants.
custom_feesobject (nullable)Merged set of line-item-specific fees for specific discounts. Outer key is line-item type, inner key is line-item ID, value is the fee as a string.
sold_out_messagestring (nullable)Custom message shown when the discount is sold out.
notesstring (nullable)Additional notes or comments about the discount.
created_atstring (date-time)Timestamp when the discount was created.
updated_atstring (date-time)Timestamp when the discount was last updated.
Extra Fields

Additional fields available via the expand query parameter:

NameTypeDescription
alternatesarray of objectsAlternate code list, which inherits the settings of the main code.
autopopulatearray of objectsRegistrant fields automatically populated when this discount is applied.
registrantCountintegerNumber of registrants that used this discount code.
reservedCountintegerNumber of reserved discount codes (in-progress registrations).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
integer
required

integer - required - The ID of the event you want to retrieve discount codes for

string

string - optional - Comma separated list of fields you want to return

string

string - optional - Comma separated list of expandable objects to include. Valid values: alternates, autopopulate, registrantCount, reservedCount.

string

string - optional - Filter conditions to narrow the results. Valid operators are =, !=, >=, <=, >, <, contains, beginswith, endswith

string

integer - optional - The page of results you want to view

string

integer - optional - The number of results per page (to a max of 200)

string

string - optional - Sort the results (add - in front for opposite sort direction, e.g. "-id")

string

Comma-separated list of IDs to retrieve. When provided, only records matching these IDs are returned. All values must be positive integers. Maximum 100 IDs per request.

Responses

Language
Credentials
Bearer
access_token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json