HomeError code lexicon › BR-CL-15
BR-CL-15 Field BT-159 Code list rules (BR-CL)

Fix BR-CL-15: Further country code not ISO 3166-1

[BR-CL-15]-Country codes in an invoice MUST be coded using ISO code list 3166-1

BR-CL-15 in your own invoice? Upload the file and find every error in seconds.

What does BR-CL-15 mean?

Same as BR-CL-14, but for the remaining addresses (buyer, deliver to address): a two-letter ISO 3166-1 code instead of a country name.

Common causes of BR-CL-15

How to fix BR-CL-15

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-159 along this XPath://ram:SpecifiedTradeProduct/ram:OriginTradeCountry/ram:ID
  2. Apply the fix. Code the item country of origin (BT-159) with an alpha-2 code from ISO 3166-1, e.g. 'DE' (Germany), 'FR' (France), 'IT' (Italy), 'CN' (China), 'PL' (Poland). No spelled-out country name, no alpha-3 code.
  3. Validate again. Save the file and validate it again to check that BR-CL-15 is no longer reported.
Concrete fix

Code the item country of origin (BT-159) with an alpha-2 code from ISO 3166-1, e.g. 'DE' (Germany), 'FR' (France), 'IT' (Italy), 'CN' (China), 'PL' (Poland). No spelled-out country name, no alpha-3 code.

XPath//ram:SpecifiedTradeProduct/ram:OriginTradeCountry/ram:ID

Before / after: the XML example

This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).

Wrong
<ram:SpecifiedTradeProduct>
  <ram:OriginTradeCountry>
    <ram:ID>China</ram:ID>
  </ram:OriginTradeCountry>
</ram:SpecifiedTradeProduct>
Correct
<ram:SpecifiedTradeProduct>
  <ram:OriginTradeCountry>
    <ram:ID>CN</ram:ID>
  </ram:OriginTradeCountry>
</ram:SpecifiedTradeProduct>

Frequent questions about BR-CL-15

What exactly does BR-CL-15 check?
The item country of origin (BT-159) under ram:SpecifiedTradeProduct/ram:OriginTradeCountry/ram:ID, not the buyer address.
Alpha-2 or alpha-3?
Always the two-letter alpha-2 code from ISO 3166-1, e.g. 'CN', not 'CHN'.

Related error codes

Check BR-CL-15 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file – you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice