Overview
The electronic invoice system uses a structured JSON format calledDocumentoElectronico (Electronic Document). This schema encompasses all necessary data for Venezuelan tax-compliant invoicing, including buyer/seller information, line items, totals, and multi-currency support.
Root Structure
Every invoice JSON file contains a single root object:Root container for all invoice data
Encabezado (Header Section)
The header contains five main subsections: document identification, buyer information, seller information (optional), totals in primary currency (BSD), and totals in secondary currency (USD).IdentificacionDocumento
Document identification and metadata
Comprador (Buyer Information)
Customer/buyer information
Totales (Primary Currency Totals)
Totals in primary currency (BSD - Bolívares)
TotalesOtraMoneda (Secondary Currency Totals)
Totals in secondary currency (USD - US Dollars)
DetallesItems (Line Items)
TheDetallesItems array contains one or more line items representing the products or services being invoiced.
Array of invoice line items
Example Line Item
InfoAdicional (Additional Information)
TheInfoAdicional array contains custom key-value pairs for business-specific metadata. In this system, it’s used to track service contracts and usage data.
Array of additional metadata fields
Standard Fields Used
- Contrato: Service contract ID
- Mes1-Mes6: Month names (Spanish abbreviations)
- Cmes1-Cmes6: Consumption/usage data per month (in MB or similar units)
- Promedio: Average usage across all months
Complete Example
Here’s a complete invoice structure from the system:View Complete Invoice JSON
View Complete Invoice JSON