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.
| Type | Description |
|---|---|
| WeightUnit | WeightUnit - Weight-based measurement units (kg, g, lb, oz) |
| LengthUnit | LengthUnit - Length-based measurement units (m, cm, mm, ft, in, yd) |
| AreaUnit | AreaUnit - Area-based measurement units |
| VolumeUnit | VolumeUnit - Volume-based measurement units |
| TimeUnit | TimeUnit - Time-based measurement units |
unit field in the Measurement object accepts one of these values. The specific units available depend on the MeasurementType of the product.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.