Attestwire › Rule reference › BR-10
BR-10 An invoice must contain the buyer postal address
noun · EN 16931 · fatal · BG-8
For a sample invoice, the library reports: An invoice must contain the buyer postal address (BG-8). For cross-border supplies it is what distinguishes a domestic sale from a reverse-charge or intra-community one.
- Business term
BG-8- Severity
fatal
The fix
Set buyer.address with at least city, postalCode and countryCode.
A passing value
"address": { "city": "Wien", "postalCode": "1010", "countryCode": "AT" }What the library returns
The full error returned by @attestwire/en16931. It includes the rule ID,
affected field and suggested correction. Developers can use this object in their application:
{
"rule": "BR-10",
"field": "BG-8",
"severity": "fatal",
"message": "An invoice must contain the buyer postal address (BG-8). For cross-border supplies it is what distinguishes a domestic sale from a reverse-charge or intra-community one.",
"fix": "Set buyer.address with at least city, postalCode and countryCode.",
"example": "\"address\": { \"city\": \"Wien\", \"postalCode\": \"1010\", \"countryCode\": \"AT\" }",
"xpath": "/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress",
"docsUrl": "https://attestwire.com/rules/BR-10"
}
xpath is always a UBL path. On a CII invoice, look for the
matching CII field instead.