Anchor to priceRuleDeactivateprice
priceRuleDeactivate
mutationDeprecated
Requires access scope.
Deactivate a price rule. Use instead.
Anchor to PriceRuleDeactivatePayload returnsPriceRuleDeactivatePayload returns
- Anchor to priceRuleprice•
Rule The deactivated price rule.
- Anchor to priceRuleUserErrorsprice•
Rule User Errors [PriceRule non-nullUser Error!]! The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation priceRuleDeactivate($id: ID!) {
priceRuleDeactivate(id: $id) {
priceRule {
# PriceRule fields
}
priceRuleUserErrors {
# PriceRuleUserError fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100"
}
{
"id": "gid://shopify/<objectName>/10079785100"
}