BR-9 Field BG-5 EN 16931 core rules (BR)

Fix BR-9: Seller country code (BT-40) missing

[BR-09]-The Seller postal address (BG-5) shall contain a Seller country code (BT-40).

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

What does BR-9 mean?

The Seller postal address (BG-5) shall contain a Seller country code (BT-40). It belongs to the mandatory data of the European standard EN 16931; without it the invoice is structurally incomplete and gets rejected.

Common causes of BR-9

How to fix BR-9

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BG-5 along this XPath://ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID
  2. Apply the fix. Add the Seller country code (BT-40) in 'ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID', e.g. 'DE'.
  3. Validate again. Save the file and validate it again to check that BR-9 is no longer reported.
Concrete fix

Add the Seller country code (BT-40) in 'ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID', e.g. 'DE'.

XPath//ram:SellerTradeParty/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:PostalTradeAddress>
  <ram:CityName>München</ram:CityName>
  <!-- ram:CountryID fehlt -->
</ram:PostalTradeAddress>
Correct
<ram:PostalTradeAddress>
  <ram:CityName>München</ram:CityName>
  <ram:CountryID>DE</ram:CountryID>
</ram:PostalTradeAddress>

Frequent questions about BR-9

How do I fix BR-9?
Add the Seller country code (BT-40) in 'ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID', e.g. 'DE'.

Related error codes

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