TF Fiscal

RPA Receipts

POST/api/rpa/report/monthly

Monthly 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

tokenstringstringIssuing company token
signstringstringMD5 signature: MD5(token + path + body + timestamp)
timestampstringstringUnix timestamp in seconds

Body

competencia*intintPeriod in YYYYMM format

 * Required field.

Common errors

MessageCause
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