Xeneural
Guides and tutorialsSales

Setting up electronic invoicing with SUNAT (Peru)

Guide to the Peruvian process. Credentials, series per branch and the test worth doing before invoicing a real customer.

Office towers in a financial district

The setup is done once and should not take more than an afternoon. What matters is doing it in this order.

1. Tax details of the organization

Exact legal name, RUC and tax address, as they were set when the organization was created. These details travel inside the receipt: an error here shows on every document, not on one.

2. Provider credentials

In the organization's settings you register the credentials of the certified provider that talks to SUNAT. While they are empty, XEN saves the receipts but does not send them, so the mistake shows immediately.

3. Series and branches

Each branch needs its invoice series and its boleta series, and each point of issue needs to know which one it uses. Numbering advances on its own within each series: it is never edited by hand.

  • One series per point of issue, not one series shared across branches.
  • Credit and debit notes carry their own series.
  • If you open a new branch, create its series before the first sale.

4. Issue a test document

From Sales, in Issue Document, issue a low value Boleta to a final consumer and check the state SUNAT returns in the receipt list. If it shows accepted, the setup is right. If it shows rejected, the reason is in the receipt's own detail and almost always points to a catalog value.

What to do with a rejected or pending receipt is answered in the help center; the short answer is that you fix the value and retry from the same document, without recapturing it. See the answers about receipts

ShareLink copied