> ## Documentation Index
> Fetch the complete documentation index at: https://docs.safest.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart (Ingresso)

> Sequência mínima para começar a operar Ingresso Protegido.

# Quickstart (Ingresso)

## 1. Gerar token

```bash theme={null}
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

```bash theme={null}
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

```bash theme={null}
GET /api/seguros/ingresso-protegido/status/{id}
```

## 4. Solicitar segunda via

```bash theme={null}
POST /api/seguros/ingresso-protegido/segunda-via
```
