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

Create promo code

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

Scope prep_manage

Create a promo code (percentage or fixed discount, optionally limited to one ticket type, a validity window and a redemption cap). 409 DUPLICATE_CODE if the code already exists for this event; 403 MODULE_DISABLED without Experience.

Parameters

event_idstring · pathRequired

Request body (JSON)

codestringRequired
The code attendees type at checkout.
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 the code can be used; leave out for unlimited.

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.