UBL Invoice — reverse charge (VAT category AE)
Una factura válida con inversión del sujeto pasivo en UBL: un proveedor francés factura servicios a una empresa alemana, el IVA lo liquida el cliente, por lo que el tipo es 0 % y no se repercute IVA. La categoría AE trae cuatro reglas: los dos NIF-IVA (BR-AE-02, BR-AE-03), el tipo 0 % (BR-AE-05), una cuota de 0,00 (BR-AE-09) y un motivo de exención (BR-AE-10), aquí VATEX-EU-AE y el texto «Reverse charge».
UBL 2.1 Invoice — Válido
Una factura válida con inversión del sujeto pasivo en UBL: un proveedor francés factura servicios a una empresa alemana, el IVA lo liquida el cliente, por lo que el tipo es 0 % y no se repercute IVA. La categoría AE trae cuatro reglas: los dos NIF-IVA (BR-AE-02, BR-AE-03), el tipo 0 % (BR-AE-05), una cuota de 0,00 (BR-AE-09) y un motivo de exención (BR-AE-10), aquí VATEX-EU-AE y el texto «Reverse charge».
Lo que muestra este fichero
Una factura válida con inversión del sujeto pasivo en UBL: un proveedor francés factura servicios a una empresa alemana, el IVA lo liquida el cliente, por lo que el tipo es 0 % y no se repercute IVA. La categoría AE trae cuatro reglas: los dos NIF-IVA (BR-AE-02, BR-AE-03), el tipo 0 % (BR-AE-05), una cuota de 0,00 (BR-AE-09) y un motivo de exención (BR-AE-10), aquí VATEX-EU-AE y el texto «Reverse charge».
| Transacciones | 2 |
|---|---|
| Total | 2500,00 € |
Todas las partes, IBAN e importes siguientes son ficticios. Los IBAN son estructuralmente válidos —superan el mod-97— pero no corresponden a ninguna cuenta real.
Contenido del fichero
<?xml version="1.0" encoding="UTF-8"?>
<!--
ValidateFin sample file — UBL invoice, Peppol BIS Billing 3.0 (EN 16931).
REVERSE CHARGE (VAT category AE): a French supplier invoices services to a German
business; VAT is accounted for by the customer, so the rate is 0 % and no VAT is
charged. BR-AE-02 requires BOTH VAT identifiers, BR-AE-05 the 0 % rate, BR-AE-09
a VAT category tax amount of 0.00 and BR-AE-10 an exemption reason.
Expected validation result: VALID — 2 lines, 2 500.00 EUR, VAT 0.00 EUR.
All parties and account numbers are fictitious.
Reference page: https://validatefin.com/en/resources/samples/ubl-invoice-reverse-charge
License: CC-BY-4.0
-->
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<cbc:ID>ATL-2026-0157</cbc:ID>
<cbc:IssueDate>2026-03-04</cbc:IssueDate>
<cbc:DueDate>2026-04-03</cbc:DueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:Note>Reverse charge — VAT to be accounted for by the customer (Article 196 of Council Directive 2006/112/EC).</cbc:Note>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:BuyerReference>PO-2026-3310</cbc:BuyerReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="9957">FR40303265045</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>Atlas Consulting SAS</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>18 rue de la Boetie</cbc:StreetName>
<cbc:CityName>Paris</cbc:CityName>
<cbc:PostalZone>75008</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>FR40303265045</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Atlas Consulting SAS</cbc:RegistrationName>
<cbc:CompanyID>303265045</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:Name>Service facturation</cbc:Name>
<cbc:Telephone>+33 1 55 00 12 12</cbc:Telephone>
<cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="9930">DE987654321</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>Kessler Handel GmbH</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Marktplatz 3</cbc:StreetName>
<cbc:CityName>Leipzig</cbc:CityName>
<cbc:PostalZone>04109</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>DE987654321</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Kessler Handel GmbH</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:PaymentMeans>
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
<cbc:PaymentID>ATL-2026-0157</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>FR7630006000011234567890189</cbc:ID>
<cbc:Name>Atlas Consulting SAS</cbc:Name>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:Note>Net 30 days.</cbc:Note>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">2500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>AE</cbc:ID>
<cbc:Percent>0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-AE</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Reverse charge</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">2500.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">2500.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">2500.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">2500.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="DAY">10</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">2000.00</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Description>Supply chain audit, on-site engagement</cbc:Description>
<cbc:Name>Consulting services</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>AE</cbc:ID>
<cbc:Percent>0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">200.00</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID>
<cbc:InvoicedQuantity unitCode="HUR">10</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">500.00</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Description>Remote follow-up workshops</cbc:Description>
<cbc:Name>Workshop hours</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>AE</cbc:ID>
<cbc:Percent>0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">50.00</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>160 / 162 lines shown — the complete file is in the download above.
Cómo sabemos que estos resultados se sostienen
Cada fichero de esta biblioteca pasa por el propio validador del sitio en cada build. El resultado esperado indicado arriba lo verifica un test automatizado: si un fichero dejara de coincidir con lo que afirma esta página, el build fallaría. Dos fixtures heredadas se repararon así antes de publicarse: tres IBAN no superaban el mod-97 y varios nombres usaban caracteres fuera del juego SEPA básico.
Factura UBL (Peppol BIS 3.0)
- UBL Invoice — valid Peppol BIS 3.0
- UBL Credit Note — valid Peppol BIS 3.0
- UBL Invoice — BR-CO-10 violation
- UBL Invoice — malformed seller VAT identifier
- UBL Invoice — allowances and charges, line and document level
- UBL Invoice — VAT exempt (category E) with exemption reason
- UBL Invoice — intra-Community supply (VAT category K)
- UBL Invoice — two VAT rates, one breakdown per rate
- UBL Invoice — BR-CO-10, line sum does not equal BT-106
- UBL Invoice — exempt VAT without an exemption reason (BR-E-10) and a wrong exempt base (BR-E-08)
- UBL Invoice — BR-CO-17, VAT amount does not equal base x rate