Document Categories
The library provides support for the following document types, each identified by an official SII document code:Factura Afecta
Code 33 - Electronic invoice (taxable)
Factura Exenta
Code 34 - Electronic invoice (tax-exempt)
Boleta Afecta
Code 39 - Electronic receipt (taxable)
Boleta Exenta
Code 41 - Electronic receipt (tax-exempt)
Liquidación Factura
Code 43 - Electronic invoice settlement
Factura de Compra
Code 46 - Electronic purchase invoice
Guía de Despacho
Code 52 - Electronic delivery guide
Nota de Débito
Code 56 - Electronic debit note
Nota de Crédito
Code 61 - Electronic credit note
Factura Exportación
Code 110 - Electronic export invoice
Nota Débito Exportación
Code 111 - Electronic export debit note
Nota Crédito Exportación
Code 112 - Electronic export credit note
Document Code Enum
All document types are defined in theCodigoDocumento enum:
Each document type has its own interface in the
Contract\Document namespace, ensuring type safety and clear separation of concerns.Common Properties
All document types share common functionality through the baseDocumentInterface:
- Document code (código)
- Document name (nombre)
- Short name (nombre corto)
- Alias for programmatic access
- Associated PHP interface