GUÍA DE INTEGRACIÓN XML PARA PROVEEDORES – CONECTA EDI
Esta guía te permitirá integrar tu ERP con Conecta EDI en muy poco tiempo. Solo necesitas generar un archivo XML con esta estructura y subirlo a nuestra plataforma.
ESTRUCTURA BÁSICA DEL XML
<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="conectaedi-invoice-1.0">
<Header>...</Header>
<Supplier>...</Supplier>
<Buyer>...</Buyer>
<ShipTo>...</ShipTo> <!-- Opcional -->
<Invoicee>...</Invoicee> <!-- Opcional -->
<DueDates>...</DueDates>
<References>...</References>
<Remarks>...</Remarks> <!-- Opcional -->
<LineItems>...</LineItems>
<TaxSummary>...</TaxSummary>
<Totals>...</Totals>
</Document>
1. HEADER (Cabecera del documento)
Incluye toda la información clave a nivel de cabecera del documento.
Etiqueta <Header>. Contiene:
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| TransactionNumber | String | Número único de la factura (ej: FA-2024-001) | YES |
| TransactionDate | Date (YYYY-MM-DD) | Fecha de emisión de la factura | YES |
| DocumentType | String | Tipo de documento: «INVOIC» para facturas, «DESADV» para albarán «ORDERS» para pedidos, «RECADV» para recepciones de mercancía |
YES |
| Currency | String | Código de moneda: EUR, USD, GBP | YES |
<Header>
<TransactionNumber>FA-2024-001</TransactionNumber> <!-- Número de documento -->
<TransactionDate>2025-11-05</TransactionDate> <!-- Fecha factura (YYYY-MM-DD) -->
<DocumentType>INVOIC</DocumentType> <!-- "INVOIC" para facturas, "DESADV" para albaranes -->
<Currency>EUR</Currency> <!-- EUR, USD, GBP -->
</Header>
Nota: Solo 4 campos, todos obligatorios.
2. INTERLOCUTORES
Todas las funciones de interlocutor comparten los mismos campos. Es el nombre de la etiqueta el que define la función del interlocutor:
<Supplier>, <Buyer>, <ShipTo>, <Invoicee>
Todas las funciones contienen:
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| GLN | String (13 dígitos) | Código GLN de tu empresa (opcional) | YES |
| Name | String | Nombre completo de tu empresa | YES |
| TaxID | String | NIF/CIF español (ej: B12345678) | YES |
| Street | String | Calle y número | YES |
| City | String | Ciudad | YES |
| Province | String | Provincia | NO |
| PostalCode | String | Código postal | YES |
| CountryCode | String (2 letras) | Código país ISO (ES, FR, DE, etc.) | YES |
Supplier (Proveedor)
<Supplier>
<GLN>84123456789</GLN> <!-- Obligatorio: tu código GLN -->
<Name>Empresa Proveedora S.L.</Name> <!-- OBLIGATORIO -->
<TaxID>B12345678</TaxID> <!-- OBLIGATORIO: NIF/CIF -->
<Street>Calle Mayor 123</Street> <!-- Recomendado -->
<City>Madrid</City> <!-- Recomendado -->
<Province>Madrid</Province> <!-- Recomendado -->
<PostalCode>28001</PostalCode> <!-- Recomendado -->
<CountryCode>ES</CountryCode> <!-- OBLIGATORIO: código país 2 letras -->
</Supplier>
Buyer (Comprador)
En general el BUYER siempre va a ser el destinatario de la factura, pero en ocaciones puntuales una empresa A puede ser el BUYER, pero la factura se envía a una empresa B.
<Buyer>
<GLN>4065054000006</GLN> <!-- OBLIGATORIO : GLN del cliente -->
<Name>ALDI SAN ISIDRO SUPERMERCADOS, S.L.</Name> <!-- OBLIGATORIO -->
<TaxID>B53948204</TaxID> <!-- OBLIGATORIO: NIF del cliente -->
<Street>POL.IND.LA GRANADINA, CALLE 3, PARC</Street>
<City>SAN ISIDRO- ALICANTE</City>
<PostalCode>03349</PostalCode>
<CountryCode>ES</CountryCode>
</Buyer>
ShipTo (Destino o punto de entrega de la mercancía )
A menudo los clientes Retail tienen distintos puntos de entrega, distintas plataformas y por ende distintos puntos operacionales asociados a la misma empresa. Por ejemplo, Alcampo Mataró y Alcampo Sant Boi, aunque se facturan al mismo Invoicee (mismo destinatario de la factura) la mercancía se entrega en 2 ubicaciones distintas.
<ShipTo>
<GLN>4065054000006</GLN> <!-- OBLIGATORIO : GLN del cliente -->
<Name>ALDI SAN ISIDRO SUPERMERCADOS, S.L.</Name> <!-- OBLIGATORIO -->
<TaxID>B53948204</TaxID> <!-- OBLIGATORIO: NIF del cliente -->
<Street>POL.IND.LA GRANADINA, CALLE 3, PARC</Street>
<City>SAN ISIDRO- ALICANTE</City>
<PostalCode>03349</PostalCode>
<CountryCode>ES</CountryCode>
</ShipTo>
Invoicee (Destinatario de la factura)
Es el destinatario de la factura a efectos fiscales, y por tanto, pagador.
<Invoicee>
<GLN>4065054000006</GLN> <!-- OBLIGATORIO : GLN del cliente -->
<Name>ALDI SAN ISIDRO SUPERMERCADOS, S.L.</Name> <!-- OBLIGATORIO -->
<TaxID>B53948204</TaxID> <!-- OBLIGATORIO: NIF del cliente -->
<Street>POL.IND.LA GRANADINA, CALLE 3, PARC</Street>
<City>SAN ISIDRO- ALICANTE</City>
<PostalCode>03349</PostalCode>
<CountryCode>ES</CountryCode>
</Invoicee>
3. CONDICIONES DE PAGO – Vencimientos
Etiqueta <DueDates>.
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| DueDate | Elemento repetible | Cada vencimiento de pago | YES (al menos 1) |
Dentro de cada DueDate:
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| Date | Date (YYYY-MM-DD) | Fecha de vencimiento | YES |
| PaymentMethod | String | Método: Transfer, CreditCard, Cash | YES |
| IBAN | String (IBAN formato) | Cuenta bancaria para transferencia | NO |
| Amount | Decimal | Importe a pagar en esta fecha | YES |
<DueDates>
<DueDate>
<Date>2025-11-05</Date> <!-- Fecha vencimiento -->
<PaymentMethod>Transfer</PaymentMethod> <!-- Transfer, CreditCard, Cash -->
<IBAN>ES9121000418450200051332</IBAN> <!-- Opcional: tu IBAN -->
<Amount>423.568</Amount> <!-- Importe a pagar esta fecha -->
</DueDate>
<!-- Puedes añadir más DueDate si hay varios vencimientos -->
</DueDates>
Tip: Si solo hay un vencimiento, solo un
<DueDate>.
4. REFERENCIAS A OTROS DOCUMENTOS
Etiqueta <References>.
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| PurchaseOrderNumber | String | Número del pedido del cliente | YES |
| PurchaseOrderDate | Date (YYYY-MM-DD) | Fecha del pedido | NO |
| DeliveryNoteNumber | String | Número de albarán | YES |
| DeliveryNoteDate | Date (YYYY-MM-DD) | Fecha de albarán | NO |
| OriginalInvoiceNumber | String | Nº factura original (para rectificativas). Obligatorio en rectificativas. |
NO |
| OriginalInvoiceDate | Date (YYYY-MM-DD) | Fecha factura original (para rectificativas) | NO |
<References>
<PurchaseOrderNumber>3800085665</PurchaseOrderNumber> <!-- Número de pedido -->
<PurchaseOrderDate>2025-10-29</PurchaseOrderDate> <!-- Fecha pedido -->
<DeliveryNoteNumber>3/23147</DeliveryNoteNumber> <!-- Número albarán -->
<DeliveryNoteDate>2025-10-29</DeliveryNoteDate> <!-- Fecha albarán -->
<OriginalInvoiceNumber>3/23147</OriginalInvoiceNumber> <!-- Número de factura original en caso de facturas rectificativas-->
<OriginalInvoiceDate>2025-10-29</OriginalInvoiceDate> <!-- Fecha de factura original en caso de facturas rectificativas -->
</References>
Regla simple: Si tienes el número, ponlo. Si no, omítelo. la mayoría de clientes retail los exigen.
5. OBSERVACIONES (Opcional)
Etiqueta <Remarks>
Sirven para incluir mensajes y observaciones en el documento.
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| Remark | String (repetible) | Texto libre para observaciones y comentarios | NO |
<Remarks>
<Remark>Entrega por la mañana antes de las 12:00</Remark>
<Remark>Factura con descuento por pronto pago</Remark>
</Remarks>
LÍNEAS DE PRODUCTO
Etiqueta <LineItems> que lleva anidado múltiples <Item> todas las demás. Cada <Item> contiene:
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| GTIN | String (13-14 dígitos) | Código EAN/GTIN del producto | YES |
| SupplierSKU | String | Tu referencia interna del producto | NO |
| ClientSKU | String | Referencia del producto para el cliente. Obligatorio para algunos clientes como ALDI. | NO |
| Description | String | Descripción del producto | YES |
| Quantity | Decimal (>0) | Cantidad de unidades de venta | YES |
| UnitOfMeasure | String | Unidad de medida facturada (ver tabla CÓDIGOS DE UNIDAD DE MEDIDA MÁS USADOS) | YES |
| ConsumerUnitsPerTradeUnit | Decimal | Unidades de consumo por unidad de venta. Cantidad de UNIDADES/CAJA cuando se factura en cajas. | YES |
| ConsumerUnitOfMeasure | String | Unidad de medida de las unidades de consumo. Generalmente PCE para UNIDADES, y KGM para KILOS. Ver tabla CÓDIGOS DE UNIDAD DE MEDIDA MÁS USADOS. |
YES |
| Measurement | Decimal | Medida alternativa: peso total facturado en KGM o volumen total facturado en LTR. Obligatorio al facturar en KGM. | YES |
| MeasurementUnit | String | Unidad de medida de la medida alternativa: KGM o LTR | YES |
| NetUnitPrice | Decimal (>0) | Precio unitario | YES |
| GrossUnitPrice | Decimal (>0) | Precio unitario antes de descuentos | NO |
| PriceUnitOfMeasure | String | Unidad del precio unitario. Normalmente igual a ConsumerUnitOfMeasure (PCE o KGM) | YES |
| PriceBasis | Decimal | Base de precio: siempre 1. Aunque puede expresarse el precio de 10 UD, 100 UD, 1000 UD, etc. | NO |
| Subtotal | Decimal | Importe línea: Quantity × NetUnitPrice | YES |
1. IDENTIFICACIÓN DEL ARTÍCULO
Campos para identificar los códigos de artículo.
<Item>
<GTIN>24099639</GTIN> <!-- EAN del producto -->
<SupplierSKU>PROD-LIMON-001</SupplierSKU> <!-- referencia -->
<ClientSKU>9963</ClientSKU> <!-- Referencia del cliente -->
<Description>LIMON 6 KGS</Description> <!-- Descripción -->
...
</Item>
2. CANTIDADES DEL ARTÍCULO
<Item>
...
<Quantity>28</Quantity> <!-- Cantidad de unidades de venta -->
<UnitOfMeasure>CT</UnitOfMeasure> <!-- Unidad de venta: CT=caja, PCE=pieza, KGM=kg -->
<ConsumerUnitsPerTradeUnit>10</ConsumerUnitsPerTradeUnit> <!-- Cantidad de unidades por caja -->
<ConsumerUnitOfMeasure>PCE</ConsumerUnitOfMeasure> <!-- Unidad de consumo (PCE, KGM, etc.) -->
...
</Item>
EJEMPLOS PRÁCTICOS DE CANTIDADES
Ejemplo 1: Vendes cajas de n unidades
<Item>
...
<Quantity>100</Quantity> <!-- 100 cajas -->
<UnitOfMeasure>CT</UnitOfMeasure> <!-- Cajas -->
<ConsumerUnitsPerTradeUnit>24</ConsumerUnitsPerTradeUnit> <!-- 24 unidades por caja -->
<ConsumerUnitOfMeasure>PCE</ConsumerUnitOfMeasure> <!-- Unidad de consumo unidades -->
...
</Item>
Ejemplo 2: Vendes cajas de m kilogramos, se factura por kilos y precio por KGM
En general este caso aplica tanto para artículo de peso fijo, como de peso variable. Si se factura en KGM se debe añadir la información de los Kilos facturados
<Item>
<Quantity>40</Quantity> <!-- 40 cajas -->
<UnitOfMeasure>CT</UnitOfMeasure> <!-- CT -->
<ConsumerUnitsPerTradeUnit>25</ConsumerUnitsPerTradeUnit> <!-- 25kg por caja -->
<ConsumerUnitOfMeasure>KGM</ConsumerUnitOfMeasure> <!-- Unidad de consumo kg -->
<Measurement>1000</Measurement> <!-- Peso total facturado: 40 × 25 = 1000kg -->
<MeasurementUnit>KGM</MeasurementUnit> <!-- Unidad de medida: kg -->
</Item>
Ejemplo 3: facturas unidades, independientemente de la cantidad de cajas y unidades/caja (lo más simple)
<Item>
...
<Quantity>150</Quantity> <!-- 150 unidades -->
<UnitOfMeasure>PCE</UnitOfMeasure> <!-- Piezas -->
<!-- No necesitas ConsumerUnitsPerTradeUnit si es 1:1 -->
...
</Item>
3. PRECIOS DE LÍNEA
<Item>
<!-- ... identificación y cantidades ... -->
<!-- PRECIOS -->
<NetUnitPrice>1.72</NetUnitPrice> <!-- Precio por unidad -->
<GrossUnitPrice>1.79</GrossUnitPrice> <!-- Precio por unidad antes de aplicar descuentos -->
<PriceUnitOfMeasure>PCE</PriceUnitOfMeasure> <!-- Unidad del precio -->
<PriceBasis>1</PriceBasis> <!-- Generalmente 1. Permite indicar precio de 10 UD, 100 UD, 1000 UD, etc. -->
<!-- IMPORTE LÍNEA -->
<Subtotal>288.96</Subtotal> <!-- Total de línea antes de impuestos: Cantidad × NetUnitPrice -->
</Item>
Consejo: Si
GrossUnitPrice(precio unitario bruto) no lo tienes, no lo indiques. También puedes indicar mismo precio que NetUnitPrice si no hay descuento.
4. IMPUESTOS POR LÍNEA
Etiqueta <Taxes>. Puede contener múltiples <Tax> anidados:
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| Tax | Elemento repetible | Cada impuesto aplicado a la línea | YES (al menos 1) |
Dentro de cada Tax:
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| TaxType | String | Tipo: «VAT» para IVA | YES |
| TaxRate | Decimal | Porcentaje: 4, 10, 21 | YES |
| TaxBase | Decimal | Base imponible = Subtotal de la línea | YES |
| TaxAmount | Decimal | Importe: TaxBase × (TaxRate/100) | YES |
<Item>
<!-- ... precios y subtotal ... -->
<Taxes>
<Tax>
<TaxType>VAT</TaxType> <!-- Siempre "VAT" para IVA -->
<TaxRate>4</TaxRate> <!-- % IVA: 4, 10, 21 -->
<TaxBase>288.96</TaxBase> <!-- = Subtotal -->
<TaxAmount>11.558</TaxAmount> <!-- TaxBase × (TaxRate/100) -->
</Tax>
</Taxes>
</Item>
Importante: Si un producto tiene varios impuestos (no aplica en España), añade más
<Tax>.
5. DESCUENTOS DE LÍNEA (Opcional)
Etiqueta <Discounts>. Puede tener múltiples <Discount> anidados.
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| Discount | Elemento repetible | Cada descuento aplicado a la línea | NO |
Dentro de cada Discount:
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| DiscountType | String | Tipo: Promocional, Cantidad, Otro | NO |
| DiscountPercentage | Decimal | Porcentaje de descuento | NO |
| DiscountAmount | Decimal | Importe descontado | NO |
<Discounts>
<Discount>
<DiscountType>Promocional</DiscountType> <!-- Texto libre -->
<DiscountPercentage>5</DiscountPercentage><!-- % descuento -->
<DiscountAmount>14.45</DiscountAmount> <!-- Importe descontado -->
</Discount>
</Discounts>
RESUMEN DE IMPORTES
1. TaxSummary (Resumen de impuestos)
Etiqueta <TaxSummary>. Puede contener múltiples <Tax> anidados.
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| Tax | Elemento repetible | Resumen por cada tipo de impuesto | YES (al menos 1) |
Dentro de cada Tax:
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| TaxType | String | Tipo: «VAT» para IVA | YES |
| TaxPercentage | Decimal | Porcentaje: 4, 10, 21 | YES |
| TaxableBase | Decimal | Suma de Subtotal de productos con este % | YES |
| TaxAmount | Decimal | Importe: TaxableBase × (TaxPercentage/100) | YES |
<TaxSummary>
<!-- Un Tax por cada tipo de IVA en la factura -->
<Tax>
<TaxType>VAT</TaxType>
<TaxPercentage>4</TaxPercentage> <!-- % IVA -->
<TaxableBase>288.96</TaxableBase> <!-- Suma de Subtotal de productos al 4% -->
<TaxAmount>11.558</TaxAmount> <!-- TaxableBase × 4% -->
</Tax>
<Tax>
<TaxType>VAT</TaxType>
<TaxPercentage>10</TaxPercentage>
<TaxableBase>125.00</TaxableBase> <!-- Suma de Subtotal de productos al 10% -->
<TaxAmount>12.50</TaxAmount>
</Tax>
</TaxSummary>
2. Totals (Totales del documento)
Etiqueta <Totals>
| Nombre | Tipo | Descripción | Mandatory |
|---|---|---|---|
| Subtotal | Decimal | Suma de todos los Subtotal de líneas | YES |
| Discounts | Decimal | Suma de todos los descuentos | YES (puede ser 0) |
| Tax | Decimal | Suma de todos los TaxAmount del TaxSummary | YES |
| Total | Decimal | Total a pagar: Subtotal – Discounts + Tax | YES |
<Totals>
<Subtotal>413.96</Subtotal> <!-- Suma de todos los Subtotal -->
<Discounts>14.45</Discounts> <!-- Suma de todos los descuentos globales de la factura -->
<Tax>24.058</Tax> <!-- Suma de TaxSummary.TaxAmount -->
<Total>423.568</Total> <!-- Subtotal - Discounts + Tax -->
</Totals>
Fórmula de validación:
Total = Subtotal - Discounts + Tax
VALIDACIONES AUTOMÁTICAS QUE HACEMOS
-
- NIF válido formato español (1 letra + 8 números)
-
-
- Fechas en formato YYYY-MM-DD
-
- Cálculos coherentes:
Subtotal = Quantity × NetUnitPrice
- Cálculos coherentes:
-
- Totales cuadran:
Total = Subtotal - Discounts + Tax
- Totales cuadran:
XML de ejemplo Completo
XML de prueba
<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="conectaedi-invoice-1.0">
<!-- HEADER CON DATOS GENERALES -->
<Header>
<TransactionNumber>FA-2024-001</TransactionNumber>
<TransactionDate>2025-11-05</TransactionDate>
<DocumentType>INVOIC</DocumentType>
<Currency>EUR</Currency>
</Header>
<!-- INTERLOCUTORES-->
<!-- Proveedor-->
<Supplier>
<GLN>84123456789</GLN>
<Name>Mi Empresa Proveedora S.L.</Name>
<TaxID>B12345678</TaxID>
<Street>Dirección postal</Street>
<City>Barcelona</City>
<Province>Barcelona</Province>
<PostalCode>30506</PostalCode>
<CountryCode>ES</CountryCode>
</Supplier>
<!-- Comprador-->
<Buyer>
<GLN>4065054000006</GLN>
<Name>ALDI SAN ISIDRO SUPERMERCADOS, S.L.</Name>
<TaxID>B53948204</TaxID>
<Street>POL.IND.LA GRANADINA, CALLE 3, PARC</Street>
<City>SAN ISIDRO- ALICANTE</City>
<PostalCode>03349</PostalCode>
<CountryCode>ES</CountryCode>
</Buyer>
<!-- Punto de entrega-->
<ShipTo>
<GLN>4065054000006</GLN>
<Name>ALDI SAN ISIDRO SUPERMERCADOS, S.L.</Name>
<Street>POL.IND.LA GRANADINA, CALLE 3, PARC</Street>
<City>SAN ISIDRO- ALICANTE</City>
<PostalCode>03349</PostalCode>
<CountryCode>ES</CountryCode>
</ShipTo>
<!-- A quién se factura-->
<Invoicee>
<GLN>4065054000006</GLN>
<Name>ALDI SAN ISIDRO SUPERMERCADOS, S.L.</Name>
<Street>POL.IND.LA GRANADINA, CALLE 3, PARC</Street>
<City>SAN ISIDRO- ALICANTE</City>
<PostalCode>03349</PostalCode>
<CountryCode>ES</CountryCode>
</Invoicee>
<!-- CONDICIONES DE PAGO -->
<DueDates>
<DueDate>
<Date>2025-11-05</Date>
<PaymentMethod>Transfer</PaymentMethod>
<IBAN>ES9121000418450200051332</IBAN>
<Amount>626.518</Amount>
</DueDate>
</DueDates>
<!-- REFERENCIAS DEL DOCUMENTO -->
<References>
<PurchaseOrderNumber>3800085665</PurchaseOrderNumber>
<PurchaseOrderDate>2025-10-29</PurchaseOrderDate>
<DeliveryNoteNumber>3/23147</DeliveryNoteNumber>
<DeliveryNoteDate>2025-10-29</DeliveryNoteDate>
</References>
<!-- OBSERVACIONES / REMARKS -->
<Remarks>
<Remark>Factura correspondiente al pedido 3800085665</Remark>
</Remarks>
<!-- LÍNEAS DE PRODUCTOS (2 LÍNEAS) -->
<LineItems>
<!-- LÍNEA 1: Producto con IVA 4% -->
<Item>
<!-- IDENTIFICACIÓN DEL PRODUCTO-->
<GTIN>24099639</GTIN>
<SupplierSKU>PROD-LIMON-001</SupplierSKU>
<ClientSKU>9963</ClientSKU>
<Description>LIMON 6 KGS</Description>
<!-- CANTIDADES-->
<Quantity>28</Quantity>
<UnitOfMeasure>CT</UnitOfMeasure>
<ConsumerUnitsPerTradeUnit>10</ConsumerUnitsPerTradeUnit>
<ConsumerUnitOfMeasure>PCE</ConsumerUnitOfMeasure>
<!-- PRECIOS-->
<NetUnitPrice>1.72</NetUnitPrice>
<GrossUnitPrice>1.79</GrossUnitPrice>
<PriceUnitOfMeasure>PCE</PriceUnitOfMeasure>
<PriceBasis>1</PriceBasis>
<!-- IMPORTE LÍNEA -->
<Subtotal>288.96</Subtotal>
<!-- IMPUESTOS DE LINEA -->
<Taxes>
<Tax>
<TaxType>VAT</TaxType>
<TaxRate>4</TaxRate>
<TaxBase>288.96</TaxBase>
<TaxAmount>11.558</TaxAmount>
</Tax>
</Taxes>
<!-- DESCUENTOS -->
<Discounts>
<Discount>
<DiscountType>Descuento</DiscountType>
<DiscountPercentage>5</DiscountPercentage>
<DiscountAmount>14.45</DiscountAmount>
</Discount>
</Discounts>
</Item>
<!-- LÍNEA 2: Producto con IVA 10% -->
<Item>
<!-- IDENTIFICACIÓN DEL PRODUCTO-->
<GTIN>24098588</GTIN>
<SupplierSKU>PROD-NARANJA-001</SupplierSKU>
<ClientSKU>9858</ClientSKU>
<Description>NARANJA MALLA 5KG</Description>
<!-- CANTIDADES-->
<Quantity>50</Quantity>
<UnitOfMeasure>CT</UnitOfMeasure>
<ConsumerUnitsPerTradeUnit>10</ConsumerUnitsPerTradeUnit>
<ConsumerUnitOfMeasure>KGM</ConsumerUnitOfMeasure>
<Measurement>500</Measurement>
<MeasurementUnit>KGM</MeasurementUnit>
<!-- PRECIOS-->
<NetUnitPrice>2.50</NetUnitPrice>
<GrossUnitPrice>2.75</GrossUnitPrice>
<PriceUnitOfMeasure>PCE</PriceUnitOfMeasure>
<PriceBasis>1</PriceBasis>
<!-- IMPORTE LÍNEA -->
<Subtotal>125.00</Subtotal>
<!-- IMPUESTOS DE LINEA -->
<Taxes>
<Tax>
<TaxType>VAT</TaxType>
<TaxRate>10</TaxRate>
<TaxBase>125.00</TaxBase>
<TaxAmount>12.50</TaxAmount>
</Tax>
</Taxes>
<!-- DESCUENTOS -->
<Discounts>
<!-- Sin descuentos -->
</Discounts>
</Item>
</LineItems>
<!-- RESUMEN DE IMPUESTOS (COHERENTE) -->
<TaxSummary>
<!-- IVA 4% sobre productos al 4% solamente -->
<Tax>
<TaxType>VAT</TaxType>
<TaxPercentage>4</TaxPercentage>
<TaxableBase>288.96</TaxableBase>
<TaxAmount>11.558</TaxAmount>
</Tax>
<!-- IVA 10% sobre productos al 10% solamente -->
<Tax>
<TaxType>VAT</TaxType>
<TaxPercentage>10</TaxPercentage>
<TaxableBase>125.00</TaxableBase>
<TaxAmount>12.50</TaxAmount>
</Tax>
</TaxSummary>
<!-- RESUMEN DE TOTALES (COHERENTE) -->
<Totals>
<Subtotal>413.96</Subtotal>
<Discounts>14.45</Discounts>
<Tax>24.058</Tax>
<Total>423.568</Total>
</Totals>
</Document>
CÓDIGOS DE UNIDAD DE MEDIDA MÁS USADOS
| Código | Significado | Uso típico |
|---|---|---|
PCE |
Pieza | Unidades sueltas |
CT |
Caja | Cajas, packs |
KGM |
Kilogramo | Productos a granel |
LTR |
Litro | Líquidos |
MTR |
Metro | Telas, cables |
PF |
Pallet | Pallet |