PriceRuleDiscountCode - admin-graphql - OBJECT
Version: 2024-07
Description:
A discount code of a price rule.
Access Scopes
`read_price_rules` access scope.
Fields
app
: App - The application that created the discount code.
code
: String! - The code to apply the discount.
id
: ID! - A globally-unique ID.
usageCount
: Int! - 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.
Connections
Related queries
Related mutations
priceRuleCreate
Create a price rule using the input.
priceRuleDiscountCodeCreate
Create a discount code for a price rule.
priceRuleDiscountCodeUpdate
Update a discount code for a price rule.
priceRuleUpdate
Updates a price rule using its ID and an input.
Related Unions
Examples