POST
/api/rpa/prestador/get_list服务提供方列表
按登记时间倒序分页返回该企业的服务提供方,每项字段与 /prestador/save 的返回相同。
必需请求头
tokenstring | string | 开具公司的 token |
signstring | string | MD5 签名: MD5(token + path + body + timestamp) |
timestampstring | string | Unix 时间戳(秒) |
Body
pageint | int | 页码(默认 1) |
pageSizeint | int | 每页条数(默认 20,最大 100,超过时返回错误) |
keywordstring | string | 按姓名(不区分大小写,部分匹配)或 CPF 数字(部分匹配)搜索。 不含数字时只按姓名搜索 |
somenteAtivosbool | bool | 仅返回启用的服务提供方 |
示例
# sign = md5(token + path + body + timestamp) # 按接口路径生成的调用模板,占位符替换为实际值 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
}
}