Clientes
O modelo de clientes contém todas as informações sobre seus clientes, como nome, cpf, email, e número de telefone.
GET/client/
Listar todos os clientes
Esse endpoint permite que você recupere uma lista paginada de todos os seus clientes.
Request
GET
/client curl --location 'http://api.funnfestival.com.br/client/' \
--header 'Authorization: Bearer {token}'
Response
[
{
"id": 3708,
"client_id": "122b4490-fd2b-4633-a802-502a436a6fe5",
"name": "lucas de souza",
"document_id": "22222222222",
"phone": "+5511932454104",
"email": "Não informado",
"presence": "1",
"consumption": "R$ 15,00",
"balance": "R$ 0,00",
"createdAt": "2023-02-24T15:05:13.896Z",
"updatedAt": "2023-02-24T15:05:13.896Z"
},
{
"id": 3715,
"client_id": "b9ed4336-f504-437c-b245-f9c50675bed9",
"name": "lucas de souza",
"document_id": "22222222222",
"phone": "+5511932454104",
"email": "daiana.vilar@gmail.com",
"presence": "1",
"consumption": "R$ 191,00",
"balance": "R$ 9,00",
"createdAt": "2023-02-24T15:05:15.471Z",
"updatedAt": "2023-02-24T15:05:15.471Z"
},
{
"id": 3716,
"client_id": "9fd6e75f-598b-4357-b298-9d4751e86d58",
"name": "lucas de souza",
"document_id": "22222222222",
"phone": "+5511932454104",
"email": "Não informado",
"presence": "1",
"consumption": "R$ 319,00",
"balance": "R$ 8,00",
"createdAt": "2023-02-24T15:05:15.696Z",
"updatedAt": "2023-02-24T15:05:15.696Z"
},
{
"id": 3717,
"client_id": "388c5408-4203-44f9-9a8e-695551e1048f",
// ...
},
]
GET/client/search/document/:cpf
Buscar por CPF
Este endpoint permite que você recupere um clientes fornecendo seu CPF de protocolo.
Request
GET
/client/search/document/:cpfcurl --location 'http://api.funnfestival.com.br/client/search/document/:cpf'
Response
{
"id": 3708,
"client_id": "122b4490-fd2b-4633-a802-502a436a6fe5",
"name": "lucas de souza",
"document_id": "22222222222",
"phone": "+5511932454104",
"email": "Não informado",
"presence": "1",
"consumption": "R$ 15,00",
"balance": "R$ 0,00",
"createdAt": "2023-02-24T15:05:13.896Z",
"updatedAt": "2023-02-24T15:05:13.896Z"
}
GET/client/search/update/boot/
Executar boot
Este endpoint permite que você execute o boot de carrinho.
Request
GET
/client/search/update/boot/curl --location 'http://api.funnfestival.com.br/client/search/update/boot/' \
--header 'Authorization: Bearer {token}'
Response
{}