Skip to main content
mutation

Requires write_price_rules access scope.

Deprecated. Use discountCodeBasicUpdate instead.

Updates a price rule using its ID and an input.

ID!required

ID of the price rule to update.

PriceRuleInput!required

The input fields to update a price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
PriceRuleDiscountCodeInput

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


Was this section helpful?

Anchor to PriceRuleUpdatePayload returnsPriceRuleUpdatePayload returns

PriceRule

The updated price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
PriceRuleDiscountCode

The updated discount code.

[PriceRuleUserError!]!non-null

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?