A product variant represents a different version of a product, such as differing colors or differing sizes.
Fields
availableForSale ● Boolean
Indicates if the product variant is available for sale.
barcode ● String
The barcode (for example, ISBN, UPC, or GTIN) associated with the variant.
compareAtPrice ● Money
The original price of the variant. This can be used to mark a variant as on sale, when compareAtPrice is higher than price.
More
createdAt ● Datedeprecated
Creation time
displayName ● Stringdeprecated
Display name of the variant
id ● ID!non-null
A globally-unique ID.
image ● Image
Image associated with the product variant.
More
inventoryPolicy ● ProductVariantInventoryPolicydeprecated
Whether customers are allowed to place an order for the product variant when it's out of stock.
More
inventoryQuantity ● Int
The total sellable quantity of the variant.
inventoryTracker ● Stringdeprecated
Whether to track inventory
metafield ● Metafield
Metafield associated with the variant
More
metafields ● [Metafield]
Metafields associated with the variant
More
parentProduct ● Product
The parent product object of the variant.
More
price ● Money
The product variant’s price.
More
product ● String
Product ID
requiresShipping ● Boolean
Whether a customer needs to provide a shipping address when placing an order for the product variant.
selectedOptions ● [SelectedOption]
List of product options applied to the variant.
More
sku ● String
The SKU (stock keeping unit) associated with the variant.
taxable ● Boolean
Whether tax is charged when the product variant is sold
title ● String
The product variant’s title.
updatedAt ● Datedeprecated
Update time
weight ● String
The weight of the product variant in the unit system specified with weight_unit.
weightUnit ● String
Unit of measurement for weight.
  • g
  • kg
  • lb
  • oz
  • zh_kg
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?