Overview
The Details types represent the line items in an invoice, including product/service information, quantities, prices, discounts, and applicable taxes.Details
Container for all invoice line items.Array of invoice line items. Each item represents a product or service sold
Detail
Individual line item with product/service information.Fields
Primary product/service code. This is typically your internal SKU or product identifier
Auxiliary product code. Can be a barcode, alternative SKU, or secondary identifier
Product or service description. This is the text that appears on the invoice
Unit of measure (e.g.,
"UND" for units, "KG" for kilograms, "M" for meters)Quantity. Format with up to 6 decimal places (e.g.,
"50.000000")Unit price. Format with up to 6 decimal places (e.g.,
"10.500000")Price without subsidy (for subsidized products)
Discount amount for this line item. Use
"0.00" if no discountTotal price before taxes for this line item. Formula:
(cantidad × precioUnitario) - descuentoAdditional custom details for this line item. See AdditionalDetails
AdditionalDetail
Custom key-value pair for additional line item information.Name/key of the additional detail field (e.g.,
"Color", "Size", "Warranty")Value of the additional detail field (e.g.,
"Red", "Large", "1 year")AdditionalDetails
Container for additional line item details.Array of additional detail key-value pairs
Tax
Individual tax applied to a line item.Tax code:
"2"- IVA (VAT)"3"- ICE (Special consumption tax)"5"- IRBPNR (Tax on non-renewable natural resources)
Tax rate code. For IVA:
"0"- 0% IVA"2"- 12% IVA"3"- 14% IVA"6"- No Objeto de Impuesto (Not subject to tax)"7"- Exento de IVA (Exempt from VAT)"8"- IVA diferenciado (Differentiated VAT)
Tax rate percentage (e.g.,
"12" for 12% VAT, "0" for 0% VAT)Taxable base amount (usually the
precioTotalSinImpuesto)Tax amount. Formula:
baseImponible × (tarifa / 100)Taxes
Container for all taxes on a line item.Array of taxes. Most line items will have at least one tax (IVA). Some items may have multiple taxes (e.g., IVA + ICE)
Usage Example
Notes
- Each line item must have at least one tax defined in the
impuestosarray - The
precioTotalSinImpuestoshould equal(cantidad × precioUnitario) - descuento - Quantity and unit price support up to 6 decimal places for precision
- Additional details are optional but useful for providing extra product information
- The sum of all
precioTotalSinImpuestovalues should equal thetotalSinImpuestosin InvoiceInfo