Price Rule Discount Code
Requires access scope.
A discount code of a price rule.
Anchor to FieldsFields
- •App
The application that created the discount code.
- Anchor to codecode•String!non-null
The code to apply the discount.
- •ID!non-null
A globally-unique ID.
- Anchor to usageCountusage•Int!
Count non-null The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.
Anchor to MutationsMutations
Deprecated mutations
- •mutationDeprecated
- Anchor to priceRuleprice•Price
Rule Rule Input! required The input fields to create a price rule.
- Anchor to priceRuleDiscountCodeprice•Price
Rule Discount Code Rule Discount Code Input The input fields to create a discount code for the price rule.
Arguments
- Anchor to priceRuleprice•Price
Rule Rule The newly created 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
Fields
- •mutationDeprecated
- Anchor to codecode•String!required
The code to create for the price rule.
- Anchor to priceRuleIdprice•ID!
Rule Id required The ID of the price rule object.
Arguments
- 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
Fields
- •mutationDeprecated
- Anchor to codecode•String!required
The new code of a price rule.
- Anchor to priceRuleIdprice•ID!
Rule Id required The ID of the price rule object.
Arguments
- Anchor to priceRuleprice•Price
Rule Rule The updated price rule.
- Anchor to priceRuleDiscountCodeprice•Price
Rule Discount Code Rule Discount Code The updated 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
Fields
- •mutationDeprecated
- •ID!required
ID of the price rule to update.
- Anchor to priceRuleprice•Price
Rule Rule Input! required The input fields to update a price rule.
- Anchor to priceRuleDiscountCodeprice•Price
Rule Discount Code Rule Discount Code Input The input fields to update the discount code of the price rule.
Arguments
- Anchor to priceRuleprice•Price
Rule Rule The updated price rule.
- Anchor to priceRuleDiscountCodeprice•Price
Rule Discount Code Rule Discount Code The updated 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
Fields
- •ID!