Skip to main content
Anchor to PriceRuleDiscountCode

PriceRuleDiscountCode

object

Requires read_price_rules access scope.

A discount code of a price rule.

•

The application that created the discount code.

•
String!non-null

The code to apply the discount.

•
ID!non-null

A globally-unique ID.

•
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.


Was this section helpful?

Deprecated mutations

•
mutation

Create a price rule using the input.

Arguments

•

The input fields to create a price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•

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


Fields

•

The newly created price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•

The newly created discount code.

•

The list of errors that occurred from executing the mutation.

•
[UserError!]!non-null

The list of errors that occurred from executing the mutation.

•
mutation

Create a discount code for a price rule.

Arguments

•
String!required

The code to create for the price rule.

•
ID!required

The ID of the price rule object.


Fields

•

The updated price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•

The newly created discount code.

•

The list of errors that occurred from executing the mutation.

•
[UserError!]!non-null

The list of errors that occurred from executing the mutation.

•
mutation

Update a discount code for a price rule.

Arguments

•
String!required

The new code of a price rule.

•
ID!required

The ID of the price rule object.


Fields

•

The updated price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•

The updated discount code.

•

The list of errors that occurred from executing the mutation.

•
[UserError!]!non-null

The list of errors that occurred from executing the mutation.

•
mutation

Updates a price rule using its ID and an input.

Arguments

•
ID!required

ID of the price rule to update.

•

The input fields to update a price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•

The input fields to update the discount code of the price rule.


Fields

•

The updated price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•

The updated discount code.

•

The list of errors that occurred from executing the mutation.

•
[UserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

•
interface

Was this section helpful?