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
1mutation priceRuleDeactivate($id: ID!) {2 priceRuleDeactivate(id: $id) {3 priceRule {4 # PriceRule fields5 }6 priceRuleUserErrors {7 # PriceRuleUserError fields8 }9 userErrors {10 field11 message12 }13 }14}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100"3}
{
"id": "gid://shopify/<objectName>/10079785100"
}