Skip to content
  • Type to search every guide, endpoint and MCP tool.
POST

Create promo codes bulk

/v1/events/{event_id}/promo-codes/bulk

Scope prep_manage

Create many promo codes at once — an explicit codes list or count generated ones. Codes that already exist on the event are skipped rather than erroring, so a partially-applied batch can simply be re-run.

Parameters

event_idstring · pathRequired

Request body (JSON)

codesarray of string
Codes to create; use this or count.
countinteger
How many codes to generate.
prefixstring
Text placed at the start of every generated code.
discount_typestring
Either percentage or fixed.
discount_valuenumber
The discount amount: a percentage, or a fixed amount in major units, as set by discount_type.
ticket_type_idstring (uuid)
The ticket type this applies to; leave out for all ticket types.
valid_fromstring (date-time)
When the code starts working.
valid_untilstring (date-time)
When the code stops working.
max_redemptionsinteger
How many times each code can be used; the default is 1.

Responses

201Successful Response
422The request did not validate.
401The key is missing, unknown, revoked or expired.
403The key lacks the scope this call needs, or the organisation is not on Enterprise.
429Over the request rate. Wait for Retry-After seconds.