Skip to main content
mutation

Requires write_price_rules access scope.

Deprecated. Use discountCodeBasicCreate instead. This will be removed in 2024-10.

Create a price rule using the input.

•PriceRuleInput!
required

The input fields to create a price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•PriceRuleDiscountCodeInput

The input fields to create a discount code for the price rule.


Was this section helpful?

Anchor to PriceRuleCreatePayload returnsPriceRuleCreatePayload returns

•PriceRule

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