For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Developer
Developer
Search docs
/
Ask AI
Dev Portal
Docs
API Reference
Learn
Community
Changelog
GraphQL
Storefront
Types
Objects
Variant
OBJECT
Copy page
Variant
Fields
id
String
Required
The ID of an object
entityId
Integer
Required
Id of the variant.
sku
String
Required
Sku of the variant.
options
OptionConnection
Required
The options which define a variant.
Show arguments and fields
productOptions
ProductOptionConnection
Required
Product options that compose this variant.
Show arguments and fields
metafields
MetafieldConnection
Required
Metafield data related to a variant.
Show arguments and fields
isPurchasable
Boolean
Required
Whether the product can be purchased
weight
Measurement
Optional
The variant's weight. If a weight was not explicitly specified on the variant, this will be the product's weight.
Show 2 fields
height
Measurement
Optional
The variant's height. If a height was not explicitly specified on the variant, this will be the product's height.
Show 2 fields
width
Measurement
Optional
The variant's width. If a width was not explicitly specified on the variant, this will be the product's width.
Show 2 fields
depth
Measurement
Optional
The variant's depth. If a depth was not explicitly specified on the variant, this will be the product's depth.
Show 2 fields
defaultImage
Image
Optional
Default image for a variant.
Show 5 fields
prices
Prices
Optional
Variant prices
Show arguments and fields
inventory
VariantInventory
Optional
Variant inventory
Show 3 fields
upc
String
Optional
Universal product code.
mpn
String
Optional
Manufacturer part number.
gtin
String
Optional
Global trade item number.
Referenced by
Fields
VariantEdge.node