---
title: ProductVariant Object
seo:
  title: ProductVariant Object
  description: 'Object: ProductVariant Object'
slug: api-reference/products/objects/product-variant
sidebar:
  label: ProductVariant
search:
  tags:
    - API reference
    - Products
lastModified: '2026-08-24'
---

Represents a version of a product such as different size or color.



```graphql
type ProductVariant implements Node & ObjectWithMetadata & ObjectWithAttributes {
  id: ID!
  privateMetadata: [MetadataItem!]!
  privateMetafield(key: String!): String
  privateMetafields(keys: [String!]): Metadata
  metadata: [MetadataItem!]!
  metafield(key: String!): String
  metafields(keys: [String!]): Metadata
  assignedAttribute(slug: String!): AssignedAttribute
  assignedAttributes(limit: PositiveInt = 100): [AssignedAttribute!]!
  name: String!
  sku: String
  product: Product!
  trackInventory: Boolean!
  quantityLimitPerCustomer: Int
  weight: Weight
  channel: String
  channelListings: [ProductVariantChannelListing!]
  pricing(address: AddressInput): VariantPricingInfo
  attributes(variantSelection: VariantAttributeScope): [SelectedAttribute!]! @deprecated(reason: "Use the `assignedAttributes` field instead.")
  margin: Int
  quantityOrdered: Int
  revenue(period: ReportingPeriod): TaxedMoney
  images: [ProductImage!] @deprecated(reason: "Use the `media` field instead.")
  media: [ProductMedia!]
  translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation
  stocks(address: AddressInput @deprecated, countryCode: CountryCode @deprecated(reason: "Use `address` argument instead.")): [Stock!]
  quantityAvailable(address: AddressInput @deprecated, countryCode: CountryCode @deprecated(reason: "Use `address` argument instead.")): Int
  preorder: PreorderData @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")
  created: DateTime!
  updatedAt: DateTime!
  externalReference: String
}
```


## Interfaces

[`Node`](/api-reference/miscellaneous/interfaces/node), [`ObjectWithMetadata`](/api-reference/miscellaneous/interfaces/object-with-metadata), [`ObjectWithAttributes`](/api-reference/attributes/interfaces/object-with-attributes)

## Fields

### id [#id]

**`id`** · [`ID!`](/api-reference/miscellaneous/scalars/id)

The ID of the product variant.
### privateMetadata [#private-metadata]

**`privateMetadata`** · [`[MetadataItem!]!`](/api-reference/miscellaneous/objects/metadata-item)

List of private metadata items. Requires staff permissions to access.
### privateMetafield [#private-metafield]

**`privateMetafield`** · [`String`](/api-reference/miscellaneous/scalars/string)

A single key from private metadata. Requires staff permissions to access.

Tip: Use GraphQL aliases to fetch multiple keys.

#### key [#product-variant-private-metafield-key]

**`key`** · [`String!`](/api-reference/miscellaneous/scalars/string)


### privateMetafields [#private-metafields]

**`privateMetafields`** · [`Metadata`](/api-reference/miscellaneous/scalars/metadata)

Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.

#### keys [#product-variant-private-metafields-keys]

**`keys`** · [`[String!]`](/api-reference/miscellaneous/scalars/string)


### metadata [#metadata]

**`metadata`** · [`[MetadataItem!]!`](/api-reference/miscellaneous/objects/metadata-item)

List of public metadata items. Can be accessed without permissions.
### metafield [#metafield]

**`metafield`** · [`String`](/api-reference/miscellaneous/scalars/string)

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

#### key [#product-variant-metafield-key]

**`key`** · [`String!`](/api-reference/miscellaneous/scalars/string)


### metafields [#metafields]

**`metafields`** · [`Metadata`](/api-reference/miscellaneous/scalars/metadata)

Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.

#### keys [#product-variant-metafields-keys]

**`keys`** · [`[String!]`](/api-reference/miscellaneous/scalars/string)


### assignedAttribute [#assigned-attribute]

**`assignedAttribute`** · [`AssignedAttribute`](/api-reference/attributes/interfaces/assigned-attribute)

Get a single attribute attached to product by attribute slug.



#### slug [#product-variant-assigned-attribute-slug]

**`slug`** · [`String!`](/api-reference/miscellaneous/scalars/string)

Slug of the attribute
### assignedAttributes [#assigned-attributes]

**`assignedAttributes`** · [`[AssignedAttribute!]!`](/api-reference/attributes/interfaces/assigned-attribute)

List of attributes assigned to this variant.



#### limit [#product-variant-assigned-attributes-limit]

**`limit`** · [`PositiveInt`](/api-reference/miscellaneous/scalars/positive-int)

Maximum number of attributes to return. Default is 100.

Default: `100`.
### name [#name]

**`name`** · [`String!`](/api-reference/miscellaneous/scalars/string)

The name of the product variant.
### sku [#sku]

**`sku`** · [`String`](/api-reference/miscellaneous/scalars/string)

The SKU (stock keeping unit) of the product variant.
### product [#product]

