Datatypes › unit_of_measure

UN/ECE Recommendation 20 unit code (UN/CEFACT common code)

ID unece_rec20_unit_code

Pattern of unit_of_measureNot PIIcategoricalDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Two- or three-character code of a unit of measure from UN/ECE Recommendation 20, used in trade documents such as UN/EDIFACT and UBL invoices, for example KGM for kilogram or H87 for piece. Codes use uppercase letters and digits. Some lists, such as Peppol, add package codes from Recommendation 21 with an X prefix; they have the same shape but are not units.

Pattern of
Unit of measurement unit_of_measure
Categories
All measurable values (percentage, amount and e.t.c)
Countries
Global (not tied to a country)
Languages
Common to most languages
Wikidata
P6512
Quality
85/100 · missing: translation, detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^[A-Z0-9]{2,3}$

Python re syntax.

Examples

ValueDescription
KGMkilogram
MTRmetre
LTRlitre
C62one (unit)
H87piece
KGMS invalidfour characters

Sources

Use this record