BR-08 An invoice must contain the seller postal address (BG-5)
An invoice must contain the seller postal address (BG-5). It establishes the place of supply, which determines which country's VAT rules apply.
This rule is implemented and its error payload below is real, but the long-form write-up — normative text, worked example, divergence note — is not written yet. Everything the library knows about this rule is on this page. Ask and we will prioritise it.
- Business term
BG-5- Severity
fatal
What the library returns
The exact object in result.errors when this rule fires.
Generated by running @attestwire/en16931, not transcribed:
{
"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 locates the element in the generated UBL document,
which is where a KoSIT or Peppol validator will report the same problem.
A passing value
"address": { "city": "Berlin", "postalCode": "10115", "countryCode": "DE" }The fix
Set seller.address with at least city, postalCode and countryCode.