Skip to content

Warning

CII-SR-127: Remove the reason code from the unit price discount

In short

Warning: worth checking.

CII-SR-127 means the discount on a line's unit price has a reason code (ReasonCode), which an EN 16931 invoice should not contain. Delete the code from that discount; it is only a warning, so the file is still accepted.

On this page

What it means

On each line, the unit price before discount (BT-148) can carry one discount (BT-147). This rule checks that this discount holds no ReasonCode, a coded reason for the discount. The discount amount itself is allowed.

Why it matters

EN 16931 gives a discount on a unit price an amount and no reason, so receiving software has no field for the code and may leave it out. The file is still accepted, because this is a warning. It is worth fixing for a clean file, or when the buyer needs the reason, since the code may never reach them.

How to fix it

Find AppliedTradeAllowanceCharge under GrossPriceProductTradePrice in the line and remove the ReasonCode element. Keep the discount amount (ActualAmount). If the buyer needs to know why the price was reduced, write the reason in a note on the line (BT-127) instead.

The rule as published

ReasonCode should not be present

Where this rule applies

Rule set Version
EN 16931 (CII) 1.3.17
XRechnung 3.0 (CII) 3.0.2
NLCIUS (CII) 1.0.3.13
France CTC (CII) 1.4.0-04
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether CII-SR-127 still fails, and which other rules do.

Updated 6 November 2026