Docs
Dashboard

ProductVariant

Object

Fields returned for product variant.

#

Fields


barcode
String

The barcode of the product variant.

events
ProductVariantEventConnection!

Retrieves a paginated list of events for a specific product variant.

id
ID!

The ID of the product variant.

image
Media

Gets the featured image for the variant, the featured image is the first media of type image

inventories
InventoryEntryConnection!

A list of inventories associated with the product variant.

media
MediaConnection!

A list of media associated with the variant.

metadata
[MetadataItem!]!

Custom metadata key/value pairs for the product variant.

metafields
[Metafield!]!

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.

name
String!

The name of the product variant.

prices
PriceConnection!

Gets the prices for a product variant.

product
Product!

The product that the variant is associated with.

productId
ID!

The product id associated with this product variant.

publications
ProductVariantPublicationConnection!

A list of publications associated with the product variant.

publicationsCount
Long!

The number of channel publications that are associated with the product variant.

selectedAttributes
[SelectedAttribute!]!

Gets the selected attributes for a product variant.

sku
String

The SKU of the product variant.

status
VariantStatus!

The status of the product variant.

Possible enum values
  • ACTIVE

    The variant is available through published catalog experiences.

  • DRAFT

    The variant is retained as a draft and is not published.

translations
[Translation!]!

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.