Skip to content

Error

FX-SCH-A-000545: Use a permitted line discount reason code

In short

Error: fails the selected checks.

FX-SCH-A-000545 means your line discount has a non-empty reason code that the Basic profile does not permit. Replace it with a permitted UNTDID 5189 code that describes the discount, such as 95 for a discount, or remove the code and provide a written reason.

On this page

What it means

This rule checks ram:ReasonCode, the line discount reason code (BT-140), within a line discount (BG-27) marked by ram:ChargeIndicator/udt:Indicator equal to false. It compares non-empty values with the Basic profile's permitted discount reason codes for Factur-X and ZUGFeRD. An empty value passes this particular test.

Why it matters

A shared code list gives discount reasons a consistent meaning across different invoicing systems.

How to fix it

Check why you are applying the line discount. Put the appropriate permitted UNTDID 5189 code in the discount block's ram:ReasonCode. If you use a written reason instead, remove ram:ReasonCode and put the explanation in ram:Reason. Do not put charge codes or free text in ram:ReasonCode. Export and check the corrected file.

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 BASIC 1.0.9-2
ZUGFeRD 2.5 BASIC 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

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

Updated 6 November 2026