Create Discount Code

Creates a new discount code for an event. Requires event_id, code, and type (percentage, absolute, or specific). Set capacity to limit total usage, apply_to_all to apply across all line items, or specify applicable_line_items for targeted discounts. Group constraints can be configured via min_group_size, registrants_per_use, and all_registrants_in_group.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
integer
required

ID of the event to which this discount is associated.

string
required

Unique code for the discount.

string
enum
required

The type of discount being applied.

Allowed:
float

Percentage value of the discount (if type is percentage).

float

Absolute monetary value of the discount (if type is absolute).

boolean

Indicates if the discount applies to all items.

integer

The maximum number of times this discount can be used.

integer

Minimum group size required to use this discount.

integer

Maximum number of one use per group (Eg. If this is set to 2, then the code could be used 1 time in a group of 2, 2 times in a group of 4, 3 times in a group of 6 etc.).

boolean

Whether all registrants in a group must use the same discount.

string

Additional notes or comments about the discount.

string

Custom Message to be displayed when set, else will use default.

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