Measura API documentation · v1

MeasurementUnit

Union

The MeasurementUnit is a union type that combines all available unit options across all measurement types. The specific units available depend on the measurement type of the product.

Possible types

Scroll horizontally to see all columns.

TypeDescription
WeightUnitWeightUnit - Weight-based measurement units (kg, g, lb, oz)
LengthUnitLengthUnit - Length-based measurement units (m, cm, mm, ft, in, yd)
AreaUnitAreaUnit - Area-based measurement units
VolumeUnitVolumeUnit - Volume-based measurement units
TimeUnitTimeUnit - Time-based measurement units
Type: This is a union type (union of enums). The unit field in the Measurement object accepts one of these values. The specific units available depend on the MeasurementType of the product.
Related: This union type is used in the unit field of the Measurement object. The valid units for a specific product are determined by its measurementType field in the Product object. For type-specific unit lists, see WeightUnit, LengthUnit, AreaUnit, VolumeUnit, and TimeUnit.