POST
/api/rpa/report/monthlyMonthly closing
Returns, per receipt, what eSocial requires (CPF, NIT, category, bases and amounts of each withholding), the period totals and the alerts that block filing: temEstorno and prestadoresSemNit. Reversed receipts appear in itens but are excluded from the totals. itens are sorted by payment date and number in ascending order. prestadoresSemNit lists the providers without NIT among the non-reversed receipts, each in the format "Name (CPF)". totais.qtdPrestadores is the number of distinct CPFs in the non-reversed receipts. When the period has no receipts, itens is empty and all totals are 0.
Required headers
tokenstring | string | Issuing company token |
signstring | string | MD5 signature: MD5(token + path + body + timestamp) |
timestampstring | string | Unix timestamp in seconds |
Body
competencia*int | int | Period in YYYYMM format |
* Required field.
Common errors
| Message | Cause |
|---|---|
| competencia inválida (use AAAAMM) / competencia无效(格式YYYYMM) | competencia missing or less than 190001 |
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/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": []
}
}