XRechnung (Germany)
BR-DE-8
Buyer city (BT-52) required
What it means
XRechnung requires the buyer's city name (BT-52) in the buyer postal address.
How to fix it
Fill cac:PostalAddress/cbc:CityName for the AccountingCustomerParty.
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 }}