Anchor to section titled 'undefined'

priceRule
query
deprecated

Returns a code price rule resource by ID. Use codeDiscountNode instead.


Anchor to id
id
required

The ID of the PriceRule to return.


Was this section helpful?

Anchor to PriceRule
PriceRule
Access requirements

Price rules are a set of conditions, including entitlements and prerequisites, that must be met in order for a discount code to apply.

We recommend using the types and queries detailed at Getting started with discounts instead. These will replace the GraphQL PriceRule object and REST Admin PriceRule and DiscountCode resources.


Was this section helpful?