BR-DE-15: Buyer reference (Leitweg-ID) missing
XRechnung requires the buyer reference BT-10. For public buyers in Germany it carries the Leitweg-ID that routes the invoice to the right office.
- Severity
- Error the invoice fails validation.
- Rule set
- XRechnung 3.0.2 (KoSIT)
- Where it applies
- XRechnung 3.0 in UBL and CII (Germany)
- ZUGFeRD / Factur-X with the XRECHNUNG profile
- Business terms
- BT-10 Buyer reference
Official rule text
Das Element "Buyer reference" (BT-10) muss übermittelt werden.
Translation: The element Buyer reference (BT-10) must be transmitted.
What the rule checks
BT-10 is an identifier the buyer gives you to route or match the invoice. Public administrations in Germany use it for the Leitweg-ID, which looks like 04011000-12345-03 and is issued by the buyer, not by you. Private buyers may give you any reference, such as a cost centre or an internal order code.
The rule fails when cbc:BuyerReference is missing and also when it contains only spaces. The purchase order number (BT-13, cac:OrderReference) does not satisfy it.
Common causes
- The customer record has no Leitweg-ID or reference field, so nothing is exported.
- The Leitweg-ID is typed into the order reference or a note instead of the buyer reference.
- The invoice goes to a private customer who gave no reference, and the software writes nothing.
How to fix it
Ask the buyer for the reference and write it into cbc:BuyerReference, directly after the currency code; in CII it is ram:BuyerReference in ram:ApplicableHeaderTradeAgreement. For public buyers, take the Leitweg-ID from the order or the contract.
When a private buyer gives no reference, agree one with them; XRechnung does not let you leave the field empty, and the value has to mean something to the buyer.
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<!-- no cbc:BuyerReference -->
<cac:OrderReference>
<cbc:ID>4500012345</cbc:ID>
</cac:OrderReference><cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:BuyerReference>04011000-12345-03</cbc:BuyerReference>
<cac:OrderReference>
<cbc:ID>4500012345</cbc:ID>
</cac:OrderReference>UBL excerpts; elements that play no part in the rule are left out.
Can the fix page repair it?
Yes, once you supply the value. The fix page names the field; you enter the correct value, which is never guessed, and the corrected file is validated again before you download it.
Field on the fix page: buyerReference
Repair a rejected invoiceGuide: What is a Leitweg-ID and where does it go in an XRechnung?
Check your invoice against the official rules
Upload an XML or PDF invoice. You get every failing rule with an explanation, the fix and the line in the file. Free, without sign-up; the check on this page stores nothing.
Processed in memory and not stored. No sign-up needed.
E-Invoicing API