Skip to main content
iVentureTeam
Odoo Accounting & Tax

Odoo Peru E-Invoicing: SUNAT Setup, OSE Options and GRE in Odoo 19/20

Set up Odoo Peru e-invoicing for SUNAT: l10n_pe modules, IAP vs Digiflow vs direct, credit costs, document types, GRE 2.0 and fixes for common rejections.

Siddharth JambukiyaSiddharth JambukiyaOdoo Techno-Functional Consultant
November 18, 202614 min read4 views
Odoo Peru E-Invoicing: SUNAT Setup, OSE Options and GRE in Odoo 19/20 cover

Most guides on Odoo facturación electrónica in Peru stop at "install the module". The real work is the provider, SOL users, certificates and master data. Our Odoo localization consulting covers that full path.

Related service: Odoo for finance teams — accounting, tax and reporting automation.

This guide is for finance leads, accountants and IT managers at companies in Peru, or foreign groups with a Peruvian entity, planning Odoo 19 or Odoo 20. If you also run a company in Argentina, compare it with our Odoo Argentina localization guide for ARCA e-invoicing.

What is SUNAT e-invoicing and how does Odoo handle it?

SUNAT e-invoicing means every invoice, boleta, credit note and debit note is issued as a signed XML file that an OSE or SUNAT validates before it counts as a fiscal document. Odoo builds, signs and sends that file from the invoice you post.

SUNAT, the Superintendencia Nacional de Aduanas y de Administración Tributaria, enforces tax and customs in Peru. Odoo's legal overview of e-invoicing in Peru calls the document a Comprobante de Pago Electrónico (CPE), required for B2B, B2C and B2G sales.

A few terms come up in every Odoo SUNAT project:

  • OSE: Operador de Servicios Electrónicos, a provider that validates documents on SUNAT's behalf.
  • CDR: Constancia de Recepción, the receipt that proves the document was accepted.
  • SOL credentials: the SUNAT Operaciones en Línea user and password for online services.
  • RUC: the taxpayer registration number, used as the company and partner tax ID.
  • IGV: Impuesto General a las Ventas, the sales tax Odoo calculates on each line.

Accepted invoices print with a QR code, and Odoo's legal page notes Peru's five-year storage rule.

Which Odoo Peru localization modules do you need?

Most companies need l10n_pe and l10n_pe_edi, plus l10n_pe_reports for the PLE books and the stock module if they ship goods. Odoo installs l10n_pe on its own when Peru is the country chosen at database creation.

ModuleTechnical nameWhat it adds
Peru - Accountingl10n_pePCGE chart of accounts, taxes, document types, ID types
Peru - E-invoicingl10n_pe_ediSigning, sending to OSE or SUNAT, CDR handling
Peru - Accounting Reportsl10n_pe_reportsRVIE 14.4, RCE 8.4 and 8.5, PLE 5.1, 5.3, 6.1, 1.1, 1.2
Electronic Delivery Notel10n_pe_edi_stock (GRE 2.0: l10n_pe_edi_stock_20)Guía de remisión from delivery orders
Peru - Stock Reportsl10n_pe_reports_stockPLE 12.1 and 13.1 permanent inventory books
Peruvian eCommercel10n_pe_website_saleID type at checkout and e-invoices from web orders
Peru POS with PE Docl10n_pe_posEdit fiscal data in the POS to issue invoices and refunds

The Odoo 20 Peru localization documentation names the delivery guide module l10n_pe_edi_stock in its table and l10n_pe_edi_stock_20 in the GRE 2.0 section. Check which one your Apps list shows.

In the public Odoo source, l10n_pe and l10n_pe_pos sit in the open repository for 19.0 and 20.0, while l10n_pe_edi does not. In practice that means SUNAT e-invoicing runs on Odoo Enterprise. Our Odoo Community vs Enterprise comparison explains the wider split.

IAP vs Digiflow vs direct SUNAT: which signature provider should you pick?

Odoo Peru E-Invoicing: Which signature provider fits you?

Pick Odoo IAP if you want the fastest start, Digiflow direct if you already have a contract and certificate, and direct SUNAT only if you have always issued through SUNAT. You set the provider in Accounting settings under the Peruvian localization section.

FactorOdoo IAPDigiflow directSUNAT direct
Digital certificateIncluded in the serviceBuy your own .pfxBuy your own .pfx
Who validatesDigiflow as OSEDigiflow as OSESUNAT
Cost modelOdoo credits per documentYour Digiflow agreementNo OSE fee
SOL credentialsAffiliate Digiflow on SUNATRequired in OdooRequired, RUC plus user
ContractOdoo subscription onlySigned with DigiflowSUNAT acceptance process
Best forMost new Odoo usersExisting Digiflow clientsLong-time SUNAT issuers

