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.
| Endpoint | Method | Description |
|---|---|---|
/api/rpa/prestador/save | POST | Create/update provider |
/api/rpa/prestador/get_list | POST | List providers |
/api/rpa/preview | POST | Calculate without issuing |
/api/rpa/create | POST | Issue RPA |
/api/rpa/get_list | POST | List RPA |
/api/rpa/get_detail | POST | Get RPA detail |
/api/rpa/get_pdf | POST | Get RPA PDF |
/api/rpa/estornar | POST | Reverse RPA |
/api/rpa/report/monthly | POST | Monthly 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.
- POSTCreate/update providerCreates or updates the individual provider record.
/api/rpa/prestador/save - POSTList providersReturns the providers of the company, paginated, most recently registered first; each it…
/api/rpa/prestador/get_list - POSTCalculate without issuingCalculates the withholding without persisting anything: no receipt is created and no num…
/api/rpa/preview - POSTIssue RPAIssues the receipt.
/api/rpa/create - POSTList RPAReturns the receipts, paginated, latest payment date first.
/api/rpa/get_list - POSTGet RPA detailReturns all fields of the receipt, the calculation text memoria and the provider record…
/api/rpa/get_detail - POSTGet RPA PDFReturns the receipt PDF URL.
/api/rpa/get_pdf - POSTReverse RPALogical reversal — there is no cancellation, because the RPA is not transmitted anywhere.
/api/rpa/estornar - POSTMonthly closingReturns, per receipt, what eSocial requires (CPF, NIT, category, bases and amounts of ea…
/api/rpa/report/monthly