BR-11

The Buyer postal address shall contain a Buyer country code (BT-55).

error: the document is invalid Peppol documentation ↗

Why it fails

  • The buyer's address has no cac:Country/cbc:IdentificationCode (ram:CountryID in CII).

How to fix it

Add the ISO 3166-1 alpha-2 code of the buyer's country.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
cac:AccountingCustomerParty/cac:Party/cac:PostalAddress
Test
normalize-space(cac:Country/cbc:IdentificationCode) != ''

Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Context
/rsm:CrossIndustryInvoice
Test
normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountryID) != ''

Checked with EN 16931 Invoice (CII)

Context
cac:AccountingCustomerParty/cac:Party/cac:PostalAddress
Test
(cac:Country/cbc:IdentificationCode) != ''

Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)

Context
/rsm:CrossIndustryInvoice
Test
//ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountryID!=''

Checked with France Factur-X BASIC WL, Factur-X / ZUGFeRD BASIC WL