Anchor to priceRuleDiscountCodeCreateprice
mutationprice Rule Discount Code Create
Requires access scope.
Deprecated. Use discountRedeemCodeBulkAdd instead.
Create a discount code for a price rule.
Anchor to Arguments
Arguments
- Anchor to codecode•String!required
The code to create for the price rule.
- Anchor to priceRuleIdprice•ID!required
Rule Id The ID of the price rule object.
Was this section helpful?
- Anchor to priceRuleprice•Price
Rule Rule The updated price rule.
- Anchor to priceRuleDiscountCodeprice•Price
Rule Discount Code Rule Discount Code The newly created discount code.
- Anchor to priceRuleUserErrorsprice•[Price
Rule User Errors Rule User Error!]!non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•[User
Errors Error!]!non-nullDeprecated The list of errors that occurred from executing the mutation.
Was this section helpful?