GET
https://api.myidvirtual.com
/
resale
Listar Revendas
curl --request GET \
  --url https://api.myidvirtual.com/resale \
  --header 'Authorization: <authorization>'
[
  [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Revenda Premium",
      "email": "[email protected]",
      "phone": "+5511999999999",
      "commission": 15,
      "status": true,
      "totalClients": 45,
      "createdAt": "2024-01-15T10:30:00.000Z"
    }
  ],
  1
]

Listar Revendas

Endpoint para listar todas as revendas cadastradas.

Autenticação

Authorization
string
required
Bearer token JWT do usuário autenticado

Autorização

Responses

[
  [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Revenda Premium",
      "email": "[email protected]",
      "phone": "+5511999999999",
      "commission": 15,
      "status": true,
      "totalClients": 45,
      "createdAt": "2024-01-15T10:30:00.000Z"
    }
  ],
  1
]

Exemplo de Requisição

curl --location 'http://localhost:3333/resale' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'