Anchor to priceRuleActivateprice
priceRuleActivate
mutationDeprecated
Requires access scope.
Activate a price rule. Use instead.
Anchor to PriceRuleActivatePayload returnsPriceRuleActivatePayload returns
- Anchor to priceRuleprice•
Rule The activated 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 priceRuleActivate($id: ID!) {
priceRuleActivate(id: $id) {
priceRule {
# PriceRule fields
}
priceRuleUserErrors {
# PriceRuleUserError fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100"
}
{
"id": "gid://shopify/<objectName>/10079785100"
}