AttestwireRule referenceBR-08

BR-08 An invoice must contain the seller postal address

noun · EN 16931 · fatal · BG-5

For a sample invoice, the library reports: An invoice must contain the seller postal address (BG-5). It establishes the place of supply, which determines which country's VAT rules apply.

Business term
BG-5
Severity
fatal

The fix

Set seller.address with at least city, postalCode and countryCode.

A passing value

the shape this field expects
"address": { "city": "Berlin", "postalCode": "10115", "countryCode": "DE" }

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:

TeachingError
{
  "rule": "BR-08",
  "field": "BG-5",
  "severity": "fatal",
  "message": "An invoice must contain the seller postal address (BG-5). It establishes the place of supply, which determines which country's VAT rules apply.",
  "fix": "Set seller.address with at least city, postalCode and countryCode.",
  "example": "\"address\": { \"city\": \"Berlin\", \"postalCode\": \"10115\", \"countryCode\": \"DE\" }",
  "xpath": "/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress",
  "docsUrl": "https://attestwire.com/rules/BR-08"
}

xpath is always a UBL path. On a CII invoice, look for the matching CII field instead.