ProductVariantStocksDelete Object
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.
Applied directives
@webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: [])
type ProductVariantStocksDelete {
productVariant: ProductVariant
stockErrors: [StockError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [StockError!]!
}
Fields
productVariant
productVariant · ProductVariant
Updated product variant.
stockErrors
stockErrors · [StockError!]!
errors
errors · [StockError!]!
Used by
Schema: Saleor 3.23.43. Download SDL.