General Questions
What is LibreDTE Core?
What is LibreDTE Core?
- Electronic invoice generation (DTE)
- Digital signature and stamping (timbraje)
- SII webservice integration
- Document validation and rendering
- CAF (folio) management
- Exchange document handling
What license does LibreDTE Core use?
What license does LibreDTE Core use?
- You can use, study, modify, and distribute the library
- If you use LibreDTE Core in your software, you must release your software’s source code under AGPL
- If you modify LibreDTE Core, you must release your changes under AGPL
- You must publicly reference the original LibreDTE project and author
Can I use LibreDTE Core in a commercial project?
Can I use LibreDTE Core in a commercial project?
- Your entire application must be released as open source under AGPL license
- You must make your source code publicly available
- You must credit LibreDTE in your application
- You must comply with all terms and conditions
What PHP version do I need?
What PHP version do I need?
- ext-curl
- ext-json
- ext-mbstring
- ext-openssl
- ext-soap
Technical Questions
How do I generate electronic invoices?
How do I generate electronic invoices?
- Initialize the application
- Create emisor and receptor
- Load CAF for the document type
- Load digital certificate
- Build the document with data
- Generate and validate XML
- Render to PDF if needed
What is a CAF and where do I get one?
What is a CAF and where do I get one?
- Log in to SII website with your digital certificate
- Go to “Facturación Electrónica” section
- Request a folio range for your document type
- Download the CAF XML file
How do I authenticate with SII?
How do I authenticate with SII?
What document types are supported?
What document types are supported?
- 33: Factura Electrónica
- 34: Factura No Afecta o Exenta Electrónica
- 39: Boleta Electrónica
- 41: Boleta Exenta Electrónica
- 56: Nota de Débito Electrónica
- 61: Nota de Crédito Electrónica
- 43: Liquidación Factura Electrónica
- 46: Factura de Compra Electrónica
- 52: Guía de Despacho Electrónica
- 110: Factura de Exportación Electrónica
- 111: Nota de Débito de Exportación Electrónica
- 112: Nota de Crédito de Exportación Electrónica
Can I test without sending to SII?
Can I test without sending to SII?
-
Fake CAFs: Generate test folios without SII
-
Fake Certificates: Create test certificates
-
Certification Environment: Test with real SII certification environment
-
XML Validation: Validate without sending
How do I render documents to PDF?
How do I render documents to PDF?
What's the difference between certification and production environments?
What's the difference between certification and production environments?
SiiAmbiente::CERTIFICACION):- For testing and development
- Documents are not legally valid
- Free to use
- Use to test integration before going live
SiiAmbiente::PRODUCCION):- For real invoicing
- Documents are legally valid
- Used for actual business transactions
- Requires authorization from SII
Development Questions
How do I run the test suite?
How do I run the test suite?
How can I contribute to LibreDTE Core?
How can I contribute to LibreDTE Core?
- Code style guidelines
- How to submit pull requests
- Testing requirements
- Licensing requirements
Where can I find code examples?
Where can I find code examples?
- Examples Page - Common use cases with code
- API Reference - Detailed method documentation
- Test Files - Real test cases
- GitHub repository - Working implementation examples
How do I handle errors and exceptions?
How do I handle errors and exceptions?
Troubleshooting
Why is my certificate not loading?
Why is my certificate not loading?
- Wrong password - Verify certificate password
- File permissions - Ensure PHP can read the file
- File path - Use absolute paths
- OpenSSL extension - Verify ext-openssl is installed
Why is CAF validation failing?
Why is CAF validation failing?
- RUT mismatch - CAF RUT must match emisor RUT
- Folio range - Requested folio must be within CAF range
- Document type - CAF type must match document type
- File corruption - Re-download CAF from SII
Why can't I connect to SII?
Why can't I connect to SII?
- Network issues - Check firewall and internet connection
- Certificate problems - Verify certificate is valid
- SII maintenance - Check SII website status
- SOAP extension - Ensure ext-soap is installed
Additional Resources
Where can I get more help?
Where can I get more help?
- Troubleshooting Guide - Common issues and solutions
- GitHub Issues - Report bugs or ask questions
- LibreDTE Website - Project information
- SII Documentation - Official electronic invoicing documentation
How do I stay updated?
How do I stay updated?
- Watch the GitHub repository
- Check release notes
- Follow LibreDTE on social media
- Subscribe to project announcements