Skip to main content
PATCH
Change a code

Authorizations

Authorization
string
header
required

An API key from Settings, API keys. It starts with rc_live_.

Path Parameters

id
string
required

The event's ID.

codeId
string
required

The code's ID.

Body

application/json
code
string

Kept in capitals, letters, digits, dashes and underscores; a buyer may type it in any case.

Required string length: 2 - 40
ticket_type_id
string | null

The one type it is for; null for every type.

discount_percent
integer

0 opens a type sold by code without a discount.

Required range: 0 <= x <= 100
max_uses
integer | null

Orders that may use it, paid or being paid; null for no limit.

Required range: x >= 1
is_active
boolean

Response

The code.

code
string

Kept in capitals, letters, digits, dashes and underscores; a buyer may type it in any case.

Required string length: 2 - 40
ticket_type_id
string | null

The one type it is for; null for every type.

discount_percent
integer

0 opens a type sold by code without a discount.

Required range: 0 <= x <= 100
max_uses
integer | null

Orders that may use it, paid or being paid; null for no limit.

Required range: x >= 1
is_active
boolean
id
string
event_id
string
uses
integer
created_at
string<date-time>
updated_at
string<date-time>