Error codes

BR-09: Seller country code (BT-40) is missing

Severity: fatal · Syntax: CII, UBL

Official message

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

What this means

The seller postal address BG-5 must contain a seller country code BT-40 that is non-empty after normalize-space. UBL checks cac:Country/cbc:IdentificationCode in the seller address context. The ISO list is checked by BR-CL-14.

Typical cause

City and post code are filled in, the country is missing.

How to fix it

Set the country code, DE for Germany.

UBL

<cac:Country>
  <cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>

CII

<ram:CountryID>DE</ram:CountryID>

Business term

BG-5, BT-40

Related rules

Context and assertion

UBL cac:AccountingSupplierParty/cac:Party/cac:PostalAddress

CII /rsm:CrossIndustryInvoice

UBL

normalize-space(cac:Country/cbc:IdentificationCode) != ''

CII

normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID) != ''

Check a file now, free of charge

curl -F "file=@rechnung.xml" https://checkxrechnung.com/v1/validate

Questions

What does BR-09 actually check?

The seller postal address BG-5 must contain a seller country code BT-40 that is non-empty after normalize-space. UBL checks cac:Country/cbc:IdentificationCode in the seller address context. The ISO list is checked by BR-CL-14.

How do I fix BR-09?

Set the country code, DE for Germany.

If BR-09 passes, is the invoice legally compliant?

No. This page helps you read this one Schematron assertion. A pass is not a statement about tax law, portal acceptance, or bank overlays.