TF Fiscal

Platform & integrations

RPA Receipts

9 endpoints

RPA — Self-Employed Payment Receipt

The RPA API lets you register individual (natural person) service providers, calculate and issue self-employed payment receipts, retrieve the PDF and generate the monthly closing report for accounting. RPA is not an electronic tax document: there is no transmission to the tax authority, no digital signature, no access key and no protocol — and therefore no homologation environment either. The issuing company is resolved from the token, never from the request body. Available only to companies that issue NF-e.

EndpointMethodDescription
/api/rpa/prestador/savePOSTCreate/update provider
/api/rpa/prestador/get_listPOSTList providers
/api/rpa/previewPOSTCalculate without issuing
/api/rpa/createPOSTIssue RPA
/api/rpa/get_listPOSTList RPA
/api/rpa/get_detailPOSTGet RPA detail
/api/rpa/get_pdfPOSTGet RPA PDF
/api/rpa/estornarPOSTReverse RPA
/api/rpa/report/monthlyPOSTMonthly closing

INSS and IRRF are assessed per period and per person, not per receipt: the INSS ceiling and the progressive IRRF bracket take into account everything already paid to the same CPF within the month. That is why the second payment of the month to the same provider may be withheld at a higher amount than the first. The INSS/IRRF table is maintained by the platform per calendar year — there is nothing to register. Until a new year's figures have been validated by an accountant, /preview keeps calculating while /create returns an error, instead of issuing a receipt with unverified withholding.

Prerequisites: the company of the token must have NF-e enabled (an NF-e series configured); otherwise the endpoint returns RPA disponível apenas para empresas emitentes de NF-e / RPA仅对已启用NF-e的公司开放. An active plan is also required. The endpoints have no protection against duplicate submissions: each call to /create issues a new receipt and consumes a new number.