Skip to content

Error

FX-SCH-A-000623: Use an allowed line discount reason code

In short

Error: fails the selected checks.

FX-SCH-A-000623 means your line discount reason code (BT-140) is not on the allowed list. Use a matching UNTDID 5189 code, such as 95 for a discount, or remove the code and give the reason as text.

On this page

What it means

This checks ram:ReasonCode in a line-level ram:SpecifiedTradeAllowanceCharge where ram:ChargeIndicator/udt:Indicator has the value false. This is a line discount (BG-27), with reason text BT-139 and reason code BT-140. An empty code passes this check; a non-empty code must be listed.

Why it matters

A reason code identifies the type of discount using an agreed list. A written explanation belongs in the separate reason text field.

How to fix it

Replace ram:ReasonCode with the UNTDID 5189 code that matches your discount. Alternatively, remove ram:ReasonCode and put a short explanation, such as "Volume discount", in ram:Reason (BT-139). Do not put free text in the code element. Export the corrected file and recheck it.

Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice

Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta

The rule as published

Value of 'ram:ReasonCode' is not allowed.

Where this rule applies

Rule set Version
Factur-X 1.09 EN 16931 1.0.9-2
ZUGFeRD 2.5 EN 16931 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether FX-SCH-A-000623 still fails, and which other rules do.

Updated 6 November 2026