The Measurement object contains the measurement value and unit for a product variant. This represents the base measurement that defines how the product is sold.
| Field | Type | Description |
|---|---|---|
value | number | The numeric measurement value (e.g., 1, 0.5, 100) |
unit | MeasurementUnit | The unit for the measurement. Valid units depend on the product's measurement type. See MeasurementUnit for all available values. |
{value: 1, unit: 'kg'} represents 1 kilogram. This is the base unit measurement for the variant, and prices are calculated per this unit.unitMeasurement field in the Variant object. It is returned by the Get product with variants and Get specific variant endpoints.