ProductVariant
A specific product variant, including price, availability, options, and inventory.
Type Definition
type ProductVariant {
product: Product
productId: Int
measureUnit: String
weightUnit: String
unit: String
selected: Boolean
image: Image
featuredImage: Image
previousPrices: PreviousPriceConnection
previousLowerPrice: PreviousPrice
isNew: Boolean
option1: ProductVariantOption
option2: ProductVariantOption
option3: ProductVariantOption
options: [ProductVariantOption]
url: String
id: Int
title: String
hasCustomizationsWithPrice: Boolean
customizations: [CustomizationGroup]
inPreview: Boolean
isAvailable: Boolean
isDirectlyBuyable: Boolean
gtin: String
modelNumber: String
rate: Float
bundleContents: [ProductBundleContent]
discountInformation: ProductDiscount
promotion: ProductPromotion
bulkRates: [ProductBulkRate]
originalNetPrice: Float
originalPrice: Float
netPrice: Float
price: Float
tax: Float
isOutOfStock: Boolean
stockAlarm: Boolean
discontinuedProduct: Boolean
inventoryManagement: String
notificationsSupported: Boolean
inventoryPolicy: String
attributeBasedInventory: Boolean
stock: Int
stockInOtherInventories: Boolean
quantitiesInOtherInventories: [InventoryQuantity]
sku: String
deliveryTime: DeliveryTime
weight: Float
length: Float
height: Float
width: Float
inCustomersWishlist: Boolean
customerHasPurchased: Boolean
additionalBuyButtons: Boolean
contentForAdditionalBuyButtons: String
financingOffers: Boolean
contentForFinancingOffers: String
createdAt: String
updatedAt: String
requiresShipping: Boolean
minQuantity: Int
maxQuantity: Int
metafields: [Metafield]!
metafield: Metafield
}Fields
Relationships
ProductVariant represents a specific version of a product with its own pricing, availability, and customization options. It maintains relationships with its parent Product, contains pricing information through PreviousPriceConnection and PreviousPrice, and includes variant-specific details such as options, images, customizations, and inventory data. The variant can also reference promotional and discount information, as well as bulk rates for quantity-based pricing. It supports metafield extensions for custom data storage.
Example
query {
product(id: 12345) {
defaultOrSelectedVariant {
id
title
sku
price
originalPrice
isAvailable
isOutOfStock
stock
options {
name
value
}
featuredImage {
url
altText
}
deliveryTime {
min
max
}
}
}
}Implements
This type does not implement any interfaces.