cURL
curl --request GET \ --url https://api.myidvirtual.com/customer/:userID \ --header 'Authorization: <authorization>'
{ "customer": { "id": "cust-123e4567-e89b-12d3-a456-426614174000", "userId": "123e4567-e89b-12d3-a456-426614174000", "user": { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "João Silva", "email": "[email protected]", "cellphone": "+5511999999999", "status": true, "credits": 100, "role": "CUSTOMER" }, "passId": 12345, "password": "senha_hash", "dueDate": "2024-02-20T00:00:00.000Z", "screens": 2, "status": "active", "expiresIn": 30, "subscription": { "id": "sub-789", "planId": "plan-premium", "status": "active", "startDate": "2024-01-20T00:00:00.000Z", "endDate": "2024-02-20T00:00:00.000Z" }, "devices": [ { "id": "device-1", "name": "iPhone 13", "platform": "iOS", "lastAccess": "2024-01-19T15:30:00.000Z" } ], "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-20T14:45:00.000Z" }, "message": "Customer encontrado" }
Busca informações detalhadas de um customer por ID
curl --location --request GET 'http://localhost:3333/customer/123e4567-e89b-12d3-a456-426614174000' \ --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'