Skip to main content

馃嚨馃嚜 Peru - E-Invoicing Specifications (CPE - Comprobante de Pago Electr贸nico)

Status: 馃煝 Mandatory | Active for all taxpayers Authority: SUNAT (Superintendencia Nacional de Aduanas y de Administraci贸n Tributaria) Platform: SEE (Sistema de Emisi贸n Electr贸nica)


1. Context & Overview

Peru has one of Latin America's most comprehensive e-invoicing systems. Mandatory for nearly all registered taxpayers since June 2022, the system covers all business transactions (B2B, B2G, B2C) with a Clearance Model requiring SUNAT validation. The SIRE system for integrated electronic records has enforcement extended to January 2026.

DateScopeObligation
2010SEE LaunchInitial e-invoicing program
2017-2022ProgressivePhased mandatory rollout
Jun 1, 2022All taxpayersFull mandatory adoption
2024SIREIntegrated records system
Jan 2026SIRE MajorFull enforcement for large taxpayers
OngoingAll transactionsContinuous SUNAT reporting

2. Technical Workflow (Clearance Model)

Peru requires near real-time validation through SUNAT or authorized OSE (Operador de Servicios Electr贸nicos).

flowchart TD
    S["Invoicerr (Supplier)"] -->|1. Generate XML CPE| X[XML Document]
    X -->|2. Digital Signature| Cert[Digital Certificate]
    Cert -->|3. Submit to OSE/SEE| OSE[OSE Operator]
    
    OSE -->|4. Validate| V[Schema + Rules Check]
    V -->|5. Forward to SUNAT| SUNAT[SUNAT Platform]
    
    SUNAT -->|6. Authorization| CDR[CDR - Constancia de Recepci贸n]
    
    CDR -->|7. Return ACK + XML| OSE
    OSE -->|8. Deliver CDR| S
    
    S -->|9. Send Invoice + CDR| C[Client]
    S -->|10. PDF Delivery| C
    
    subgraph "SIRE Integration"
    S -.->|Sales/Purchase Data| SUNAT[SIRE System]
    end

馃П Key Components

  1. CPE (Comprobante de Pago Electr贸nico): Electronic payment receipt (invoice/receipt)
  2. OSE (Operador de Servicios Electr贸nicos): Authorized service operator
  3. CDR (Constancia de Recepci贸n): Reception acknowledgment from SUNAT
  4. SIRE (Sistema Integrado de Registros Electr贸nicos): Integrated electronic records
  5. Digital Certificate: SUNAT-approved certificates

3. Data Standards & Formats

A. Required Format

  • UBL 2.1: OASIS international standard
  • Encoding: UTF-8
  • Digital Signature: X.509 certificates
  • PDF Delivery: Required for buyers

B. Document Types

CodeTypeDescriptionUsage
01FacturaInvoiceB2B/B2G
03Boleta de VentaSales receiptB2C
07Nota de Cr茅ditoCredit noteAdjustments
08Nota de D茅bitoDebit noteAdjustments
20Factura Exportaci贸nExport invoiceInternational
40Gu铆a de Remisi贸n Electr贸nicaElectronic transportLogistics
41Retenci贸nWithholding receiptTaxes
43Percepci贸nCollection receiptTaxes

C. Critical Data Fields

  • RUC: Tax ID (11 digits)
  • TipoDoc: Document type code
  • Serie-Numero: Document number (AAAA-00000001)
  • Cliente: Buyer information (RUC, name, address)
  • IGV: General Sales Tax (18%)
  • ISC: Selective consumption tax
  • Gravado/Exonerado/Inafecto: Tax classification
  • TotalImpuestos: Total tax amount
  • Moneda: Currency code (PEN, USD)

4. Business Model & Compliance

A. Clearance Workflow

  1. Registration: Obtain RUC and SUNAT certificate
  2. XML Generation: Create UBL 2.1 document
  3. Digital Signing: Apply electronic signature
  4. OSE Submission: Send through authorized operator
  5. Validation: OSE validates and forwards to SUNAT
  6. CDR Return: Receive acknowledgment
  7. Delivery: Send invoice + CDR to buyer
  8. Retention: Provide download link for 1 year

B. SIRE Integration

  • Sales Registry: Electronic record of all sales
  • Purchase Registry: Electronic record of all purchases
  • Pre-filled Returns: SUNAT uses data for VAT returns
  • Grace Period: Major taxpayers until Jan 2026

C. Archiving Requirements

  • Retention Period: 5 years minimum
  • Format: Original XML + CDR
  • Download Link: Must provide 1-year access

5. Implementation Checklist

  • RUC Registration: Obtain Peruvian tax ID
  • Digital Certificate: Acquire SUNAT certificate
  • OSE Contract: Sign with authorized operator
  • UBL 2.1 Engine: Build XML generator
  • Signature Integration: Implement digital signing
  • OSE API: Connect to service provider
  • CDR Processing: Handle acknowledgment responses
  • Document Types: Support all CPE types
  • Buyer Delivery: Send XML, PDF, CDR
  • Download Portal: Implement 1-year access
  • IGV Calculation: Handle 18% VAT
  • SIRE Integration: Build sales/purchase registries

6. Resources