Skip to main content
Anchor to priceRuleDiscountCodeCreate

priceRuleDiscountCodeCreate

mutation

Requires write_price_rules access scope.

Deprecated. Use discountRedeemCodeBulkAdd instead.

Create a discount code for a price rule.

String!required

The code to create for the price rule.

ID!required

The ID of the price rule object.


Was this section helpful?

Anchor to PriceRuleDiscountCodeCreatePayload returnsPriceRuleDiscountCodeCreatePayload returns

PriceRule

The updated price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
PriceRuleDiscountCode

The newly created 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?