Skip to main content
Log inSign up
mutationDeprecated

Requires write_price_rules access scope.

Updates a price rule using its ID and an input. Use discountCodeBasicUpdate instead.

•
ID!required

ID of the price rule to update.

•

The input fields to update a price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•

The input fields to update the discount code of the price rule.


Was this section helpful?

Anchor to PriceRuleUpdatePayload returnsPriceRuleUpdatePayload returns

•

The updated price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•

The updated discount code.

•

The list of errors that occurred from executing the mutation.

•
[UserError!]!non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?