SUNAT Electronic Invoicing API for Peru
Complete Laravel-based API for Peruvian electronic invoicing with Greenter integration. Generate XML UBL 2.1, sign documents, and communicate directly with SUNAT.
Laravel 12 + PHP 8.2+
Greenter 5.1 Integration
UBL 2.1 XML Generation
SUNAT Certified
Quick Start
Get your first invoice generated in minutes
Configure your environment
Set up your database connection and SUNAT certificates.Place your SUNAT certificate (.pfx or .pem) in
storage/certificates/ and configure the path in your .env file.Explore by Topic
Learn about the key features and capabilities
Electronic Documents
Create facturas, boletas, credit notes, and debit notes compliant with SUNAT regulations.
SUNAT Integration
Send documents to SUNAT and automatically retrieve CDR responses with validation.
PDF Generation
Generate professional PDF documents with customizable templates for all document types.
Multi-Company Setup
Manage multiple companies and branches with independent configurations and certificates.
XML Signing
Digital signature implementation using SUNAT-certified .pfx or .pem certificates.
Authentication
OAuth2 authentication with Laravel Sanctum for secure API access and user management.
API Resources
Complete REST API documentation for all endpoints
Authentication API
Login, logout, user management, and token-based authentication endpoints.
View endpoints
Electronic Documents
Create, send, and manage invoices, boletas, and credit/debit notes.
View endpoints
Companies & Branches
Manage company profiles, branch configurations, and SUNAT credentials.
View endpoints
Document Consultations
Query SUNAT for document status and validation using CPE services.
View endpoints
Ready to integrate SUNAT invoicing?
Start generating SUNAT-compliant electronic documents in minutes with our complete Laravel API solution.
Start Building Now