GET
https://api.myidvirtual.com
/
resale
/
clients
/
:id
Clientes da Revenda
curl --request GET \
  --url https://api.myidvirtual.com/resale/clients/:id \
  --header 'Authorization: <authorization>'
[
  {
    "id": "user-id-123",
    "name": "João Silva",
    "email": "[email protected]",
    "status": true,
    "subscription": {
      "plan": "Mensal",
      "endDate": "2024-02-15T00:00:00.000Z",
      "status": "ACTIVE"
    },
    "createdAt": "2024-01-10T10:30:00.000Z"
  }
]

Clientes da Revenda

Endpoint para listar todos os clientes associados a uma revenda.

Autenticação

Authorization
string
required
Bearer token JWT do usuário autenticado

Autorização

Path Parameters

id
string
required
ID da revenda

Responses

[
  {
    "id": "user-id-123",
    "name": "João Silva",
    "email": "[email protected]",
    "status": true,
    "subscription": {
      "plan": "Mensal",
      "endDate": "2024-02-15T00:00:00.000Z",
      "status": "ACTIVE"
    },
    "createdAt": "2024-01-10T10:30:00.000Z"
  }
]

Exemplo de Requisição

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