InvoiceValidator.eu

BR-20

fatalEN 16931EN 16931 business ruleCIIUBLBG-11BG-12BG-4BT-69

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).

Why it fails

The Seller tax representative postal address has no country code (BT-69).

How to fix it

Add the ISO 3166-1 alpha-2 country code to the tax representative's address.

What the validator checks

CII — context $Tax_Representative

normalize-space(ram:PostalTradeAddress/ram:CountryID) != ''

UBL — context cac:TaxRepresentativeParty/cac:PostalAddress

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

Related rules

Part of BR — EN 16931 core business rules.

Check your own invoice against BR-20

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.