Datatypes › All measurable values (percentage, amount and e.t.c) › unit_of_measure
UN/ECE Recommendation 20 unit code (UN/CEFACT common code)
ID unece_rec20_unit_code
Pattern of unit_of_measureNot PIIcategorical
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
- 95/100 · missing: translation
- Metacrafter rules
- 1 rule (0 by field name, 1 by value)
unitcodebyvaluedata, common/trade.yaml
- Supported by tools
- metacrafter
Regular expression
^[A-Z0-9]{2,3}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| KGM | kilogram |
| MTR | metre |
| LTR | litre |
| C62 | one (unit) |
| H87 | piece |
| KGMS invalid | four characters |
Sources
- doc: unece.org/trade/documents/2021/06/uncefact-rec20-0
- wikidata: wikidata.org/wiki/Property:P6512
- other: github.com/datasets/unece-units-of-measure
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/unece_rec20_unit_code - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/values/unece_rec20_unit_code.yamlon GitHub