**`product`** · [`Product!`](/api-reference/products/objects/product)

The product to which the variant belongs.
### trackInventory [#track-inventory]

**`trackInventory`** · [`Boolean!`](/api-reference/miscellaneous/scalars/boolean)

Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used.
### quantityLimitPerCustomer [#quantity-limit-per-customer]

**`quantityLimitPerCustomer`** · [`Int`](/api-reference/miscellaneous/scalars/int)

The maximum quantity of this variant that a customer can purchase.
### weight [#weight]

**`weight`** · [`Weight`](/api-reference/miscellaneous/objects/weight)

The weight of the product variant.
### channel [#channel]

**`channel`** · [`String`](/api-reference/miscellaneous/scalars/string)

Channel given to retrieve this product variant. Also used by federation gateway to resolve this object in a federated query.
### channelListings [#channel-listings]

**`channelListings`** · [`[ProductVariantChannelListing!]`](/api-reference/products/objects/product-variant-channel-listing)

List of price information in channels for the product.



Requires one of the following permissions: `AUTHENTICATED_APP`, `AUTHENTICATED_STAFF_USER`.


### pricing [#pricing]

**`pricing`** · [`VariantPricingInfo`](/api-reference/products/objects/variant-pricing-info)

Lists the storefront variant's pricing, the current price and discounts, only meant for displaying.

#### address [#product-variant-pricing-address]

**`address`** · [`AddressInput`](/api-reference/miscellaneous/inputs/address-input)

Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.
### attributes [#attributes]

**`attributes`** · [`[SelectedAttribute!]!`](/api-reference/attributes/objects/selected-attribute)

List of attributes assigned to this variant.

:::warning[Deprecated]
Use the `assignedAttributes` field instead.
:::


#### variantSelection [#product-variant-attributes-variant-selection]

**`variantSelection`** · [`VariantAttributeScope`](/api-reference/products/enums/variant-attribute-scope)

Define scope of returned attributes.
### margin [#margin]

**`margin`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Gross margin percentage value.
### quantityOrdered [#quantity-ordered]

**`quantityOrdered`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Total quantity ordered.



Requires one of the following permissions: `MANAGE_PRODUCTS`.


### revenue [#revenue]

**`revenue`** · [`TaxedMoney`](/api-reference/miscellaneous/objects/taxed-money)

Total revenue generated by a variant in given period of time. Note: this field should be queried using `reportProductSales` query as it uses optimizations suitable for such calculations.



Requires one of the following permissions: `MANAGE_PRODUCTS`.



#### period [#product-variant-revenue-period]

**`period`** · [`ReportingPeriod`](/api-reference/miscellaneous/enums/reporting-period)


### images [#images]

**`images`** · [`[ProductImage!]`](/api-reference/products/objects/product-image)

List of images for the product variant.

:::warning[Deprecated]
Use the `media` field instead.
:::

### media [#media]

**`media`** · [`[ProductMedia!]`](/api-reference/products/objects/product-media)

List of media for the product variant.
### translation [#translation]

**`translation`** · [`ProductVariantTranslation`](/api-reference/products/objects/product-variant-translation)

Returns translated product variant fields for the given language code.

#### languageCode [#product-variant-translation-language-code]

**`languageCode`** · [`LanguageCodeEnum!`](/api-reference/miscellaneous/enums/language-code-enum)

A language code to return the translation for product variant.
### stocks [#stocks]

**`stocks`** · [`[Stock!]`](/api-reference/products/objects/stock)

Stocks for the product variant.



Requires one of the following permissions: `MANAGE_PRODUCTS`, `MANAGE_ORDERS`.



#### address [#product-variant-stocks-address]

**`address`** · [`AddressInput`](/api-reference/miscellaneous/inputs/address-input)

Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration. When `Shop.useLegacyShippingZoneStockAvailability` is disabled, this argument is ignored — stock availability is determined by the direct warehouse-channel link instead of shipping zones.

:::warning[Deprecated]
No longer supported
:::


#### countryCode [#product-variant-stocks-country-code]

**`countryCode`** · [`CountryCode`](/api-reference/miscellaneous/enums/country-code)

Two-letter ISO 3166-1 country code.

:::warning[Deprecated]
Use `address` argument instead.
:::

### quantityAvailable [#quantity-available]

**`quantityAvailable`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Quantity of a product available for sale in one checkout. Field value will be `null` when no `limitQuantityPerCheckout` in global settings has been set, and `productVariant` stocks are not tracked.

#### address [#product-variant-quantity-available-address]

**`address`** · [`AddressInput`](/api-reference/miscellaneous/inputs/address-input)

Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration. When `Shop.useLegacyShippingZoneStockAvailability` is disabled, this argument is ignored — stock availability is determined by the direct warehouse-channel link instead of shipping zones.

:::warning[Deprecated]
No longer supported
:::


#### countryCode [#product-variant-quantity-available-country-code]

**`countryCode`** · [`CountryCode`](/api-reference/miscellaneous/enums/country-code)

