Attestwire › Rule reference › BR-DE-11
BR-DE-11 A delivery address needs a post code
noun · XRechnung · fatal · BT-78
Your invoice was refused because it contains a delivery address with no post code. The delivery address is optional, but once it is there it has to be complete, with city and post code. Add the post code, or leave the delivery address out altogether. In the standard the address is group BG-15 and the post code is field BT-78; BR-DE-11 is the rule that requires the post code.
Diese Regel auf Deutsch: BR-DE-11 — auf Deutsch erklärt.
- Business term
BT-78— Deliver to post code- Severity
fatal- Applies to
xrechnung-ubl, xrechnung-cii
The fix
Add the post code to the delivery address, deliverTo.postalCode, or remove deliverTo entirely and keep only deliveryDate (BT-72).
What the rule requires
If your invoice carries group BG-15 (deliver to address), it needs the post code (BT-78), together with the city from BR-DE-10.
Here too it is all or nothing. If you only send the delivery address because your system happens to hold it, leaving it out is the simpler fix.
In this library the field is deliverTo.postalCode.
Das Element "Deliver to post code" (BT-78) muss übermittelt werden, wenn die Gruppe "DELIVER TO ADDRESS" (BG-15) übermittelt wird.
A passing value
"deliverTo": { "city": "Lyon", "postalCode": "69001", "countryCode": "FR" }Why it exists
As with the city: an address fragment looks like information but is not. The rule forces the decision, an address or no address, to the point where you can still make it.
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-11",
"field": "BT-78",
"severity": "fatal",
"message": "XRechnung requires the element \"Deliver to post code\" (BT-78) whenever the deliver-to address group (BG-15) is present. BG-15 is optional, but it is all-or-nothing: a delivery address consisting only of a country code is rejected, even though core EN 16931 accepts it.",
"fix": "Either set deliverTo.postalCode, or drop deliverTo entirely and keep only deliveryDate (BT-72) — unless a rule such as BR-IC-12 requires the destination country, in which case you must supply the full address.",
"example": "\"deliverTo\": { \"city\": \"Lyon\", \"postalCode\": \"69001\", \"countryCode\": \"FR\" }",
"xpath": "/ubl:Invoice/cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:PostalZone",
"docsUrl": "https://attestwire.com/rules/BR-DE-11"
}
xpath is always a UBL path. On a CII invoice, look for the
matching CII field instead.
How our check differs
The rule runs only when deliverTo is present. Presence only; the format of the post code is not checked.
See also: BR-DE-10 — the city of the same address.