Represents a unit of measurement to use with a quantity, such as ounces
or inches. Exactly one of the following fields are required: custom_unit
,
area_unit
, length_unit
, volume_unit
, and weight_unit
.
Measurement Unit
Name | Type | Tags | Description |
---|---|---|---|
custom_unit |
Measurement Unit Custom |
Optional | The information needed to define a custom unit, provided by the seller. |
area_unit |
str (Measurement Unit Area) |
Optional | Unit of area used to measure a quantity. |
length_unit |
str (Measurement Unit Length) |
Optional | The unit of length used to measure a quantity. |
volume_unit |
str (Measurement Unit Volume) |
Optional | The unit of volume used to measure a quantity. |
weight_unit |
str (Measurement Unit Weight) |
Optional | Unit of weight used to measure a quantity. |
generic_unit |
str (Measurement Unit Generic) |
Optional | - |
time_unit |
str (Measurement Unit Time) |
Optional | Unit of time used to measure a quantity (a duration). |
type |
str (Measurement Unit Unit Type) |
Optional | Describes the type of this unit and indicates which field contains the unit information. This is an ‘open’ enum. |
{
"custom_unit": {
"name": "name2",
"abbreviation": "abbreviation4"
},
"area_unit": "IMPERIAL_SQUARE_MILE",
"length_unit": "METRIC_MILLIMETER",
"volume_unit": "IMPERIAL_CUBIC_INCH",
"weight_unit": "IMPERIAL_WEIGHT_OUNCE"
}