Rule reference

BR-10 An invoice must contain the buyer postal address (BG-8)

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.

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-8
Severity
fatal

What the library returns

The exact object in result.errors when this rule fires. Generated by running @attestwire/en16931, not transcribed:

TeachingError
{
  "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 locates the element in the generated UBL document, which is where a KoSIT or Peppol validator will report the same problem.

A passing value

the shape this field expects
"address": { "city": "Wien", "postalCode": "1010", "countryCode": "AT" }

The fix

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

Arrived from a stack trace? The docsUrl on every error links straight here. Something wrong on this page — tell us.