cURL
curl --request POST \ --url https://upay-sistema-api.onrender.com/api/v1/clients \ --header 'API-Key: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "email": "[email protected]", "document": "<string>", "phone": "<string>" } '
{ "message": "<string>", "client": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "email": "[email protected]", "document": "<string>", "phone": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Cria um novo cliente vinculado ao usuário autenticado
Chave de API obtida através do endpoint /api/credentials. Também aceita formato Bearer Token: Authorization: Bearer <api_key>
3 - 255
11 - 20
10 - 20
Cliente criado com sucesso
Show child attributes