ProductVariant
ObjectFields returned for product variant.
Fields
- String
barcode The barcode of the product variant.
- ProductVariantEventConnection!
events Retrieves a paginated list of events for a specific product variant.
- ID!
id The ID of the product variant.
- Media
image Gets the featured image for the variant, the featured image is the first media of type image
- InventoryEntryConnection!
inventories A list of inventories associated with the product variant.
- MediaConnection!
media A list of media associated with the variant.
- [MetadataItem!]!
metadata Custom metadata key/value pairs for the product variant.
- [Metafield!]!
metafields A list of metafields associated with the variant. If a metafield definition has no explicit assignment for this variant, the definition’s default value is returned.
- String!
name The name of the product variant.
- PriceConnection!
prices Gets the prices for a product variant.
- Product!
product The product that the variant is associated with.
- ID!
productId The product id associated with this product variant.
- ProductVariantPublicationConnection!
publications A list of publications associated with the product variant.
- Long!
publicationsCount The number of channel publications that are associated with the product variant.
- [SelectedAttribute!]!
selectedAttributes Gets the selected attributes for a product variant.
- String
sku The SKU of the product variant.
- VariantStatus!
status The status of the product variant.
Possible enum valuesACTIVEThe variant is available through published catalog experiences.
DRAFTThe variant is retained as a draft and is not published.
- [Translation!]!
translations Translations registered for this product variant.
- Weight
weight The weight of the product variant.
Queries
Retrieves a single variant of a product by its decoded identifier.
Retrieves a paged list of product variants with optional filtering, sorting, and full-text search capabilities.
Mutations
Creates multiple variants for a product in bulk.
Updates multiple variants of a product in bulk.