Reference
Markdown exportUnit of measure codes (common)
Common unit codes used for invoice line quantities (e.g., piece, hour, kilogram).
How these codes are used on invoices
Unit of measure codes (common) is a standardized UNECE Rec 20/21 code list used in structured invoices. Instead of free-text values, buyers, suppliers, ERP systems, and validators expect normalized codes such as C62 (One), EA (Each), PCE (Piece). This list focuses on units commonly used on invoices; official lists contain many more codes.
UNECE Rec 20/21
This list focuses on units commonly used on invoices; official lists contain many more codes.
How to use this code list in production
Use Unit of measure codes (common) when you need stable values across ERP source data, generated XML, and validation checks. Lock the allowed values before go-live, map legacy values before export, and make sure finance teams know which business cases require manual review.
Unit of measure codes (common)
| Code | Meaning | Notes |
|---|---|---|
| C62 | One | — |
| EA | Each | — |
| PCE | Piece | — |
| HUR | Hour | — |
| MIN | Minute | — |
| SEC | Second | — |
| DAY | Day | — |
| WEE | Week | — |
| MON | Month | — |
| ANN | Year | — |
| MMT | Millimetre | — |
| CMT | Centimetre | — |
| MTR | Metre | — |
| KMT | Kilometre | — |
| MTK | Square metre | — |
| MTQ | Cubic metre | — |
| GRM | Gram | — |
| KGM | Kilogram | — |
| TNE | Tonne | — |
| LTR | Litre | — |
Practical tips before you send an e-invoice
Use these points as the practical checks for this section.
- Use the exact code from UNECE Rec 20/21 and keep the spelling and casing expected by the standard.
- Make sure the chosen Unit of measure codes (common) value matches the business context and any related fields on the invoice.
- Validate the final XRechnung, ZUGFeRD/Factur-X, UBL, or CII file before sending it to the recipient.
Common code-list mistakes
Use these points as the practical checks for this section.
- Letting free-text values pass through the ERP export instead of mapping them to the official code list.
- Using a technically valid code without checking whether the recipient profile or country rule actually allows it.
- Fixing the XML output only, while leaving the upstream ERP source value inconsistent for the next invoice.
Frequently asked questions
These are common end-user questions when choosing the right Unit of measure codes (common) value for an invoice or ERP export.
What is Unit of measure codes (common) on an invoice?
Unit of measure codes (common) is the standardized UNECE Rec 20/21 code list that tells the receiving system which business value was intended. Using the correct code improves interoperability across XRechnung, ZUGFeRD/Factur-X, UBL, CII, and PEPPOL workflows.
Which Unit of measure codes (common) codes are used most often?
Common examples on this page include C62 (One), EA (Each), PCE (Piece). The right choice depends on your transaction, tax treatment, recipient requirements, and the invoice profile you are sending.
Where do I enter a Unit of measure codes (common) code in structured e-invoices?
Enter the code in the structured invoice field that matches its meaning, for example the currency field, VAT category field, payment means field, unit field, or invoice type field. The exact XML path depends on whether you send XRechnung, ZUGFeRD/Factur-X, UBL, or CII.
How do I avoid validation errors with Unit of measure codes (common) codes?
Use only values allowed by the relevant implementation guide, keep the code exactly as defined in UNECE Rec 20/21, and provide all related data required by that choice. Many validation errors happen when a code is correct in isolation but inconsistent with the rest of the invoice.
Can I use codes outside this page?
Often yes, but recipients and national profiles frequently accept only a practical subset of the full UNECE Rec 20/21 list. This page focuses on common invoice values, so confirm buyer-specific or country-specific rules before sending production documents.
Download
Use this code list in your systems or validation rules.