GraphQL API
Search…
GraphQL API
General
Introduction
Features
GraphQL
Getting Started
Overview
Architecture
Playground
API Key (Authentication)
SDK
CLI
GraphQL API
Products
Categories
Checkout & Payments
Orders
Customers
Api data reference
Inputs
Mutations
Objects
Address
Channel
Checkout
Order
Product
ProductImage
ProductOption
ProductPrice
ProductVariant
Return
Supplier
Data Types
Entities
Powered By
GitBook
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
}
Previous
ProductPrice
Next
Return
Last modified
6mo ago
Copy link
Outline