Custom Odoo Solution for Peru’s SUNAT Tax Compliance, Built for Speed and Scale
A client in Lima, Peru partnered with Creyox Technologies to build a custom Odoo solution for Peru’s SUNAT tax requirements. The project covered automated data import, a high-performance comparison engine, and generation of PLE-ready electronic books such as Registro de Compras, Registro de Ventas, and Diario and Mayor. Using parallel processing, AWS ECS microservices, S3 file storage, and an Aurora database, Creyox cut batch comparison time to under 2 minutes and delivered automated SUNAT-compliant book generation on a scalable, modular architecture.
Peru SUNAT Tax System Integration
- Industry Accounting and Tax Compliance
- Platform Odoo on AWS
-
Country
Peru
- Key Metric Under 2 min (Batch comparison for large datasets)
Background & Business Context
Project Scope & Tech Stack
Core modules, architectural components, and technical boundaries delivered by Creyox Technologies:
Operational & Architectural Obstacles
Meeting strict tax regulations with very large datasets
Massive data volumes & timeouts
Comparing monthly purchase and sales registers against external tax agency logs involved hundreds of thousands of lines, causing standard Odoo processes to freeze or timeout.
Strict SUNAT PLE formatting standards
Peruvian electronic books (PLE 5.1 / 5.2) have exact character-level formatting, validation codes, and checksum requirements where any error causes immediate filing rejection.
Server resource contention
Running heavy comparison queries inside the core Odoo server degraded system performance for everyday accounting users.
Audit trail and secure document archiving
Generated tax files and comparison diffs required immutable, secure cloud storage with instant retrieval for tax auditors.
Structured Implementation & Execution Strategy
Three purpose-built modules on a scalable cloud architecture
Automated data ingestion pipeline
Built high-speed asynchronous parsers capable of ingesting raw text, CSV, and XML billing datasets directly into staged database structures.
AWS-powered parallel comparison engine
Offloaded intensive comparison computations to containerized microservices running on AWS ECS with Aurora DB, executing diff calculations in parallel.
Automated SUNAT PLE electronic book generator
Engineered automated generators for Registro de Compras (8.1, 8.2), Registro de Ventas (14.1), and Libro Diario & Mayor (5.1, 6.1) compliant with SUNAT specifications.
S3-secured document archiving and audit logs
Integrated Amazon S3 for encrypted file storage and generated cryptographic checksums for every exported tax filing package.
Measurable Outcomes & Business Impact
Faster processing, full compliance, and a system built to scale
Key Project Outcomes
- Drastic speed improvement: Reduced multi-hour comparison cycles down to under 2 minutes through parallelized container microservices.
- Zero-error compliance: 100% automated validation against SUNAT structure specifications eliminated filing rejections and penalties.
- Modular, cloud-ready architecture: Decoupled backend processing prevents UI latency for day-to-day accounting users.
- Enterprise security: Immutable cloud storage on AWS S3 ensures compliant document preservation for government tax audits.
- Multi-company capability: Easily handles tax book generation across multiple corporate subsidiaries simultaneously.
A Partnership That Endures
Beyond the implementation: Ongoing cloud and tax evolution
Creyox continues to support the client with infrastructure monitoring, AWS optimization, and rapid adaptations whenever SUNAT introduces new regulatory filing formats.
Explore More Case Studies
Ready to Achieve Similar Results With Odoo ERP?
Whether you need a complex version migration, custom module development, or an end-to-end ERP implementation, Creyox Technologies is ready to turn your operational challenges into a competitive advantage.