GET api/Cliente/PesqCliente?token={token}&dsPesquisa={dsPesquisa}&qtRetorno={qtRetorno}
Retorna lista de Clientes conforme parametro informado
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| token |
Valor recebido pelo método Login >> Entrar |
string |
Required |
| dsPesquisa |
Parte do nome do cliente, telefone ou e-mail ou CPF/CNPJ |
string |
Required |
| qtRetorno |
Quantidade de registros para retorno |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of PesqCliente| Name | Description | Type | Additional information |
|---|---|---|---|
| CDPESSOA |
Código do cliente |
integer |
None. |
| NMPESSOA |
Nome do cliente |
string |
None. |
| NRCPFCNPJ |
CPF ou CNPJ do cliente |
string |
None. |
| TPPESSOA |
Tipo de Pessoa (1 - Física; 2 - Jurídica) |
integer |
None. |
| Enderecos |
Enderecos cadastrados para o cliente |
Collection of PesqEndereco |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"CDPESSOA": 1,
"NMPESSOA": "sample string 2",
"NRCPFCNPJ": "sample string 3",
"TPPESSOA": 4,
"Enderecos": [
{
"SQENDERECO": 1,
"SGUF": "sample string 2",
"DSMUNICIPIO": "sample string 3",
"DSBAIRRO": "sample string 4",
"DSLOGRADOURO": "sample string 5",
"NRRESIDENCIA": 1
},
{
"SQENDERECO": 1,
"SGUF": "sample string 2",
"DSMUNICIPIO": "sample string 3",
"DSBAIRRO": "sample string 4",
"DSLOGRADOURO": "sample string 5",
"NRRESIDENCIA": 1
}
]
},
{
"CDPESSOA": 1,
"NMPESSOA": "sample string 2",
"NRCPFCNPJ": "sample string 3",
"TPPESSOA": 4,
"Enderecos": [
{
"SQENDERECO": 1,
"SGUF": "sample string 2",
"DSMUNICIPIO": "sample string 3",
"DSBAIRRO": "sample string 4",
"DSLOGRADOURO": "sample string 5",
"NRRESIDENCIA": 1
},
{
"SQENDERECO": 1,
"SGUF": "sample string 2",
"DSMUNICIPIO": "sample string 3",
"DSBAIRRO": "sample string 4",
"DSLOGRADOURO": "sample string 5",
"NRRESIDENCIA": 1
}
]
}
]