Skip to main content
Version: 3.x

productVariantStocksCreate

Creates stocks for product variant.

Requires one of the following permissions: MANAGE_PRODUCTS.

productVariantStocksCreate(
stocks: [StockInput!]!
variantId: ID!
): ProductVariantStocksCreate

Arguments

productVariantStocksCreate.stocks ● [StockInput!]! non-null input

Input list of stocks to create.

productVariantStocksCreate.variantId ● ID! non-null scalar

ID of a product variant for which stocks will be created.

Type

ProductVariantStocksCreate object

Creates stocks for product variant.

Requires one of the following permissions: MANAGE_PRODUCTS.