Odoo calls IAP "the default and the suggested option" because the certificate comes with the service. With IAP you still affiliate Digiflow as your OSE and as an authorized PSE on the SUNAT portal.

The direct SUNAT option has a trap. An Odoo localization specialist on the Odoo forum thread on error 0111 warns that if you used another provider before, you cannot switch to SUNAT direct.

One forum user reports that Digiflow is now owned by Estela, so confirm the current affiliation steps with the provider.

How much do Odoo Peru IAP credits cost?

Odoo Peru IAP credits cost EUR 0.022 each, every new database gets 1,000 free credits, and each document sent to the OSE uses one credit. Packs run from 1,000 to 20,000 credits at the same unit price.

PackCreditsPrice (EUR)
Starter1,00022
Standard5,000110
Advanced10,000220
Expert20,000440

Prices are from the Peruvian EDI service on Odoo IAP, shown in euros. Testing mode with IAP needs no credits.

Three rules decide your real spend:

  1. A rejected document that you send again costs a second credit.
  2. Each cancellation request costs one credit.
  3. GRE delivery guides go straight to SUNAT, so in theory they use no IAP credits.

Illustrative example: 3,000 invoices and boletas a month use about 3,000 credits, roughly EUR 66. Every avoidable rejection adds to that.

How do you set up Odoo SUNAT e-invoicing step by step?

Odoo SUNAT setup follows the same order every time: company data, provider and certificate, journals, then partners, products and units of measure. Skip one and the OSE rejects your first invoice.

  1. Company: set Peru as the country, the RUC as tax ID, and the Address Type Code (the SUNAT establishment code). Use 0000 only if you do not know it.
  2. Signature provider: in Accounting settings, choose IAP, Digiflow or SUNAT and enter SOL credentials where needed.
  3. Certificate: if you do not use IAP, upload your .pfx file and its password.
  4. Testing mode: databases start in production, so switch on testing before your first trial invoice.
  5. Journals: keep Use Documents ticked on sales journals and select Peru UBL 2.1 as the EDI format. Untick Factur-X (FR), which shows by default.
  6. Partners: fill the SUNAT identification type (RUC, DNI, foreign ID and others) on every customer.
  7. Products: add the UNSPSC code, which Odoo requires for Peru.
  8. Units of measure: fill the SUNAT measure unit code on every custom unit.
  9. PLE type: set the PLE Type of CoA in settings, as it is not set by default.
  10. Exchange rates: pick SUNAT as the currency rate service for daily rates.

Step 8 trips many teams. A thread on SUNAT error 2883 in Odoo shows a custom unit like "Caja 6 pza" with no unit code getting the whole invoice rejected. For foreign currency, see our Odoo multi-currency accounting guide.

Which SUNAT document types does Odoo support?

On customer invoices, Odoo Peru supports the factura, the boleta, the credit note and the debit note, each with its own sequence per journal. Odoo creates the document type list when the localization installs.

SUNAT codeDocumentPrefixTypical use
01Factura electrónicaFB2B sale to a customer with RUC
03Boleta de venta electrónicaBSale to a consumer, usually with DNI
07Nota de crédito (factura or boleta)F or BRefund or correction
08Nota de débito (factura or boleta)F or BExtra charge on a past document

The l10n_pe data loads many more SUNAT codes, such as 02 Recibo por Honorarios and 04 Liquidación de compra, for vendor bills and reports. Only the four above are issued from customer invoices.

Each invoice also needs an operation type (Internal Sale by default) and, per line, an EDI affectation reason for the tax scope. For your first credit note, use Partial Refund so you can set its sequence.

How does the guía de remisión electrónica (GRE 2.0) work in Odoo?

Odoo generates the sender guía de remisión electrónica from a delivery order once it is marked Done, and sends it directly to SUNAT whatever provider you use. It needs the Inventory app and its own SUNAT API credentials.

SUNAT requires the GRE when taxpayers move goods, except those in the Régimen Único Simplificado (RUS). Odoo supports the sender GRE only. The carrier GRE, issued by the transport company for public transport, is not supported.

