Peruvian electronic tax document · active

SUNAT UBL 2.1 electronic invoice

Peru’s UBL 2.1 electronic invoice and receipt documents with digital signatures, catalogues and SUNAT/OSE responses.

Invoice XMLCreditNote XMLDebitNote XMLCDR response ZIP

Current version and implementation status

Version noteUBL 2.1 guides and current SUNAT catalogues
Statusactive
Reviewed2026-08-02
FamilyPeruvian electronic tax document
Open official technical source

How to recognize the profile

Do not rely on the file extension alone. Inspect the root namespace, customization/profile identifiers, version values and authority-specific envelope.

  • UBLVersionID 2.1
  • CustomizationID 2.0
  • SUNAT UBLExtensions
  • RUC

Production validation stack

  1. 1
    UBL schema

    Confirm that the document is well formed and structurally compatible with the intended SUNAT UBL 2.1 syntax.

  2. 2
    SUNAT catalogues

    Apply semantic and business-rule checks rather than accepting a file merely because it parses.

  3. 3
    Digital signature

    Validate currencies, countries, tax categories, units, payment means and other controlled values against the correct release.

  4. 4
    CDR acceptance or rejection

    Apply the national, network or authority restrictions that narrow the base syntax.

EInvoiceLab’s browser tools provide detection, inspection and technical preflight. A profile is only production-valid after applying the correct official artefacts and obtaining the required network or authority outcome.

Common errors and corrective action

!
Invalid RUC

Locate the relevant field and rule, correct the source mapping, rerun every validation layer, then preserve the final response.

!
Catalogue code mismatch

Locate the relevant field and rule, correct the source mapping, rerun every validation layer, then preserve the final response.

!
Signature error

Locate the relevant field and rule, correct the source mapping, rerun every validation layer, then preserve the final response.

!
CDR rejection

Locate the relevant field and rule, correct the source mapping, rerun every validation layer, then preserve the final response.

Countries using or referencing this profile

Questions people ask

What is SUNAT UBL 2.1?

Peru’s UBL 2.1 electronic invoice and receipt documents with digital signatures, catalogues and SUNAT/OSE responses.

How is SUNAT UBL 2.1 validated?

A production check normally applies UBL schema, SUNAT catalogues, Digital signature, CDR acceptance or rejection. Local browser preflight cannot replace the official validation artefacts or authority outcome.

Which version should I use?

The current research note is: UBL 2.1 guides and current SUNAT catalogues. Confirm release notes at the official source before production deployment.

Practical tools

Inspect and prepare SUNAT UBL 2.1 files