Skip to main content

ProductVariantInput

No description

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

Fields

ProductVariantInput.attributes ● [AttributeValueInput!] list input

List of attributes specific to this variant.

ProductVariantInput.sku ● String scalar

Stock keeping unit.

ProductVariantInput.name ● String scalar

Variant name.

ProductVariantInput.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.

ProductVariantInput.weight ● WeightScalar scalar

Weight of the Product Variant.

ProductVariantInput.preorder ● PreorderSettingsInput input

Determines if variant is in preorder.

Added in Saleor 3.1

ProductVariantInput.quantityLimitPerCustomer ● Int scalar

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

Added in Saleor 3.1

ProductVariantInput.metadata ● [MetadataInput!] list input

Fields required to update the product variant metadata.

Added in Saleor 3.8

ProductVariantInput.privateMetadata ● [MetadataInput!] list input

Fields required to update the product variant private metadata.

Added in Saleor 3.8

ProductVariantInput.externalReference ● String scalar

External ID of this product variant.

Added in Saleor 3.10

Member of

productVariantUpdate mutation


Was this page helpful?