ProductVariantBulkCreateInput Input Type
input ProductVariantBulkCreateInput {
attributes: [BulkAttributeValueInput!]!
sku: String
name: String
trackInventory: Boolean
weight: WeightScalar
preorder: PreorderSettingsInput @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.")
quantityLimitPerCustomer: Int
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
stocks: [StockInput!]
channelListings: [ProductVariantChannelListingAddInput!]
}
Fields
attributes
attributes · [BulkAttributeValueInput!]!
List of attributes specific to this variant.
sku
sku · String
Stock keeping unit.
name
name · String
Variant name.
trackInventory
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
weight · WeightScalar
Weight of the Product Variant.
preorder
preorder · PreorderSettingsInput
Determines if variant is in preorder.
quantityLimitPerCustomer
quantityLimitPerCustomer · Int
Determines maximum quantity of ProductVariant,that can be bought in a single checkout.
metadata
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
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
externalReference · String
External ID of this product variant.
stocks
stocks · [StockInput!]
Stocks of a product available for sale.
channelListings
channelListings · [ProductVariantChannelListingAddInput!]
List of prices assigned to channels.
Used by
Schema: Saleor 3.23.43. Download SDL.