Pular para o conteúdo principal
POST
Criar tipo de ingresso

Autorizações

Authorization
string
header
obrigatório

Chave criada em Meu Perfil → API Keys. Envie Authorization: Bearer sk_live_….

Cabeçalhos

Idempotency-Key
string

Chave única desta alteração (ex.: um UUID). Repetir a chamada com a mesma chave devolve a mesma resposta, sem duplicar.

Maximum string length: 255

Corpo

application/json
event_id
string
obrigatório
Pattern: ^tev_[a-z0-9]{16}$
Exemplo:

"tev_4f8k2m9q1x7c3v5b"

ticket_type_id
string
Pattern: ^ett_[a-z0-9]{16}$
Exemplo:

"ett_4f8k2m9q1x7c3v5b"

name
string
Required string length: 1 - 80
description
string | null
Maximum string length: 300
unit_amount
integer

Preço em centavos: 0 gratuito, 9700 = R$ 97,00.

Intervalo obrigatório: 0 <= x <= 100000000
quantity
integer | null
Intervalo obrigatório: 0 < x <= 9007199254740991
min_per_order
integer
Intervalo obrigatório: 1 <= x <= 50
max_per_order
integer
Intervalo obrigatório: 1 <= x <= 50
sale_starts_at
string<date-time> | null
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
sale_ends_at
string<date-time> | null
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
visibility
enum<string>
Opções disponíveis:
visible,
hidden
status
enum<string>
Opções disponíveis:
active,
closed

Resposta

Sucesso.

id
string
obrigatório
name
string
obrigatório
dashboard_url
string
obrigatório
{key}
any