BR-DE-18: stating Skonto correctly in the XRechnung
BR-DE-18 reports that a Skonto entry (early payment discount) in the payment terms (BT-20) does not match the prescribed format. Correct is a line such as #SKONTO#TAGE=14#PROZENT=2.00#, the percentage always with a point and two decimal places, everything in capital letters, followed by a line break. If the line break at the end is missing, the invoice is rejected as well.
Reproduced on 21 Nov 2026 with the KoSIT validator 1.6.3 (XRechnung 3.0.2, configuration of 31 Aug 2026) on our sample invoice. Written by Marwan Saleh (Development). Technical explanation, not tax advice.
The message in the validation report
This is the literal wording in the validator's report.
BR-DE-18Error
Skonto Zeilen in ubl:Invoice müssen diesem regulärem Ausdruck entsprechen: (^|\r?\n)#(SKONTO)#TAGE=([0-9]+#PROZENT=[0-9]+\.[0-9]{2})(#BASISBETRAG=-?[0-9]+\.[0-9]{2})?#$. 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.
Translation: Skonto lines in ubl:Invoice must match this regular expression: (^|\r?\n)#(SKONTO)#TAGE=([0-9]+#PROZENT=[0-9]+\.[0-9]{2})(#BASISBETRAG=-?[0-9]+\.[0-9]{2})?#$. The early payment discount must be transmitted in the element "Payment terms" (BT-20) as follows: the first segment is "SKONTO", the second "TAGE=n" (days), the third "PROZENT=n" (percent). Percentages are given without a sign and with two decimal places separated by a point. If the discount is not based on BT-115 "amount due" but only on part of it, the base amount is given as a fourth segment "BASISBETRAG=n" (base amount) using the semantic data type Amount. Each entry starts with a #, segments are separated by a # and a line ends with a #. A complete discount entry must be followed by an XML-compliant line break. All discount information must be in capital letters. Additional whitespace (spaces, tabs or line breaks) is not allowed. Characters or text other than those specified above are not allowed.
How we reproduced the error
The starting point was our correct sample invoice, which the validator accepts with 0 errors and 0 warnings. Then we changed exactly one thing:
Two runs: #SKONTO#TAGE=14#PROZENT=2# (percentage without decimals) and #SKONTO#TAGE=14#PROZENT=2.00# without a line break at the end. Both rejected with BR-DE-18.
Result: rejected with BR-DE-18.
Cross-check with the fix
#SKONTO#TAGE=14#PROZENT=2.00# with a line break at the end in cbc:Note of the payment terms.
Result: accepted, without errors.
The correct sample invoice and its validation report are publicly available, see validation evidence.
Common causes
- The discount is written as free text, for example "2 % discount for payment within 14 days", and additionally attempted with #.
- Percentage without two decimal places or with a comma instead of a point.
- The line break after the last # is missing because programs trim text at the end.
How to fix the error
- 1Write exactly one line per discount level in the format #SKONTO#TAGE=n#PROZENT=n.nn#.
- 2If the discount only applies to part of the amount, append #BASISBETRAG=n.nn# as a fourth segment.
- 3Output a line break after each discount line and do not shorten the text afterwards.
This is how the spot looks in our accepted sample invoice:
<cac:PaymentTerms> <cbc:Note>#SKONTO#TAGE=14#PROZENT=2.00# </cbc:Note> </cac:PaymentTerms>
After the correction: validate the file for free with the KoSIT validator, without sign-up, the file is not stored.
The error comes from your shop or your software?
Then the cause usually lies at the point where the invoice is generated. We check where the data comes from and adjust the output. The feasibility check costs €290 net and is credited if you place the order.
Sources
- KoSIT: XRechnung validator configuration (validation rules). release v2026-08-31, containing XRechnung 3.0.2
- KoSIT: validator. version 1.6.3
- Federal Ministry of Finance (Bundesministerium der Finanzen): questions and answers on e-invoicing (in German)
Validation run of 21 Nov 2026. Technical explanation, not tax advice.


