curl
curl -X POST 'https://api.velan.app/v1/developer/tickets/1/resend' \
-H 'Authorization: Bearer $VELAN_KEY' \
-H 'Idempotency-Key: reenvio-ingresso-0001' \
-H 'Content-Type: application/json' \
-d '{"email": "maria@exemplo.com"}'import requests
url = "https://api.velan.app/v1/developer/tickets/{ticket_id}/resend"
payload = { "email": "maria@exemplo.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'maria@exemplo.com'})
};
fetch('https://api.velan.app/v1/developer/tickets/{ticket_id}/resend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.velan.app/v1/developer/tickets/{ticket_id}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'maria@exemplo.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.velan.app/v1/developer/tickets/{ticket_id}/resend"
payload := strings.NewReader("{\n \"email\": \"maria@exemplo.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.velan.app/v1/developer/tickets/{ticket_id}/resend")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"maria@exemplo.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velan.app/v1/developer/tickets/{ticket_id}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"maria@exemplo.com\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"sent": true,
"sent_to": "maria@exemplo.com",
"ticket": {
"attendee": "Maria Lima",
"id": 1,
"lot": "Inteira",
"order_code": "d4c5d8e3-e552-4cc7-843f-d3ad99e369a4",
"short_code": "TDSO98",
"status": "issued",
"ticket_url": "https://pay.velan.app/event/ingresso/bbd7ff1f-5fde-483b-b151-33850234aa23"
}
}
}{
"error": {
"type": "validation_error",
"message": "Campos não aceitos nesta rota.",
"fields": {
"confirmm": "Campo desconhecido."
}
}
}{
"error": {
"type": "authentication_error",
"message": "Envie Authorization: Bearer <chave de API>."
}
}{
"error": {
"type": "permission_error",
"message": "Esta chave não tem permissão de escrita em 'webhooks'. Crie uma chave com essa permissão."
}
}{
"error": {
"type": "not_found",
"message": "Assinatura não encontrada."
}
}{
"error": {
"type": "conflict",
"message": "Idempotency-Key já usada com outra requisição. Gere uma chave nova para uma operação nova."
}
}{
"error": {
"type": "unprocessable",
"message": "Descreva o motivo com pelo menos 5 caracteres."
}
}{
"error": {
"type": "rate_limited",
"message": "Limite de 30 alterações por minuto atingido."
}
}Eventos
Reenviar o ingresso por e-mail
Reenvia por e-mail o ingresso (QR e convite de calendário) de um participante. ticket_id é o id numérico do ingresso (vem da listagem). Vai para o e-mail do participante, ou do comprador se ele não tem e-mail próprio; email manda para outro endereço sem alterar o cadastro. Só para ingressos issued ou checked_in, e o evento precisa ter data definida.
Permissão: write:events ou write. Idempotency-Key: obrigatório. Prévia: não tem; a chamada executa.
POST
/
tickets
/
{ticket_id}
/
resend
curl
curl -X POST 'https://api.velan.app/v1/developer/tickets/1/resend' \
-H 'Authorization: Bearer $VELAN_KEY' \
-H 'Idempotency-Key: reenvio-ingresso-0001' \
-H 'Content-Type: application/json' \
-d '{"email": "maria@exemplo.com"}'import requests
url = "https://api.velan.app/v1/developer/tickets/{ticket_id}/resend"
payload = { "email": "maria@exemplo.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'maria@exemplo.com'})
};
fetch('https://api.velan.app/v1/developer/tickets/{ticket_id}/resend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.velan.app/v1/developer/tickets/{ticket_id}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'maria@exemplo.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.velan.app/v1/developer/tickets/{ticket_id}/resend"
payload := strings.NewReader("{\n \"email\": \"maria@exemplo.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.velan.app/v1/developer/tickets/{ticket_id}/resend")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"maria@exemplo.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velan.app/v1/developer/tickets/{ticket_id}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"maria@exemplo.com\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"sent": true,
"sent_to": "maria@exemplo.com",
"ticket": {
"attendee": "Maria Lima",
"id": 1,
"lot": "Inteira",
"order_code": "d4c5d8e3-e552-4cc7-843f-d3ad99e369a4",
"short_code": "TDSO98",
"status": "issued",
"ticket_url": "https://pay.velan.app/event/ingresso/bbd7ff1f-5fde-483b-b151-33850234aa23"
}
}
}{
"error": {
"type": "validation_error",
"message": "Campos não aceitos nesta rota.",
"fields": {
"confirmm": "Campo desconhecido."
}
}
}{
"error": {
"type": "authentication_error",
"message": "Envie Authorization: Bearer <chave de API>."
}
}{
"error": {
"type": "permission_error",
"message": "Esta chave não tem permissão de escrita em 'webhooks'. Crie uma chave com essa permissão."
}
}{
"error": {
"type": "not_found",
"message": "Assinatura não encontrada."
}
}{
"error": {
"type": "conflict",
"message": "Idempotency-Key já usada com outra requisição. Gere uma chave nova para uma operação nova."
}
}{
"error": {
"type": "unprocessable",
"message": "Descreva o motivo com pelo menos 5 caracteres."
}
}{
"error": {
"type": "rate_limited",
"message": "Limite de 30 alterações por minuto atingido."
}
}Authorizations
Headers
Path Parameters
Body
application/json
