productVariantStocksDelete Mutation
Deletes stocks from product variant.
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.
productVariantStocksDelete(
sku: String
variantId: ID
warehouseIds: [ID!]
): ProductVariantStocksDelete
Details
type ProductVariantStocksDelete {
productVariant: ProductVariant
stockErrors: [StockError!]! @deprecated
errors: [StockError!]!
}
Arguments
sku ● String
SKU of product variant for which stocks will be deleted.
variantId ● ID
ID of product variant for which stocks will be deleted.
warehouseIds ● [ID!]
Input list of warehouse IDs.
Type
ProductVariantStocksDelete
Deletes stocks from product variant.
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.