Skip to main content

ProductVariantBulkCreateInput Input Type

No description

input ProductVariantBulkCreateInput {
attributes: [BulkAttributeValueInput!]!
sku: String
name: String
trackInventory: Boolean
weight: WeightScalar
preorder: PreorderSettingsInput @deprecated
quantityLimitPerCustomer: Int
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
stocks: [StockInput!]
channelListings: [ProductVariantChannelListingAddInput!]
}

Fields

attributes ● [BulkAttributeValueInput!]!

List of attributes specific to this variant.

sku ● String

Stock keeping unit.

name ● String

Variant name.

trackInventory ● 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.

weight ● WeightScalar

Weight of the Product Variant.

quantityLimitPerCustomer ● Int

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

metadata ● [MetadataInput!]

Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

privateMetadata ● [MetadataInput!]

Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

externalReference ● String

External ID of this product variant.

stocks ● [StockInput!]

Stocks of a product available for sale.

channelListings ● [ProductVariantChannelListingAddInput!]

List of prices assigned to channels.

Show deprecatedHide deprecated

preorder ● PreorderSettingsInput

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.

Determines if variant is in preorder.

Member Of

ProductBulkCreateInput input ● productVariantBulkCreate mutation