How to Fix KoSIT Error BR-DE-16: VAT Category Code Compliance
KoSIT 1.6.3 rejects invoices using VAT category codes S, Z, E, AE, K, G, L, or M if BT-31, BT-32, or BG-11 are missing. Add a valid VAT or tax registration ID to resolve the error.
1. Why KoSIT Validator v1.6.3 Rejects This Invoice
The official KoSIT rule BR-DE-16 mandates that if any VAT category code from the specified list is used in the invoice, the seller must provide at least one of the following: VAT identifier (BT-31), tax registration identifier (BT-32), or a tax representative (BG-11). The XPath test checks for the presence of these elements when any of the restricted VAT codes are used. This applies to both CII and UBL formats in XRechnung 3.0.2. Failure to include any of these identifiers results in a fatal error.
/rsm:CrossIndustryInvoicenot((rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:TypeCode = 'VAT' and rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode = ('S', 'Z', 'E', 'AE', 'K', 'G', 'L', 'M')) or (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax = 'VAT' and rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax/ram:CategoryCode = ('S', 'Z', 'E', 'AE', 'K', 'G', 'L', 'M')) or (rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:TypeCode = 'VAT' and rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode = ('S', 'Z', 'E', 'AE', 'K', 'G', 'L', 'M'))) or ((rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[normalize-space(@schemeID)='VA' or normalize-space(@schemeID)='FC'][boolean(normalize-space(.))], rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty))/ubl:Invoice | /cn:CreditNote2. KoSIT-Verified XML Example: Broken vs. Fixed
<ram:CompleteNumber>+49 89 12345670</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
<ram:EmailURIUniversalCommunication>
<ram:URIID>buchhaltung@nordwerk-demo.de</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>80539</ram:PostcodeCode>
<ram:LineOne>Maximilianstraße 42</ram:LineOne>
<ram:URIID schemeID="EM">buchhaltung@nordwerk-demo.de</ram:URIID>
</ram:URIUniversalCommunication>
<ram:SpecifiedTaxRegistration>
<ram:ID schemeID="VA">DE298765432</ram:ID>
</ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration>
<ram:ID schemeID="FC">143/123/45678</ram:ID>
</ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
The broken XML snippet lacks the required tax registration elements. The fixed XML includes a VAT identifier with schemeID='VA' and a tax registration with schemeID='FC', satisfying BR-DE-16 and passing the KoSIT Validator v1.6.3 with no errors.
3. Step-by-Step Fix Checklist
- Step 1: Inspect the exact element/field: Check if VAT category codes S, Z, E, AE, K, G, L, or M are used in the invoice.
- Step 2: Apply the EN 16931 / XRechnung correction: Add a VAT identifier (BT-31) or tax registration (BT-32) with the correct schemeID ('VA' or 'FC') to the SellerTradeParty.
- Step 3: Re-validate with Beleq's free KoSIT v1.6.3 validator: Upload the corrected invoice to ensure it passes with no errors.
4. Common Shopify Store & DATEV Workflow Trigger
German Shopify B2B merchants often embed VAT or tax registration numbers in PDF footers but omit them in the structured XML. This leads to BR-DE-16 errors when using restricted VAT codes. Beleq ensures that these identifiers are correctly included in the XML, preventing rejection by DATEV and other accounting systems.
5. Frequently Asked Questions
What happens if I don't fix BR-DE-16?
Your invoice will be rejected by the KoSIT Validator v1.6.3 and cannot be accepted by public authorities or accounting systems like DATEV.
Does this rule apply to ZUGFeRD as well?
Yes, ZUGFeRD 2.3 (Factur-X) is based on the same EN 16931 standard, so BR-DE-16 applies equally to both XRechnung and ZUGFeRD formats.
Related KoSIT Error Codes
Check your hybrid ZUGFeRD PDF or XRechnung XML in under 1 second against the official German KoSIT Validator v1.6.3 — 100% RAM-based on Frankfurt servers with zero retention and no registration.
Open Free KoSIT v1.6.3 Validator → See Beleq for Shopify