Price Rule Feature
The list of features that can be supported by a price rule.
Anchor to Valid valuesValid values
- BULK
- BUY_ONE_GET_ONE
- BUY_ONE_GET_ONE_WITH_ALLOCATION_LIMIT
- QUANTITY_DISCOUNTS
- SPECIFIC_CUSTOMERS
- Anchor to BULKBULK
The price rule supports bulk discounts.
- Anchor to BUY_ONE_GET_ONEBUY_
ONE_ GET_ ONE The price rule supports Buy X, Get Y (BXGY) discounts.
- Anchor to BUY_ONE_GET_ONE_WITH_ALLOCATION_LIMITBUY_
ONE_ GET_ ONE_ WITH_ ALLOCATION_ LIMIT The price rule supports Buy X, Get Y (BXGY) discounts that specify a custom allocation limit.
- Anchor to QUANTITY_DISCOUNTSQUANTITY_
DISCOUNTS The price rule supports discounts that require a quantity.
- Anchor to SPECIFIC_CUSTOMERSSPECIFIC_
CUSTOMERS The price rule targets specific customers.
Anchor to FieldsFields
- •OBJECT
A set of conditions, including entitlements and prerequisites, that must be met for a discount code to apply.
NoteUse the types and queries included our discount tutorials instead. These will replace the GraphQL Admin API's
object andunion, and the REST Admin API's deprecatedresource.Note:Use the types and queries included our discount tutorials instead. These will replace the GraphQL Admin API's
object andunion, and the REST Admin API's deprecatedresource.Note: Use the types and queries included our <a href="https://shopify.dev/docs/apps/selling-strategies/discounts/getting-started">discount tutorials</a> instead. These will replace the GraphQL Admin API's <a href="https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceRule"><code><span class="PreventFireFoxApplyingGapToWBR">Price<wbr/>Rule</span></code></a> object and <a href="https://shopify.dev/docs/api/admin-graphql/latest/unions/DiscountCode"><code><span class="PreventFireFoxApplyingGapToWBR">Discount<wbr/>Code</span></code></a> union, and the REST Admin API's deprecated<a href="https://shopify.dev/docs/api/admin-rest/unstable/resources/pricerule"><code><span class="PreventFireFoxApplyingGapToWBR">Price<wbr/>Rule</span></code></a> resource.