GraphQL API
Search…
ProductVariant
Represents a version of the product that varies is a defined category, such as Size or Color.
Each variant may have a different price or quantity.
class ProductOption {
title: String
price: ProductPrice
quantity: Int
}

Fields

title (String)
The name of the variant. It is generated as a combination of the option names and option values.
price (ProductPrice)
quantity (Int)
Stock updated of the variant. This has to be taken into account at the moment of displaying the products, specially on the checkout before an order to check the stock availability of the product.

Example

{
"title": "Size-Large",
"price": 1500.00,
"quantity": 432
}
Last modified 6mo ago
Copy link
Outline