Quickstart (Ingresso)
1. Gerar token
Copy
curl -X POST https://beta-jackson.safest.com.br/api/seguros/auth/token \
-H "Content-Type: application/json" \
-d '{
"client_id": "abc123def456",
"client_secret": "super-secret-value"
}'
2. Criar transação
Copy
curl -X POST https://beta-jackson.safest.com.br/api/seguros/ingresso-protegido/create \
-H "Authorization: Bearer SEU_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "Evento",
"eventName": "Festival Safest",
"eventDate": "2026-05-12",
"eventTime": "20:00",
"eventAddress": "Av. Paulista, 1000 - Sao Paulo",
"nameOrRazao": "Maria Souza",
"cpfOrCnpj": "12345678909",
"birthDate": "1990-02-10",
"phone": "11999999999",
"email": "maria.souza@example.com",
"canal_venda": "app",
"parceiro": "Hub Safest",
"tipoIngresso": "Inteira",
"numeroIngresso": "ING-2026-0001",
"valorIngresso": "149.90",
"taxaConveniencia": "12.00",
"valorTotal": "161.90",
"channelLink": "parceiro-hub",
"musicalGenre": "Festival"
}'
3. Consultar status
Copy
GET /api/seguros/ingresso-protegido/status/{id}
4. Solicitar segunda via
Copy
POST /api/seguros/ingresso-protegido/segunda-via

