Skip to main content
Version: 3.x

ProductVariantCreateInput

No description

input ProductVariantCreateInput {
attributes: [AttributeValueInput!]!
sku: String
name: String
trackInventory: Boolean
weight: WeightScalar
preorder: PreorderSettingsInput
quantityLimitPerCustomer: Int
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
product: ID!
stocks: [StockInput!]
}

Fields

ProductVariantCreateInput.attributes ● [AttributeValueInput!]! non-null input

List of attributes specific to this variant.

ProductVariantCreateInput.sku ● String scalar

Stock keeping unit.

ProductVariantCreateInput.name ● String scalar

Variant name.

ProductVariantCreateInput.trackInventory ● Boolean scalar

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.

ProductVariantCreateInput.weight ● WeightScalar scalar

Weight of the Product Variant.

ProductVariantCreateInput.preorder ● PreorderSettingsInput input

Determines if variant is in preorder.

Added in Saleor 3.1

ProductVariantCreateInput.quantityLimitPerCustomer ● Int scalar

Determines maximum quantity of ProductVariant,that can be bought in a single checkout.

Added in Saleor 3.1

ProductVariantCreateInput.metadata ● [MetadataInput!] list input

Fields required to update the product variant metadata.

Added in Saleor 3.8

ProductVariantCreateInput.privateMetadata ● [MetadataInput!] list input

Fields required to update the product variant private metadata.

Added in Saleor 3.8

ProductVariantCreateInput.externalReference ● String scalar

External ID of this product variant.

Added in Saleor 3.10

ProductVariantCreateInput.product ● ID! non-null scalar

Product ID of which type is the variant.

ProductVariantCreateInput.stocks ● [StockInput!] list input

Stocks of a product available for sale.

Member of

productVariantCreate mutation


Was this page helpful?