HomeError code lexicon › BR-20
BR-20 Field BT-69 EN 16931 core rules (BR)

Fix BR-20: Tax representative country code missing

[BR-20] The Seller tax representative postal address (BG-12) shall contain a Tax representative country code (BT-69), if the Seller (BG-4) has a Seller tax representative party (BG-11)

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

What does BR-20 mean?

The Seller tax representative postal address (BG-12) must carry a Tax representative country code (BT-69) if the invoice names a Seller tax representative party (BG-11). The country code sits as ram:CountryID in the address and follows the two-letter format under ISO 3166-1. The rule applies only if a tax representative is stated.

Common causes of BR-20

How to fix BR-20

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-69 along this XPath://rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CountryID
  2. Apply the fix. Add the element ram:CountryID with the ISO 3166-1 code of two capital letters in the ram:PostalTradeAddress of the tax representative, for example DE.
  3. Validate again. Save the file and validate it again to check that BR-20 is no longer reported.
Concrete fix

Add the element ram:CountryID with the ISO 3166-1 code of two capital letters in the ram:PostalTradeAddress of the tax representative, for example <ram:CountryID>DE</ram:CountryID>.

XPath//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CountryID

Before / after: the XML example

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

Wrong
<ram:SellerTaxRepresentativeTradeParty>
  <ram:Name>Steuerkanzlei Weber und Partner</ram:Name>
  <ram:PostalTradeAddress>
    <ram:PostcodeCode>10115</ram:PostcodeCode>
    <ram:CityName>Berlin</ram:CityName>
  </ram:PostalTradeAddress>
</ram:SellerTaxRepresentativeTradeParty>
Correct
<ram:SellerTaxRepresentativeTradeParty>
  <ram:Name>Steuerkanzlei Weber und Partner</ram:Name>
  <ram:PostalTradeAddress>
    <ram:PostcodeCode>10115</ram:PostcodeCode>
    <ram:CityName>Berlin</ram:CityName>
    <ram:CountryID>DE</ram:CountryID>
  </ram:PostalTradeAddress>
</ram:SellerTaxRepresentativeTradeParty>

Frequent questions about BR-20

What format does the country code have?
Two capital letters under ISO 3166-1, for example DE for Germany or AT for Austria.
May I write out the country name?
No. ram:CountryID takes the code, not the name. 'Germany' is invalid, 'DE' is right.
Where exactly does the code sit?
As ram:CountryID inside the ram:PostalTradeAddress of the tax representative party.

Related error codes

Check BR-20 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