Two-letter ISO 3166-1 country code. When provided, the exact quantity from a warehouse operating in shipping zones that contain this country will be returned. Otherwise, it will return the maximum quantity from all shipping zones.

:::warning[Deprecated]
Use `address` argument instead.
:::

### preorder [#preorder]

**`preorder`** · [`PreorderData`](/api-reference/products/objects/preorder-data)

Preorder data for product variant.

:::warning[Deprecated]
Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.
:::

### created [#created]

**`created`** · [`DateTime!`](/api-reference/miscellaneous/scalars/date-time)

The date and time when the product variant was created.
### updatedAt [#updated-at]

**`updatedAt`** · [`DateTime!`](/api-reference/miscellaneous/scalars/date-time)

The date and time when the product variant was last updated.
### externalReference [#external-reference]

**`externalReference`** · [`String`](/api-reference/miscellaneous/scalars/string)

External ID of this product.

## Used by

- [AssignedMultiProductVariantReferenceAttribute (objects)](/api-reference/attributes/objects/assigned-multi-product-variant-reference-attribute)
- [AssignedSingleProductVariantReferenceAttribute (objects)](/api-reference/attributes/objects/assigned-single-product-variant-reference-attribute)
- [CheckoutLine (objects)](/api-reference/checkout/objects/checkout-line)
- [CheckoutLineProblemInsufficientStock (objects)](/api-reference/checkout/objects/checkout-line-problem-insufficient-stock)
- [_Entity (unions)](/api-reference/miscellaneous/unions/entity)
- [OrderLine (objects)](/api-reference/orders/objects/order-line)
- [Product (objects)](/api-reference/products/objects/product)
- [ProductVariantBackInStock (objects)](/api-reference/products/objects/product-variant-back-in-stock)
- [ProductVariantBackInStockForClickAndCollect (objects)](/api-reference/products/objects/product-variant-back-in-stock-for-click-and-collect)
- [ProductVariantBackInStockInChannel (objects)](/api-reference/products/objects/product-variant-back-in-stock-in-channel)
- [ProductVariantBulkCreate (objects)](/api-reference/products/objects/product-variant-bulk-create)
- [ProductVariantBulkResult (objects)](/api-reference/products/objects/product-variant-bulk-result)
- [ProductVariantChannelListingAvailabilityUpdate (objects)](/api-reference/products/objects/product-variant-channel-listing-availability-update)
- [ProductVariantChannelListingUpdate (objects)](/api-reference/products/objects/product-variant-channel-listing-update)
- [ProductVariantCountableEdge (objects)](/api-reference/products/objects/product-variant-countable-edge)
- [ProductVariantCreate (objects)](/api-reference/products/objects/product-variant-create)
- [ProductVariantCreated (objects)](/api-reference/products/objects/product-variant-created)
- [ProductVariantDelete (objects)](/api-reference/products/objects/product-variant-delete)
- [ProductVariantDeleted (objects)](/api-reference/products/objects/product-variant-deleted)
- [ProductVariantDiscountedPriceUpdated (objects)](/api-reference/products/objects/product-variant-discounted-price-updated)
- [ProductVariantMetadataUpdated (objects)](/api-reference/products/objects/product-variant-metadata-updated)
- [ProductVariantOutOfStock (objects)](/api-reference/products/objects/product-variant-out-of-stock)
- [ProductVariantOutOfStockForClickAndCollect (objects)](/api-reference/products/objects/product-variant-out-of-stock-for-click-and-collect)
- [ProductVariantOutOfStockInChannel (objects)](/api-reference/products/objects/product-variant-out-of-stock-in-channel)
- [ProductVariantPreorderDeactivate (objects)](/api-reference/products/objects/product-variant-preorder-deactivate)
- [ProductVariantReorderAttributeValues (objects)](/api-reference/products/objects/product-variant-reorder-attribute-values)
- [ProductVariantStockUpdated (objects)](/api-reference/products/objects/product-variant-stock-updated)
- [ProductVariantStocksCreate (objects)](/api-reference/products/objects/product-variant-stocks-create)
- [ProductVariantStocksDelete (objects)](/api-reference/products/objects/product-variant-stocks-delete)
- [ProductVariantStocksUpdate (objects)](/api-reference/products/objects/product-variant-stocks-update)
- [ProductVariantTranslatableContent (objects)](/api-reference/products/objects/product-variant-translatable-content)
- [ProductVariantTranslate (objects)](/api-reference/products/objects/product-variant-translate)
- [ProductVariantUpdate (objects)](/api-reference/products/objects/product-variant-update)
- [ProductVariantUpdated (objects)](/api-reference/products/objects/product-variant-updated)
- [Stock (objects)](/api-reference/products/objects/stock)
- [VariantMediaAssign (objects)](/api-reference/products/objects/variant-media-assign)
- [VariantMediaUnassign (objects)](/api-reference/products/objects/variant-media-unassign)
- [productVariant (queries)](/api-reference/products/queries/product-variant)

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