Setup checklist for GRE 2.0:

  • SUNAT API: create a client ID and client secret in the SUNAT portal and enter them under Inventory settings, Peru Delivery Guide.
  • SOL user: use the format RUC plus SOL user, for example 20557912879SOLUSER, with the right access rights.
  • Operators: drivers as individual contacts with licence, district and DNI or RUC.
  • Carriers: for public transport, the MTC registration and authorization numbers.
  • Vehicles: plate, authorization and default operator; tick "Is M1 or L?" for small vehicles.
  • Products: fill the Partida Arancelaria (tariff item) and a weight above zero.

Watch one rule closely: SUNAT has no GRE test environment. Any guide you generate, even from a test database, reaches SUNAT and must be removed in the SUNAT portal.

What are the most common SUNAT rejection errors in Odoo?

Most SUNAT rejections in Odoo come from master data: SOL user format, missing unit codes, zero product weights and wrong transfer reasons. Odoo shows the error on the invoice, often with a hint.

  • 0111, no profile to send documents: the SOL user must be RUC plus user with no spaces, with e-invoicing rights. A new certificate can take up to 48 hours to register, the forum thread notes.
  • 2883, unit of measure missing: fill the SUNAT unit code on every custom unit.
  • 2325, gross weight on GRE: the product weight is 0.00; cancel the guide, fix the weight and create it again.
  • JSONDecodeError on GRE: usually a SOL user problem; check the RUC plus user format.
  • BuyerCustomerParty error on GRE: the transfer reason is "other"; reasons 03 and 12 do not work in Odoo.
  • 400 Bad Request on GRE: not fixable in Odoo; check or recreate the user with SUNAT.

How you fix it matters for credits. If the error is in partner, product or tax data, correct the record and click Retry. If it is in the invoice itself, reset to draft, fix it and send again. Either way, a resend costs another credit.

Documents in "To be Sent" go out hourly, or at once with Send now. Accepted ones move to Sent with the CDR ZIP in the chatter.

How do cancellations, exports, detracciones and POS work?

Odoo covers the common Peru special cases, but several need a specific workflow your team should rehearse in testing.

Cancellations: use Request Cancellation on a validated invoice and give a reason. Each request uses one credit.

Exports: set the customer ID type to Foreign ID, choose an export operation type, and use the EXP taxes on the lines. The Extranjero - Exportación fiscal position helps here.

Detracciones: every product on the invoice needs the detraction fields filled, and the invoice operation type must be 1001.

Down payments: SUNAT does not accept negative lines, so Odoo documents a credit note workaround. Agree it with your accountant.

eCommerce: l10n_pe_website_sale picks boleta or factura from the buyer's DNI or RUC. A zero shipping price fails validation, so free shipping needs a one-cent line.

POS: l10n_pe_pos lets cashiers edit fiscal data at the till. Our Odoo 19 POS review covers the POS itself.

How does Odoo Peru e-invoicing fit your industry?

The SUNAT rules are the same for everyone, but where the work lands depends on how you sell and ship.

IndustryPain or cost driverOdoo approachHow iVentureTeam helps
Distribution and wholesaleA GRE for every shipmentSender GRE from delivery ordersVehicle, operator and weight data cleanup
Retail and POSHigh boleta volumel10n_pe_pos with DNI captureCredit forecast and POS testing
eCommerceFactura or boleta at checkoutl10n_pe_website_saleCheckout, shipping and invoice tests
ManufacturingValued inventory booksPLE 13.1 with automatic valuationCosting method and warehouse codes
ServicesDetracciones on invoicesOperation type 1001 and product fieldsDetraction mapping per service
ExportersForeign buyers and EXP taxesExport operation type and fiscal positionExport invoice templates and checks

For PLE 12.1 and 13.1, Odoo needs automatic inventory valuation, a costing method other than Standard Price, and a numeric Annex Establishment Code of 4 to 7 digits on each warehouse. Odoo says both books are kept by semester.

Is the Peru localization different in Odoo 19 and Odoo 20?

For SUNAT e-invoicing, the Odoo 19 and Odoo 20 documentation describes the same modules, settings and limits. We compared both official Peru pages on 18 November 2026 and found no differences.

The 20.0 l10n_pe manifest does list different dependencies and data files from 19.0, so retest document types after any upgrade. Our Odoo 20 accounting release notes list the wider finance changes.

Country modules rarely cover everything. See our post on Odoo localization gaps, or compare Mexico in our Odoo CFDI 4.0 setup checklist.

How iVentureTeam helps with Odoo Peru e-invoicing

Planning Odoo in Peru? Estimate your project

