productVariantStocksUpdate Mutation
Updates stocks for product variant.
productVariantStocksUpdate(
sku: String
stocks: [StockInput!]!
variantId: ID
): ProductVariantStocksUpdate
Details
type ProductVariantStocksUpdate {
productVariant: ProductVariant
bulkStockErrors: [BulkStockError!]! @deprecated
errors: [BulkStockError!]!
}
Arguments
sku ● String
SKU of product variant for which stocks will be updated.
stocks ● [StockInput!]!
Input list of stocks to create or update.
variantId ● ID
ID of a product variant for which stocks will be updated.
Type
ProductVariantStocksUpdate
Updates stocks for product variant.