POST
/api/rpa/report/monthly月度结算
按收据返回 eSocial 所需信息(CPF、NIT、类别、各项代扣的计税基数与金额)、当月合计,以及会阻碍申报的提示:temEstorno 与 prestadoresSemNit。已冲销的收据出现在 itens 中,但不计入合计。itens 按支付日期和编号升序排列。prestadoresSemNit 列出未冲销收据中缺少 NIT 的服务提供方,每项格式为 "姓名 (CPF)"。totais.qtdPrestadores 为未冲销收据涉及的不同 CPF 数。该月没有收据时返回空的 itens 和全为 0 的合计。
必需请求头
tokenstring | string | 开具公司的 token |
signstring | string | MD5 签名: MD5(token + path + body + timestamp) |
timestampstring | string | Unix 时间戳(秒) |
Body
competencia*int | int | 所属月份(YYYYMM 格式) |
* 必填字段。
常见错误
| 消息 | 原因 |
|---|---|
| competencia inválida (use AAAAMM) / competencia无效(格式YYYYMM) | competencia 未传或小于 190001 |
示例
# sign = md5(token + path + body + timestamp) # 按接口路径生成的调用模板,占位符替换为实际值 curl -X POST "https://api.tffiscal.com/api/rpa/report/monthly" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"competencia": 202608
}
{
"success": true,
"message": "成功",
"data": {
"competencia": 202608,
"itens": [
{
"id": "66c1f4b7e4b0a1c2d3e4f5b1",
"serie": 1,
"numero": 27,
"cpf": "12345678901",
"nit": "12345678901",
"nome": "MARIA DA SILVA",
"categoria": "Contribuinte individual",
"dataPagamento": "2026-08-20",
"descricaoServico": "Comissao de divulgacao - agosto/2026",
"codigoServicoMunicipal": "",
"qtdDependentes": 0,
"valorBruto": 3000.00,
"baseInss": 3000.00,
"valorInssSegurado": 330.00,
"valorInssPatronal": 600.00,
"baseIrrf": 2392.80,
"valorIrrf": 0.00,
"outrasDeducoes": 0.00,
"valorLiquido": 2670.00,
"status": "emitido",
"motivoEstorno": ""
}
],
"totais": {
"qtdRecibos": 1,
"qtdPrestadores": 1,
"valorBruto": 3000.00,
"valorInssSegurado": 330.00,
"valorInssPatronal": 600.00,
"valorIrrf": 0.00,
"valorLiquido": 2670.00
},
"temEstorno": false,
"prestadoresSemNit": []
}
}