馃嚨馃嚜 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.
| Date | Scope | Obligation |
|---|---|---|
| 2010 | SEE Launch | Initial e-invoicing program |
| 2017-2022 | Progressive | Phased mandatory rollout |
| Jun 1, 2022 | All taxpayers | Full mandatory adoption |
| 2024 | SIRE | Integrated records system |
| Jan 2026 | SIRE Major | Full enforcement for large taxpayers |
| Ongoing | All transactions | Continuous 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
- CPE (Comprobante de Pago Electr贸nico): Electronic payment receipt (invoice/receipt)
- OSE (Operador de Servicios Electr贸nicos): Authorized service operator
- CDR (Constancia de Recepci贸n): Reception acknowledgment from SUNAT
- SIRE (Sistema Integrado de Registros Electr贸nicos): Integrated electronic records
- 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
| Code | Type | Description | Usage |
|---|---|---|---|
| 01 | Factura | Invoice | B2B/B2G |
| 03 | Boleta de Venta | Sales receipt | B2C |
| 07 | Nota de Cr茅dito | Credit note | Adjustments |
| 08 | Nota de D茅bito | Debit note | Adjustments |
| 20 | Factura Exportaci贸n | Export invoice | International |
| 40 | Gu铆a de Remisi贸n Electr贸nica | Electronic transport | Logistics |
| 41 | Retenci贸n | Withholding receipt | Taxes |
| 43 | Percepci贸n | Collection receipt | Taxes |
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
- Registration: Obtain RUC and SUNAT certificate
- XML Generation: Create UBL 2.1 document
- Digital Signing: Apply electronic signature
- OSE Submission: Send through authorized operator
- Validation: OSE validates and forwards to SUNAT
- CDR Return: Receive acknowledgment
- Delivery: Send invoice + CDR to buyer
- 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
- SUNAT Portal: Sunat.gob.pe
- E-Invoicing Section: Factura Electr贸nica
- SEE Documentation: Sistema de Emisi贸n Electr贸nica
- SIRE Info: Sistema Integrado de Registros