--- title: PriceRule - GraphQL Admin description: >- A set of conditions, including entitlements and prerequisites, that must be met for a discount code to apply. > Note: > Use the types and queries included our [discount tutorials](https://shopify.dev/docs/apps/selling-strategies/discounts/getting-started) instead. These will replace the GraphQL Admin API's [`PriceRule`](https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceRule) object and [`DiscountCode`](https://shopify.dev/docs/api/admin-graphql/latest/unions/DiscountCode) union, and the REST Admin API's deprecated[`PriceRule`](https://shopify.dev/docs/api/admin-rest/unstable/resources/pricerule) resource. api_version: 2026-01 api_name: admin type: object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceRule' md: 'https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceRule.md' --- # Price​Rule object Requires `read_price_rules` access scope. A set of conditions, including entitlements and prerequisites, that must be met for a discount code to apply. *** Note Use the types and queries included our [discount tutorials](https://shopify.dev/docs/apps/selling-strategies/discounts/getting-started) instead. These will replace the GraphQL Admin API's [`PriceRule`](https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceRule) object and [`DiscountCode`](https://shopify.dev/docs/api/admin-graphql/latest/unions/DiscountCode) union, and the REST Admin API's deprecated[`PriceRule`](https://shopify.dev/docs/api/admin-rest/unstable/resources/pricerule) resource. *** ## Fields * allocationLimit * allocationMethod * app * combinesWith * createdAt * customerSelection * discountClasses * discountCodes * discountCodesCount * endsAt * events * features * hasTimelineComment * id * itemEntitlements * itemPrerequisites * legacyResourceId * oncePerCustomer * prerequisiteQuantityRange * prerequisiteShippingPriceRange * prerequisiteSubtotalRange * prerequisiteToEntitlementQuantityRatio * shareableUrls * shippingEntitlements * startsAt * status * summary * target * title * totalSales * usageCount * usageLimit * validityPeriod * valueV2 ### Deprecated fields * discountClass: deprecated * entitlementToPrerequisiteQuantityRatio: deprecated * traits: deprecated * value: deprecated *** ## Map ### Fields with this object * [DraftOrderDiscountNotAppliedWarning.priceRule](https://shopify.dev/docs/api/admin-graphql/latest/objects/DraftOrderDiscountNotAppliedWarning#field-DraftOrderDiscountNotAppliedWarning.fields.priceRule) *** ## Interfaces * CommentEventSubject * HasEvents * LegacyInteroperability * Node *** ## PriceRule Implements ### Implements * [Comment​Event​Subject](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/CommentEventSubject) * [Has​Events](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/HasEvents) * [Legacy​Interoperability](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/LegacyInteroperability) * [Node](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/Node)