Client
1 min
Get a Client
Permite buscar um cliente a partir de um id.
GET
https://api.tsrtech.com.br
Body Parameters
- typestringrequiredDescription
- tokenstringrequiredDescription
- client_idIntegerrequiredDescription
curl
curl --location --request GET 'https://api.tsrtech.com.br' \
--header 'Content-Type: application/json' \
--data '{
"type": "client",
"token": "token",
"client_id": id_do_cliente
}'200
{
"type": "client",
"client_id": "XXXXX",
"client_name": "XXXXX",
"client_cpf": "XXXXX",
"client_email": "XXXX@XXXX",
"client_telephone": "XXXXXXXX",
"client_gender": "",
"client_status": "1",
"client_created_at": "2023-08-08 19:16:04"
}404
{
"message": "Client not found."
}Get All Clients
Fornece uma lista de todos os clientes cadastrados na instância
GET
https://api.tsrtech.com.br
Body Parameters
- typestringrequiredDescription
- tokenstringrequiredDescription
curl
curl --location --request GET 'https://api.tsrtech.com.br' \
--header 'Content-Type: application/json' \
--data '{
"type": "clients"
"token": "XXXXXX"
}'200
[
{
"id": "926",
"author": "40",
"nome": "Cliente Teste",
"cpf": "12345678900",
"email": "[email protected]",
"telefone": "5512345678900",
"sexo": "",
"status": "1",
"created_at": "2023-07-29 02:39:34",
"updated_at": "2023-07-29 02:39:34"
}
]404
{
"message": "Client not found."
}