Skip to main content
Anchor to PriceRuleDiscountCode

PriceRuleDiscountCode

object

Requires read_price_rules access scope.

A discount code of a price rule.

•App

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
Deprecated

Arguments

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


Fields

•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
•mutation
Deprecated

Arguments

•String!
required

The code to create for the price rule.

•ID!
required

The ID of the price rule object.


Fields

•PriceRule

The updated 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
•mutation
Deprecated

Arguments

•String!
required

The new code of a price rule.

•ID!
required

The ID of the price rule object.


Fields

•PriceRule

The updated price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•PriceRuleDiscountCode

The updated discount code.

•[PriceRuleUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!
non-nullDeprecated
•mutation
Deprecated

Arguments

•ID!
required

ID of the price rule to update.

•PriceRuleInput!
required

The input fields to update a price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•PriceRuleDiscountCodeInput

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


Fields

•PriceRule

The updated price rule.

Anchor to priceRuleDiscountCodepriceRuleDiscountCode
•PriceRuleDiscountCode

The updated discount code.

•[PriceRuleUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!
non-nullDeprecated

Was this section helpful?

•interface

Was this section helpful?