How hard is it to issue your own receipts (boletas) to SUNAT?
Issuing a boleta from SUNAT's portal is easy. Issuing it from your own system is not. What we learned building PorPartidaDoble's invoicing, and when each path makes sense.
By Cristiam Castillo · · 6 min read
Someone asked us: "how hard is it for people to issue their own boletas to SUNAT?" (SUNAT is Peru's tax authority; a boleta is the receipt for sales to final consumers). The short answer: it depends on what you mean by "issue". There are three paths, and the difficulty is nothing alike. We know because we built the third one in PorPartidaDoble.
Path 1: SUNAT's portal or app. Easy
With your RUC (tax ID) and your SOL password you can issue electronic boletas from SUNAT's portal, or from its app for entrepreneurs, without installing or paying for anything. Even Nuevo RUS taxpayers can (gob.pe). You type the product and the amount, and SUNAT generates the boleta.
For someone who sells little, it's the best option. Its limits show up with volume: every boleta is filled in by hand, there is no customer catalog, and it doesn't connect to your store or your accounting.
Path 2: issuing from your own system. Hard
If you want your store, your till or your software to issue the boleta on its own, SUNAT lets you do it as the taxpayer's own system, but then the work is yours. You have to:
- Build a UBL 2.1 XML with every field SUNAT requires, including the legend with the amount in words.
- Sign it digitally with your Certificado Digital Tributario (CDT).
- Send it over SOAP with a secondary SOL user and read the receipt of acceptance (the CDR).
- Work out what to do when SUNAT rejects it, because its error messages don't always give the real reason.
No step is impossible, but there are many and each has its trap. Some of what we had to solve:
- The XML's ZIP has to be built with the real sizes; with a streaming writer SUNAT answers that the
UBLVersionIDtag is missing, when it is there. - The response ZIP starts with an empty directory: you have to walk the entries to find the
R-*.xml. - RENIEC's certificates use a cipher (RC2-40-CBC) that OpenSSL 3 no longer loads by default.
- SUNAT validates the issue date against Lima time. An 8 pm sale processed on a UTC server comes out dated tomorrow.
- The test environment throttles rapid requests and only knows one example RUC and user.
And that was with prior experience, and SUNAT accepting our test documents. In production, with your real RUC, some things are only confirmed by sending the first one.
What is specific to boletas
A boleta is simpler than a factura (invoice), but it has rules that aren't obvious at first:
- Identifying the customer: if the total is above S/ 700, the customer's identity document must be included. Below that amount it can go without their data (SUNAT).
- Daily summary: boletas are reported to SUNAT in a summary per day, which can be sent the same day or up to seven calendar days later (SUNAT). It is a separate flow from sending a factura, with its own ticket you have to query afterwards.
- Voiding a boleta is not done with a void notice (comunicación de baja) as with a factura: it is done through the daily summary or with a credit note.
Path 3: software that does it for you. Medium
This is the one we chose to build. Each business is still the one issuing: it uses its own certificate and its own secondary SOL user, and PorPartidaDoble takes care of the XML, the signature, the sending and the CDR. All you do is fill in a form, review it and press "Emitir". What you do have to do once:
- Get your CDT (free, issued by RENIEC).
- Tell SOL that you will issue from the taxpayer's own systems.
- Create a secondary SOL user with the document-sending profile.
- Register a series.
It's an afternoon's errand, not weeks. There is no longer an authorization request or a prior homologation.
Where we are with boletas
Boletas, along with facturas, credit notes and voids, were accepted by SUNAT's test environment. What we have not built yet is the daily summary, so for now a boleta that needs correcting is voided with a credit note. We'll build it as soon as users ask. How everything else stands is in how we issue electronic invoices and receipts straight to SUNAT.
And if you are in the Nuevo RUS?
It's the question we get most, because the NRUS is the regime of many small ventures and it only allows issuing boletas (not facturas). There are two separate things:
- You are not obliged to issue electronically. SUNAT's designation as an electronic issuer does not reach the NRUS while you remain in it: as long as you are in this regime you can keep using boletas printed by an authorized printer. The obligation starts on the first day of the month after the one in which you stop being listed as under the Nuevo RUS, according to RS 000075-2026/SUNAT (April 2026). Before that resolution the obligation came months later. From then on you will have to issue electronically and keep your registers in SIRE.
- You can issue electronically if you want. SUNAT allows it from its portal or its app, like everyone else (gob.pe). It is good practice: you don't have to buy receipt books, and you get used to it before it's your turn.
And from PorPartidaDoble? The application doesn't ask for a regime in order to issue: the NRUS shows up in the accounting wizard, but issuing works the same for any business with a RUC, a certificate and a secondary SOL user. Still, we have not tested with SUNAT the case of an NRUS taxpayer issuing from their own system, and we found no rule that allows or prevents it. If you are in the NRUS and want to do it this way, confirm it with SUNAT or your accountant before depending on it.
An NRUS taxpayer with few sales a month doesn't need this: the portal is enough. It starts to make sense if you sell often, want a record of your sales without keeping it by hand, or plan to move to the RER or the RMT.
So, what suits you?
- You sell little or occasionally: SUNAT's portal or app. You need nothing more.
- You issue every day, or want your sales, purchases and accounting together: a system. Your time is worth more than the subscription.
- You want to plug it into your store or your own software: you can build it yourself, and we hope this post saves you a few days. Or write to us if you'd rather we did it.
Try it at porpartidadoble.com.
Meet PorPartidaDoble
Issuing a boleta from SUNAT's portal is easy. Issuing it from your own system is not. What we learned building PorPartidaDoble's invoicing, and when each path makes sense.