An XRechnung is rejected when it breaks one of the official rules it is checked against: the XML Schema, the European standard EN 16931 or the German XRechnung rules (the CIUS published by KoSIT). The rejection message almost always contains a rule id such as BR-DE-15 or BR-CO-16. That id tells you exactly what is wrong — once you know how to read it.
Four steps take you from the rejection to an invoice that passes.
Step 1: Find the rule id in the rejection
Look for a code in square brackets or at the start of a line. The prefix tells you where the rule comes from:
| Prefix | Rule set | Typical cause |
|---|---|---|
BR-DE-… |
XRechnung (Germany) | A field Germany requires is missing: buyer reference, seller contact, payment instructions |
BR-CO-… |
EN 16931, calculations | Totals do not add up, a VAT amount does not match its base |
BR-… (numbers) |
EN 16931, content | A mandatory field such as currency or buyer country is missing |
BR-CL-… |
EN 16931, code lists | A code is not on the official list (currency, unit, country) |
PEPPOL-… |
Peppol BIS Billing | A Peppol rule, for example the electronic address |
If the portal only says "invalid" without a code, run the file through a validator to get the full list — portals often show only the first error.
Step 2: Read what the rule actually requires
The official rule texts are short and, for XRechnung, written in German. [BR-DE-15] Das Element "Buyer reference" (BT-10) muss übermittelt werden means: the invoice has no buyer reference. For a German public buyer that is the Leitweg-ID.
The BT-… numbers are business terms of EN 16931. They are the same in UBL and CII, so a rule points to one field whatever syntax your software writes. See the error codes that come up most for the common ones with their fix.
Step 3: Fix the field in the system that created the invoice
Fix the cause, not the file. If your accounting software left the buyer reference empty, the next invoice will be rejected for the same reason. Typical places:
- Missing value (BR-DE-15, BR-DE-2, BR-DE-1): fill the buyer reference, the seller contact or the payment details in the customer or company master data.
- Wrong total (BR-CO-10, BR-CO-15, BR-CO-16): a rounding setting or a manual edit changed one amount but not the totals. See why one cent fails an invoice.
- Wrong code (BR-CL-…): map your internal units and codes to the official lists, for example
C62for "piece" instead ofStk.
When you cannot change the source quickly, you can repair the file itself: the fix endpoint applies your corrected values to the invoice, writes it again in its own format and validates it.
Step 4: Validate again before you resend
Check the corrected file against the same official rules the recipient uses. Send it only when the result is valid — every new rejection costs a round trip and delays payment.
A valid result means the invoice passes the technical rules. A recipient can still reject it for business reasons, such as a wrong order number or price.
How to check a rejected invoice with the API
Paste the rejection message together with the invoice. The analysis returns the official validation, every rule id found in the message with an explanation, and the fields involved with their current values:
curl -s https://einvoiceengine.com/v1/invoices/fix/analyze \
-H "Authorization: Bearer $EINV_KEY" -H "Content-Type: application/json" \
-d '{ "document": "<Invoice …>", "message": "Abgelehnt: [BR-DE-15] Das Element \"Buyer reference\" (BT-10) muss übermittelt werden." }'
Proposals come in three kinds: safe changes that follow from the document itself, confirm changes such as a recalculated total that a person must approve, and manual values only you can supply, like the Leitweg-ID. The service never invents a value.
Frequently asked questions
Why does the portal reject an invoice my software calls valid?
Your software may check only the XML Schema or only EN 16931, while the portal also runs the XRechnung rules. Check with the same rule set the portal uses: today that is XRechnung 3.0.2 with the KoSIT configuration of 31 August 2026.
Can I just edit the XML by hand?
You can, but every manual edit risks a new calculation error, and the next invoice from your system will have the same problem. Fix the source data, or repair the file with a tool that validates the result.
Does a valid XRechnung mean the customer will pay?
No. Validation is a technical check. Whether prices, quantities and tax treatment are right is a business question between you and your customer.
How many errors does a rejection show?
Often only the first one. A full validation lists every failing rule at once, so you can fix them in one pass. German speakers can read the German guide for rejected invoices.
E-Invoicing API