Unit of measure

Unit of measure

In business documents that are created from JSON metadata, the unit of measure (unitOfMeasure) in the document needs to be specified according to the standards UN/ECE Recommendation 20 and UN/ECE Recommendation 21.

The unitOfMeasure property in the metadata consists of two fields, unit and code.

The unit property can be used on its own with one of the following values:

  • One
  • Piece
  • Package
  • Kilogram
  • Metre
  • Litre
  • SquareMetre
  • CubicMetre
  • Kilometre
  • Tonne
  • KiloWattHour
  • Hour
  • Day
  • Month
  • Year
  • Rec20
  • Rec21

The values Rec20 and Rec21 refer to UN/ECE standardized code lists. To expand the list of supported values, set the unit property to Rec20 or Rec21 and the code property to one of the allowed codes. Some examples are provided in the following tables:

Recommendation 20 codes
Rec20 codeName
C62One
H87Piece
KGMKilogram
MTRMetre
LTRLitre
MTKSquare metre
MTQCubic metre
KMTKilometre
TNETonne
KWHKilowatt hour
DAYDay
HURHour
MINMinute
Recommendation 21 codes
Rec21 codeName
BGBag
BABarrel
BXBox
CTCarton
CYCylinder
PKPackage
PXPallet
RLReel
SASack
STSheet
  
  
  

For a full list of unit of measure codes, see UN/ECE Recommendation 20 and UN/ECE Recommendation 21.