Rule reference

BR-DE-2 XRechnung requires the seller contact group (BG-6), and requires it complete: contact point (BT-41), telephone number (BT-42) and email address (BT-43) are each individually mandatory under BR-DE-5, BR-DE-6 and BR-DE-7

XRechnung requires the seller contact group (BG-6), and requires it complete: contact point (BT-41), telephone number (BT-42) and email address (BT-43) are each individually mandatory under BR-DE-5, BR-DE-6 and BR-DE-7. A public-sector payer must have a named human route to query the invoice.

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-6
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-DE-2",
  "field": "BG-6",
  "severity": "fatal",
  "message": "XRechnung requires the seller contact group (BG-6), and requires it complete: contact point (BT-41), telephone number (BT-42) and email address (BT-43) are each individually mandatory under BR-DE-5, BR-DE-6 and BR-DE-7. A public-sector payer must have a named human route to query the invoice.",
  "fix": "Set seller.contact with all three of name, phone and email. A shared departmental identity is fine and usually preferable to a named individual.",
  "example": "\"contact\": { \"name\": \"Buchhaltung\", \"phone\": \"+49 30 1234567\", \"email\": \"rechnungen@example.de\" }",
  "xpath": "/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact",
  "docsUrl": "https://attestwire.com/rules/BR-DE-2"
}

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
"contact": { "name": "Buchhaltung", "phone": "+49 30 1234567", "email": "rechnungen@example.de" }

The fix

Set seller.contact with all three of name, phone and email. A shared departmental identity is fine and usually preferable to a named individual.

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