Units in e-invoices: codes such as C62, HUR and DAY
In an e-invoice the unit of a quantity is not an abbreviation such as "pcs" or "hrs" but a code from UN/ECE Recommendation 20 (with the extension from Recommendation 21), e.g. HUR for hour or C62 for one (piece).
A code that is not in the list makes the validation fail.
Where does the code belong?
The unit of the invoiced quantity of an invoice line is BT-130 (Invoiced quantity unit of measure code) and is mandatory for every line.
If the price refers to a base quantity (e.g. price per 100 pieces), its unit is BT-150 (Item price base quantity unit of measure code).
In the XML the code is the attribute unitCode, in CII on ram:BilledQuantity or ram:BasisQuantity, in UBL on cbc:InvoicedQuantity, cbc:CreditedQuantity or cbc:BaseQuantity.
Frequently used codes
A selection of frequently used codes, not the complete code list. The complete list is published by the source named below.
| Code | Meaning | Explanation |
|---|---|---|
C62 |
One (piece) | A plain count without a specific unit of measure. Common choice for numbers of pieces, licences or services not billed by time. |
H87 |
Piece | Also a piece, meaning a single item. For numbers of pieces both C62 and H87 are allowed; what matters is that the code is in the list. |
LS |
Lump sum | For flat-rate amounts, usually with quantity 1. |
HUR |
Hour | For working and consulting hours. Fractions are possible as a decimal number, e.g. 1.5 hours. |
MIN |
Minute | For billing by the minute. |
DAY |
Day | For daily rates, e.g. consulting or rental days. |
WEE |
Week | For services billed per week. |
MON |
Month | For monthly services such as rent, maintenance or subscriptions. |
ANN |
Year | For yearly services, e.g. annual licences. |
KGM |
Kilogram | For goods sold by weight. |
MTR |
Metre | For lengths, e.g. cables or fabrics. |
KMT |
Kilometre | For travel and transport distances. |
MTK |
Square metre | For areas, e.g. flooring or painting work. |
LTR |
Litre | For liquids. |
Typical errors
In E-Rechnungsfreund
In the invoice form, section "Invoice lines (BG-25)", select a unit from the list in the field "Unit" (simple view) or "Unit (BT-130)" (expert view) of the line.
The unit of a price base quantity (BT-150) is in the field "Net price unit (BT-150)" in the expert view.
Source and license
Source of the codes: UNECE (UN/CEFACT), UN/ECE Recommendation No. 20 / No. 21 (Codes for Units of Measure, Codes for Types of Cargo, Packages and Packaging Materials). The complete and binding list is available there. EN 16931 permits only part of the codes for e-invoices.
The meanings and explanations of the frequently used codes and the notes on typical errors are editorial texts and not part of the source.
Explanation of the code list, not legal or tax advice.