XRechnung (Germany)

BR-DE-15

Buyer reference / Leitweg-ID (BT-10) required

What it means

XRechnung requires the Buyer reference (BT-10) — for public-sector invoices in Germany this is the Leitweg-ID that routes the invoice to the right authority.

How to fix it

Set cbc:BuyerReference (UBL) / ram:BuyerReference (CII) to the Leitweg-ID the public buyer gave you (format like '991-12345-67'). Don't leave it empty.

Example

<cbc:BuyerReference>991-12345-67</cbc:BuyerReference>

Catch this before it reaches the receiving authority:

# CLI
npx @eleata/validate-einvoice validate invoice.xml --format xrechnung-ubl

# GitHub Action — fail the build on any invalid invoice
- uses: hernaninverso/validate-einvoice-action@v1
  with:
    files: invoices/**/*.xml
    api-key: ${{ secrets.EINVOICE_API_KEY }}

Other XRechnung (Germany) error codes

All error codes →