RenderedVariant
Variant shape stored on redis products and echoed on rendered products.
Type: object
| Field | Type | Description |
|---|---|---|
title | string | |
id | number | |
inventory | number | |
price | string | null | |
compare_at_price | string | null | |
option1 optional | string | null | |
option2 optional | string | null | |
option3 optional | string | null | |
grams optional | number | |
[key: string] | any | Any further keys. |
Example (illustrative)
{
"title": "Linen shirt",
"id": 7712345678901,
"inventory": 12,
"price": "89.00",
"compare_at_price": "89.00",
"option1": "string",
"option2": "string",
"option3": "string",
"grams": 1
}Used by
- GET
/search/collection/{handle} - GET
/search/product/{handles} - GET
/search/query/{term} - GET
/zone/query - POST
/zone/query - GET
/zone/query/{id} - POST
/zone/query/{id}
Declared in api-types/src/models/product.ts.