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