iVentureTeam sets up the Peru localization, tests every SUNAT document type and fixes master data before you spend real credits. We have delivered 150+ ERP projects across 35+ countries with 40+ Odoo specialists, led by a consultant with 13+ years in Odoo.

  • Provider choice: we compare IAP, Digiflow and SUNAT direct for your history, volume and certificate status.
  • Master data cleanup: RUC and DNI types, UNSPSC codes, unit codes, tariff items and weights.
  • Integration: our Odoo integration services connect webshops, marketplaces and other tools to the e-invoicing flow.
  • Test plan: factura, boleta, credit note, debit note, export, detracción and GRE scenarios signed off before go-live.
  • Budget: our published Odoo implementation cost ranges run from $3k to $9k for small projects, or get a quick figure from the Odoo project estimate tool.

Odoo localization case study: KMF Technologies (The Gambia)

This is not a Peru or SUNAT project, but it shows the localization and master data work that decides whether e-invoicing goes smoothly. KMF Technologies is an IT services and hardware firm in The Gambia.

KMF tracked products by hand, with no real-time stock view and no sync between sales, purchase and store teams.

We ran a seven-phase, 8-week rollout of Sales, Purchase, Inventory and Accounting. It included a chart of accounts built for The Gambia, a full product master import with integrity checks, and custom PDF formats for quotations, orders, invoices and purchase orders.

In Peru the same groundwork carries more weight, because SUNAT rejects documents with gaps in product codes, units or tax IDs. Read the KMF Technologies Odoo inventory implementation case study.

The bottom line on Odoo Peru e-invoicing

Odoo covers SUNAT e-invoicing well in Odoo 19 and 20, as long as you choose the right signature provider and fix master data before go-live. Most problems are setup problems, not software limits.

Start with IAP unless you have a reason not to, test every document type, and treat GRE with care because SUNAT has no test environment for it. If you are a carrier, plan the carrier GRE outside Odoo.

Ready to set up SUNAT e-invoicing in Odoo?

Book a Peru setup review

Go live with documents that SUNAT accepts the first time. Plan your Odoo Peru localization with our team, call +91-90235-15208, or email business@iventureteam.com.

Frequently Asked Questions

Does Odoo support electronic invoicing in Peru?

+

Yes. The l10n_pe_edi module signs invoices, boletas, credit notes and debit notes in UBL 2.1 and sends them to an OSE or SUNAT. Accepted documents store the CDR and print with a QR code.

Is Odoo Peru e-invoicing available in Odoo Community?

+

The base l10n_pe module is in the public Community source, but l10n_pe_edi is not. In practice, SUNAT e-invoicing in standard Odoo needs Enterprise, or a third-party module on Community.

What is the difference between an OSE and a PSE in Peru?

+

An OSE validates electronic documents on SUNAT's behalf and returns the CDR. A PSE is a provider authorized to issue documents for you. With Odoo IAP, you affiliate Digiflow on the SUNAT portal in both roles.

How much do Odoo Peru IAP credits cost?

+

Odoo sells Peruvian EDI credits at EUR 0.022 each, in packs from 1,000 credits for EUR 22 to 20,000 for EUR 440. New databases get 1,000 free credits, and each document sent uses one credit.

Do I need my own digital certificate for SUNAT in Odoo?

+

Not with Odoo IAP, which includes the certificate. With Digiflow direct or SUNAT direct, you buy a .pfx certificate from a SUNAT-listed vendor and upload it with its password in Odoo.

Can Odoo issue the guía de remisión electrónica?

+

Yes, the sender GRE 2.0, generated from a delivery order marked Done and sent directly to SUNAT. The carrier GRE is not supported, and SUNAT has no test environment for guides.

Why does SUNAT reject my Odoo invoice with error 0111?

+

Usually the SOL user is wrong or lacks e-invoicing rights. Use RUC plus user with no spaces, check permissions in the SUNAT portal, and allow up to 48 hours after creating a new certificate.

Does a rejected invoice cost another IAP credit?

+

Yes. Each send uses one credit, so a document rejected once and sent again costs two. Cancellation requests also cost one credit each, so check data before sending.

Is the Peru localization the same in Odoo 19 and Odoo 20?

+

The official Odoo 19.0 and 20.0 Peru documentation pages were identical when we checked on 18 November 2026. Retest your document types after any upgrade, as module internals still change.

Free e-invoicing and tax readiness check

Getting Odoo ready for e-invoicing?

We check your Odoo version, localization and invoice flows against e-invoicing, then send what to set up, what to test and the effort involved.

Free, with no obligation. A senior consultant replies within 12 business hours.

We use cookies to improve your experience

Essential cookies make the site work, and we use analytics to improve it. Choose “Only necessary” to turn analytics off. See our cookie policy.