ErrorXRechnung rules (BR-DE)
BR-DE-18: Cash discount wrongly formatted
Last updated: · XRechnung 3.0.2 · KoSIT validation configuration of 2026-08-31
What does the message mean?
Cash discounts must appear in the payment terms (BT-20) in a fixed format: #SKONTO#TAGE=14#PROZENT=2.00# (one line per discount level).
The invoice is invalid under this rule and the recipient may reject it.
Typical causes
- The percentage lacks two decimals (“PROZENT=2” instead of “PROZENT=2.00”).
- Comma instead of a decimal point (“2,00”), or the trailing “#” is missing.
- Several discount levels are written on one line instead of separate lines.
How to fix it
- Write each discount level on its own line, exactly like this: #SKONTO#TAGE=14#PROZENT=2.00#
- Optionally followed by a base amount: #SKONTO#TAGE=14#PROZENT=2.00#BASISBETRAG=100.00#
- Upper case, no spaces; every discount entry is followed by a line break. Put explanatory text on a separate line that does not start with #.
- Then generate the e-invoice again and re-validate it.
Example (XRechnung, UBL syntax)
Shortened excerpt from an official KoSIT test invoice. We tested with the official rules that the faulty version triggers exactly this message and the corrected one does not.
<cac:PaymentTerms>
<cbc:Note>#SKONTO#TAGE=14#PROZENT=2#</cbc:Note>
</cac:PaymentTerms><cac:PaymentTerms>
<cbc:Note>#SKONTO#TAGE=14#PROZENT=2.00#
</cbc:Note>
</cac:PaymentTerms>Official rule text
BR-DE-18: Skonto Zeilen in müssen diesem regulärem Ausdruck entsprechen: . Die Informationen zur Gewährung von Skonto müssen wie folgt im Element "Payment terms" (BT-20) übermittelt werden: Anzugeben ist im ersten Segment "SKONTO", im zweiten "TAGE=n", im dritten "PROZENT=n". Prozentzahlen sind ohne Vorzeichen sowie mit Punkt getrennt von zwei Nachkommastellen anzugeben. Liegt dem zu berechnenden Betrag nicht BT-115, "fälliger Betrag" zugrunde, sondern nur ein Teil des fälligen Betrags der Rechnung, ist der Grundwert zur Berechnung von Skonto als viertes Segment "BASISBETRAG=n" gemäß dem semantischen Datentypen Amount anzugeben. Jeder Eintrag beginnt mit einer #, die Segmente sind mit einer # getrennt und eine Zeile schließt mit einer # ab. Am Ende einer vollständigen Skontoangabe muss ein XML-konformer Zeilenumbruch folgen. Alle Angaben zur Gewährung von Skonto müssen in Großbuchstaben gemacht werden. Zusätzliches Whitespace (Leerzeichen, Tabulatoren oder Zeilenumbrüche) ist nicht zulässig. Andere Zeichen oder Texte als in den oberen Vorgaben genannt sind nicht zulässig.
Source: KoSIT/CEN validation rules (XRechnung 3.0.2 · KoSIT validation configuration of 2026-08-31).