Validation rules

BR-CO-21 — EN 16931 rule

A document-level allowance (BG-20) carries neither a reason text (BT-97) nor a reason code (BT-98) — at least one is required.

Rule
BR-CO-21 — official EN 16931 / XRechnung rule
Severity
error
Business term
BT-97 — Document allowance reason
Field in your JSON
invoice.allowances[*].reason
Detected by
tier 1 — normbill pre-flight (also in the playground)
Reachability
Triggerable from your request JSON (generate & validate)

normbill's pre-flight reports the equivalent finding as BR-33 at tier 1, before the KoSIT validator sees the document.

How to fix it

Set the allowance's reason (e.g. "Rabatt") or a UNCL 5189 reason_code.

BR-CO-21 auf Deutsch — was bedeutet der Fehler?

Ein Nachlass auf Dokumentebene (BG-20) trägt weder einen Grundtext (BT-97) noch einen Grundcode (BT-98) — mindestens eines ist Pflicht.

So beheben Sie den Fehler

Setzen Sie reason des Nachlasses (z. B. "Rabatt") oder einen UNCL-5189-reason_code. normbill meldet denselben Befund bereits vorab als BR-33.

Related rules

  • BR-33 — A document-level allowance must state why it is granted (BT-97/BT-98).
  • UBL-SR-30 — A document-level allowance carries more than one reason text (BT-97) — only one cbc:AllowanceChargeReason…
  • BR-CO-20 — An invoice line period (BG-26) is present but carries neither a start date (BT-134) nor an end date (BT-135).
  • BR-CO-22 — A document-level charge (BG-21) carries neither a reason text (BT-104) nor a reason code (BT-105) — at least…
  • BR-CO-19 — An invoicing period (BG-14) is present but carries neither a start date (BT-73) nor an end date (BT-74).
  • BR-CO-23 — An invoice line allowance (BG-27) carries neither a reason text (BT-139) nor a reason code (BT-140) — at…

Official sources

Every 422 from the API lists the rule id, the path in your request JSON, a plain-language message and a suggested fix — see the docs overview for the report format.

Or try it live: drop any XRechnung XML on the free validator — same KoSIT-backed report, no account.

Spotted something?

Bug, missing feature, wrong validation result — tell us. The page you're on is attached automatically; email optional.