Attestwire › Rule reference › BR-DE-4
BR-DE-4 XRechnung requires the seller post code
noun · XRechnung · fatal · BT-38
For a sample invoice, the library reports: XRechnung requires the element "Seller post code" (BT-38). Core EN 16931 only requires the country code, but the German CIUS additionally makes city and post code mandatory on both parties so that the address is deliverable, not merely jurisdictional.
Diese Regel auf Deutsch: BR-DE-4 — auf Deutsch erklärt.
- Business term
BT-38- Severity
fatal
The fix
Set seller.address.postalCode.
A passing value
"postalCode": "10115"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-DE-4",
"field": "BT-38",
"severity": "fatal",
"message": "XRechnung requires the element \"Seller post code\" (BT-38). Core EN 16931 only requires the country code, but the German CIUS additionally makes city and post code mandatory on both parties so that the address is deliverable, not merely jurisdictional.",
"fix": "Set seller.address.postalCode.",
"example": "\"postalCode\": \"10115\"",
"xpath": "/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZone",
"docsUrl": "https://attestwire.com/rules/BR-DE-4"
}
xpath is always a UBL path. On a CII invoice, look for the
matching CII field instead.