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

Buscar Revenda

Endpoint para obter informações detalhadas de uma revenda por ID.

Autenticação

Authorization
string
required
Bearer token JWT do usuário autenticado

Autorização

Path Parameters

id
string
required
ID da revenda

Responses

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

Exemplo de Requisição

curl --location 'http://localhost:3333/resale/123e4567-e89b-12d3-a456-426614174000' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'