Controllr/API/REST-HTTP/Área Administrativa/Cadastro Clientes
De BrByte Wiki
< Controllr | API | REST-HTTP | Área Administrativa
Listar os Clientes
POST /controllrctl/client/list
curl -i -X POST \
-H "Content-Type:application/x-www-form-urlencoded" \
-H "Accept:application/json" \
-d "where: [{"field":"client_status","oper":5,"value":0}]" \
-d "start: 0" \
-d "limit: 15" \
-d "sort: client_complete_name" \
-d "dir: ASC" \
'http://192.168.144.10:8080/controllrctl/client/list'
Resposta JSON
{
"success": true,
"total": 493,
"results": [
{
"client_pk": 430,
"client_status": 3,
"client_type": 0,
"client_username": "",
"client_password": "",
"client_name": "teste",
"client_lastname": "brbyte",
"client_mail": "",
"client_doc1": "",
"client_doc2": "",
"client_date_cad": "2016-09-20 00:00:00",
"client_date_deactivation": null,
"client_date_birth": "2016-09-20 00:00:00",
"client_observations": "",
"offices_pk": 1,
"offices_identification": "Matriz",
"client_complete_name": "teste brbyte",
"client_phones": null,
"cli_addr_address": "Rua Oscar Ferreira Bugre",
"cli_addr_number": "88",
"cli_addr_neighborhood": "Vila Nasser",
"cli_addr_zipcode": "79.117-101",
"cli_addr_province": "Campo Grande",
"cli_addr_state": "MS",
"cli_addr_completation": ""
}
]
}
