Skip to main content

ProductVariantStocksDelete Object

Deletes stocks from product variant.

Requires the MANAGE_PRODUCTSpermission.

Triggers the following webhook events:

  • PRODUCT_VARIANT_OUT_OF_STOCK (async): A product variant stock is deleted from a warehouse.
  • PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL (async): A product variant is out of stock in a channel (non click-and-collect warehouses).

Note: Triggered only when the useLegacyShippingZoneStockAvailability shop setting is disabled.

  • PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is out of stock in a channel (click-and-collect warehouses).

Note: Triggered only when the useLegacyShippingZoneStockAvailability shop setting is disabled.

type ProductVariantStocksDelete {
productVariant: ProductVariant
stockErrors: [StockError!]! @deprecated
errors: [StockError!]!
}

Fields

productVariant ● ProductVariant

Updated product variant.

errors ● [StockError!]!

Show deprecatedHide deprecated

stockErrors ● [StockError!]!

DEPRECATED

Use errors field instead.

Returned By

productVariantStocksDelete mutation