Skip to main content
Anchor to priceRuleDiscountCodeUpdate

priceRuleDiscountCodeUpdate

mutation

Requires write_price_rules access scope.

Deprecated. Use discountCodeBasicUpdate instead.

Update a discount code for a price rule.

String!required

The new code of a price rule.

ID!required

The ID of the price rule object.


Was this section helpful?

Anchor to PriceRuleDiscountCodeUpdatePayload returnsPriceRuleDiscountCodeUpdatePayload 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?