Skip to main content

productVariantChannelListingAvailabilityUpdate Mutation

Toggle whether a product variant can be bought in the given channels, without touching its prices. An unavailable variant is hidden from customers and cannot be added to a checkout or an order.

Added in Saleor 3.23.

Requires the MANAGE_PRODUCTSpermission.
productVariantChannelListingAvailabilityUpdate(
id: ID
input: [ProductVariantChannelListingAvailabilityInput!]!
sku: String
): ProductVariantChannelListingAvailabilityUpdate
Details
type ProductVariantChannelListingAvailabilityUpdate {
variant: ProductVariant
errors: [ProductVariantChannelListingAvailabilityUpdateError!]!
}

Arguments​

id ● ID​

ID of a product variant to update.

input ● [ProductVariantChannelListingAvailabilityInput!]!​

List of channels to toggle the variant's availability in. Max 100 items.

sku ● String​

SKU of a product variant to update.

Type​

ProductVariantChannelListingAvailabilityUpdate​

Toggle whether a product variant can be bought in the given channels, without touching its prices. An unavailable variant is hidden from customers and cannot be added to a checkout or an order.

Added in Saleor 3.23.

Requires the MANAGE_PRODUCTSpermission.