POST
/api/rpa/prestador/get_listList providers
Returns the providers of the company, paginated, most recently registered first; each item has the same fields as the /prestador/save response.
Required headers
tokenstring | string | Issuing company token |
signstring | string | MD5 signature: MD5(token + path + body + timestamp) |
timestampstring | string | Unix timestamp in seconds |
Body
pageint | int | Page (default 1) |
pageSizeint | int | Items per page (default 20, maximum 100; larger values return an error) |
keywordstring | string | Search by name (case-insensitive, partial match) or by CPF digits (partial match). Without digits, only the name is searched |
somenteAtivosbool | bool | Return only active providers |
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders curl -X POST "https://api.tffiscal.com/api/rpa/prestador/get_list" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"page": 1,
"pageSize": 20,
"keyword": "maria",
"somenteAtivos": true
}
{
"success": true,
"message": "成功",
"data": {
"items": [
{
"id": "66c1f0a2e4b0a1c2d3e4f5a6",
"cpf": "12345678901",
"nit": "12345678901",
"name": "MARIA DA SILVA",
"dataNascimento": "1990-05-12",
"endereco": "Rua das Flores",
"complemento": "",
"numero": "100",
"bairro": "Centro",
"city": "Sao Paulo",
"uf": "SP",
"cep": "01000000",
"telefone": "",
"email": "maria@exemplo.com",
"inscricaoMunicipal": "",
"qtdDependentes": 0,
"banco": "",
"agencia": "",
"conta": "",
"tipoConta": "",
"pix": "maria@exemplo.com",
"ativo": true,
"nitPendente": false
}
],
"total": 1
}
}