Product metadata

This section describes various metadata that is available for the products.

Metadata availability and contents may vary depending on the product type. At the moment several types of metadata are available:

{
    "product": {
        "metadata": {
            "apparel": { /* ... */ },
            "electric": { /* ... */ },
            "externalIds": { /* ... */ },
            "food": { /* ... */ },
            "generic": { /* ... */ },
            "media": { /* ... */ },
            "printBook": { /* ... */ }
        }
    }
}

Generic objects

Measurement object

Measurement represents various measurements (weights, sizes, amounts, dimensions) for metadata properties values.

It is a mapping of one or several measures (currently supported: equalslessThangreaterThan) to value objects. Each value object consists of a value field that holds a numeric or a string measurement and a unit field, containing the unit in which this measurement is represented.

// Precise measurement example
{
    "equals": {
        "value": 12.5,
        "unit": "ml"
    }
}

// Measurement range example
{
    "greaterThan": {
        "value": 10,
        "unit": "mg"
    },
    "lessThan": {
        "value": 20,
        "unit": "mg"
    }
}

// String measurement value example
{
    "equals": {
        "value": "XS",
        "unit": "size_label"
    }
}