Quick Start Guide
This guide will walk you through creating your first electronic invoice (Factura Afecta) using LibreDTE Core.This example demonstrates basic usage. In production, you’ll need valid SII certificates, authorized folios, and proper configuration.
Basic Setup
Create Your First Invoice
Here’s a complete example of creating an electronic invoice:Understanding Document Types
LibreDTE Core supports all Chilean tax document types:Facturas
- 33: Factura Afecta (with VAT)
- 34: Factura Exenta (exempt)
- 110: Factura de Exportación
- 46: Factura de Compra
Boletas
- 39: Boleta Afecta (with VAT)
- 41: Boleta Exenta
Notas
- 56: Nota de Débito
- 61: Nota de Crédito
- 111: Nota de Crédito Exportación
- 112: Nota de Débito Exportación
Others
- 52: Guía de Despacho
- 43: Liquidación Factura
Working with Components
The Billing Package provides several components for different operations:Trading Parties Component
Manage issuers and recipients:Document Component
Create, validate, and manage documents:Integration Component
Interact with SII webservices:Environment Configuration
LibreDTE Core supports multiple environments:Complete Workflow
A typical electronic invoicing workflow:Next Steps
Document Types
Learn about all supported document types
SII Integration
Deep dive into SII webservice integration
Digital Signatures
Configure and use digital certificates
API Reference
Explore the complete API documentation
Common Patterns
Accessing Services via DI
Accessing Services via DI
Instead of using singletons, inject services in your application:
Handling Errors
Handling Errors
Always wrap SII operations in try-catch blocks:
Batch Processing
Batch Processing
Process multiple documents efficiently: