Gegenstempel

BR-CL-23 Invalid unit code (e.g. “Stk”)

In the invoice data the unit must not be a word (“Stk”, “hrs”, “lump sum”) but a code from the UN/ECE list. The PDF can still show “pcs”.

The message in the validation report

[BR-CL-23] Unit code MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension

Common causes

How to fix it

  1. Switch units to codes. Most common: H87 piece · C62 unit · HUR hour · DAY day · MTR metre · MTK m² · MTQ m³ · KGM kg · LTR litre · LS lump sum · SET set · XPK package · XRO roll/coil.
  2. Many programs have an “e-invoice code” or “UN/ECE” field in the unit settings.

What it should look like (XRechnung, CII syntax)

<ram:BilledQuantity unitCode="H87">4</ram:BilledQuantity>   <!-- Stück -->
<ram:BilledQuantity unitCode="HUR">2.5</ram:BilledQuantity> <!-- Stunden -->

Want to read or check an invoice you received? Open XRechnung · Check invoice

More error codes

Guides to German e-invoicing

Rule text from the official KoSIT validation rules (XRechnung 3.0.2, EN 16931). General technical explanation, not tax or legal advice.