Error codes · EN 16931

BR-CO-21In your invoicing software

Document allowance reason required

This is the rejection, word for word: „[BR-CO-21] Each Document level allowance (BG-20) shall contain a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98), or both.“

When cac:AllowanceCharge with ChargeIndicator=false exists at document level, either cbc:AllowanceChargeReason (BT-97) or cbc:AllowanceChargeReasonCode (BT-98) must be provided.

What to have readyNothing. The file has to be re-exported from your invoicing software; we check it again afterwards.
What we doInvoice Navigator automatically fixes this issue by correcting the `cac:AllowanceCharge` element in your Invoice (BR-CO-21).
If you enter it yourself in your invoicing software
Before
<Invoice>
  <cac:AllowanceCharge>INVALID_CODE</cac:AllowanceCharge>
</Invoice>
After
<Invoice>
  <cac:AllowanceCharge>VALID_CODE</cac:AllowanceCharge>
</Invoice>

Element order is part of the rule: if the element sits in the wrong place, the validator rejects with BR-CO-21.

What the finding looks likeExample
FindingStructure invalid · BR-CO-21
Location//cac:AllowanceCharge[cbc:ChargeIndicator='false' and not(cbc:AllowanceChargeReason) and not(cbc:AllowanceChargeReasonCode)]/cbc:AllowanceChargeReasonCode
From youA re-exported file
ThenRe-export
ProofSHA-256 and /verify link after the check
Often appears together with
BR-CO-22Document charge reason required