Price Rule Discount Code
Requires access scope.
A discount code of a price rule.
Anchor to FieldsFields
- •
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•
Count Int!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
- •mutation
Create a price rule using the input.
- Anchor to priceRuleprice•
Rule PriceRule Input!required The input fields to create a price rule.
- Anchor to priceRuleDiscountCodeprice•
Rule Discount Code The input fields to create a discount code for the price rule.
Arguments
- Anchor to priceRuleprice•
Rule The newly created price rule.
- Anchor to priceRuleDiscountCodeprice•
Rule Discount Code The newly created discount code.
- Anchor to priceRuleUserErrorsprice•
Rule User Errors [PriceRule User Error!]!non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•
Errors [UserError!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Create a discount code for a price rule.
- Anchor to codecode•String!required
The code to create for the price rule.
- Anchor to priceRuleIdprice•
Rule Id ID!required The ID of the price rule object.
Arguments
- Anchor to priceRuleprice•
Rule The updated price rule.
- Anchor to priceRuleDiscountCodeprice•
Rule Discount Code The newly created discount code.
- Anchor to priceRuleUserErrorsprice•
Rule User Errors [PriceRule User Error!]!non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•
Errors [UserError!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Update a discount code for a price rule.
- Anchor to codecode•String!required
The new code of a price rule.
- Anchor to priceRuleIdprice•
Rule Id ID!required The ID of the price rule object.
Arguments
- Anchor to priceRuleprice•
Rule The updated price rule.
- Anchor to priceRuleDiscountCodeprice•
Rule Discount Code The updated discount code.
- Anchor to priceRuleUserErrorsprice•
Rule User Errors [PriceRule User Error!]!non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•
Errors [UserError!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a price rule using its ID and an input.
- •ID!required
ID of the price rule to update.
- Anchor to priceRuleprice•
Rule PriceRule Input!required The input fields to update a price rule.
- Anchor to priceRuleDiscountCodeprice•
Rule Discount Code The input fields to update the discount code of the price rule.
Arguments
- Anchor to priceRuleprice•
Rule The updated price rule.
- Anchor to priceRuleDiscountCodeprice•
Rule Discount Code The updated discount code.
- Anchor to priceRuleUserErrorsprice•
Rule User Errors [PriceRule User Error!]!non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•
Errors [UserError!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •