Skip to content

Warning

CII-SR-020: Remove the document PurposeCode

In short

Warning: worth checking.

CII-SR-020 warns that your CII invoice contains ram:PurposeCode in rsm:ExchangedDocument. Remove that element. If your buyer needs an explanation of the invoice's purpose, put it in the invoice note (BT-22), then recheck your file.

On this page

What it means

Checks that rsm:ExchangedDocument has no direct ram:PurposeCode child. The warning depends on the element's presence, not the code value.

Why it matters

The EN 16931 CII mapping does not use this document purpose code. Additional explanatory text belongs in the invoice note (BT-22).

How to fix it

Remove ram:PurposeCode from rsm:ExchangedDocument. If the purpose needs explaining, write it in plain words in the invoice note (BT-22), rather than copying an unexplained code there. Recheck the corrected file.

Once the file is corrected, check it again for free: Validate an invoice against EN 16931

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

The rule as published

PurposeCode 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-020 still fails, and which other rules do.

Updated 6 November 2026