Skip to main content

Disable variant

Use the Disable variants mutation to disable the purchase of variants from the store.

EXAMPLE-- Use this mutation to disable a specific variant like the iPhone 13 Pro Gold 128gb AT&T from being selected by thecustomer.

Mutation

mutation disableProductVariants($input: DisableProductVariantsInput!) {
disableProductVariants(input: $input) {
userErrors
variants {
configuration {
code
hexcode
name {
locale
value
}
}
edition {
code
id
inventory {
editionCode
id
sku
}
}
id
}
}
}

Was this page helpful?