Pular para o conteúdo

Inscrever um convidado (sem conta Vimine) num evento PÚBLICO — do lado do servidor

POST
/v1/events/{slug}/registrations/guest
curl --request POST \
--url https://api.vimine.network/v1/events/example/registrations/guest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "first_name": "example", "last_name": "example", "registration_type": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "note": "example", "locale": "example" }'

Para eventos públicos e tipos de inscrição que não exigem carteirinha. A vaga fica guardada até a pessoa confirmar o endereço pelo link que recebe (24 h); depois, um tipo gratuito é confirmado e um pago aguarda a contribuição. Responde um 202 uniforme seja qual for o endereço (não serve de oráculo); os problemas de elegibilidade e de validação são 422. Só tokens de cliente (registrations:write); aceita Idempotency-Key. As contribuições de quem não é associado são receitas comerciais (D-L2).

slug
obrigatório
string
Tipo de mídiaapplication/json
object
email
obrigatório
string formato: email
first_name
obrigatório
string
<= 50 caracteres
last_name
obrigatório
string
<= 50 caracteres
registration_type
obrigatório
string formato: uuid
note
string
nullable <= 2000 caracteres
locale

O idioma em que a inscrição foi feita (it, en): o idioma dos e-mails para um convidado, e o que vale para um associado que nunca escolheu nenhum. Padrão: Accept-Language

string
nullable
Exemplogerado
{
"email": "hello@example.com",
"first_name": "example",
"last_name": "example",
"registration_type": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"note": "example",
"locale": "example"
}

Aceito

Tipo de mídiaapplication/json
object
status
obrigatório
string
Valores permitidos: accepted
Exemplo
{
"status": "accepted"
}

Requisição inválida

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Credenciais ausentes ou inválidas

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Não permitido

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Não encontrado

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Falha na validação, tipo desconhecido ou não elegível (reasons: membership_required para um evento/tipo só para associados, sold_out, …)

Limite de requisições excedido

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Erro interno

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}