Beleq / Validator / KoSIT Error Codes / BR-CO-09
FATAL · BR-CO-09 EN 16931 (v1.3.16) Verified with KoSIT v1.6.3 (0-Error Fix) BT-31BT-48BT-63

How to Fix KoSIT Error BR-CO-09: Missing ISO Country Prefix on VAT IDs

KoSIT 1.6.3 rejects invoices where VAT identifiers (BT-31, BT-48, BT-63) lack the ISO 3166-1 alpha-2 country code prefix. Add 'DE', 'AT', 'FR', or 'EL' to the VAT ID to fix this fatal error.

Official KoSIT v1.6.3 Schematron Message (EN16931 XRechnung (CII))
[BR-CO-09]-The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified. Nevertheless, Greece may use the prefix ‘EL’.

1. Why KoSIT Validator v1.6.3 Rejects This Invoice

EN 16931 mandates that VAT identifiers must include a two-letter ISO country code prefix to identify the issuing country. The XPath test ensures that the VAT ID (schemeID='VA') contains a valid ISO prefix. In UBL and CII, the absence of this prefix triggers BR-CO-09. Greece is an exception and may use 'EL' as the prefix. The XPath test checks for the presence of a valid ISO code in the VAT ID field.

CII Context: //ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA']
CII Schematron Test: contains(' 1A AD AE AF AG AI AL AM AN AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BL BJ BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH EL ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ', concat(' ', substring(.,1,2), ' '))
UBL Context: //cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']

2. KoSIT-Verified XML Example: Broken vs. Fixed

✕ Invalid CII XML — Rejected by KoSIT 1.6.3 (BR-CO-09)
</ram:URIUniversalCommunication>
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="VA">298765432</ram:ID>
</ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="FC">143/123/45678</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Fixed CII XML — Passed KoSIT 1.6.3 (0 Errors)
</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>

In the broken XML, the VAT ID '298765432' lacks the 'DE' prefix, violating BR-CO-09. The fixed XML adds 'DE298765432', which includes the ISO code 'DE', making it compliant with EN 16931 and passing the KoSIT v1.6.3 validation.

3. Step-by-Step Fix Checklist

  1. Step 1: Inspect the VAT ID fields (BT-31, BT-48, BT-63) in the invoice XML for missing ISO 3166-1 alpha-2 prefix.
  2. Step 2: Add the correct two-letter country code (e.g., 'DE', 'AT', 'FR', 'EL') as a prefix to the VAT ID value.
  3. Step 3: Re-validate the invoice using Beleq's free KoSIT v1.6.3 validator to confirm BR-CO-09 is resolved.

4. Common Shopify Store & DATEV Workflow Trigger

In German Shopify B2B stores, buyers often enter VAT numbers without the ISO country code, such as '298765432' instead of 'DE298765432'. This leads to failed DATEV EXTF imports and KoSIT validation errors. Beleq’s integration with Shopify ensures VAT IDs are correctly formatted and validated using the official KoSIT v1.6.3 validator, preventing BR-CO-09 errors before the invoice is sent.

Guide (DE): Shopify E-Invoicing & EU VAT IDs Without Plus →

5. Frequently Asked Questions

Can I use the ISO code 'EL' for VAT IDs from Greece?

Yes, Greece is an exception and may use 'EL' as the ISO prefix for VAT IDs, as specified in BR-CO-09.

Does BR-CO-09 apply to ZUGFeRD 2.3 as well as XRechnung 3.0?

Yes, BR-CO-09 applies to both ZUGFeRD 2.3 (Factur-X) and XRechnung 3.0, as they are both based on EN 16931.

Related KoSIT Error Codes

Validate your ZUGFeRD PDF or XRechnung XML free online

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