PriceRuleItemEntitlements object
The items to which this price rule applies. This may be multiple products, product variants, collections or combinations of the aforementioned.
Required access
read_price_rules
access scope.
On this page
Connections
- collections (
[CollectionConnection!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/collection)
)
The collections to which the price rule applies.
Argument |
Description |
after (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) ) |
Returns the elements that come after the specified cursor. |
before (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) ) |
Returns the elements that come before the specified cursor. |
first (
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) ) |
Returns up to the first n elements from the list. |
last (
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) ) |
Returns up to the last n elements from the list. |
reverse (
[Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) ) |
Reverse the order of the underlying list. Default value: false |
- productVariants (
[ProductVariantConnection!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/productvariant)
)
The product variants to which the price rule applies.
Argument |
Description |
after (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) ) |
Returns the elements that come after the specified cursor. |
before (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) ) |
Returns the elements that come before the specified cursor. |
first (
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) ) |
Returns up to the first n elements from the list. |
last (
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) ) |
Returns up to the last n elements from the list. |
reverse (
[Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) ) |
Reverse the order of the underlying list. Default value: false |
- products (
[ProductConnection!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/product)
)
The products to which the price rule applies.
Argument |
Description |
after (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) ) |
Returns the elements that come after the specified cursor. |
before (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) ) |
Returns the elements that come before the specified cursor. |
first (
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) ) |
Returns up to the first n elements from the list. |
last (
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) ) |
Returns up to the last n elements from the list. |
reverse (
[Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) ) |
Reverse the order of the underlying list. Default value: false |
Fields
- targetAllLineItems (
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
)
Whether the price rule applies to all line items.
Types that return PriceRuleItemEntitlements
[PriceRule.itemEntitlements](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/pricerule#itementitlements-2021-01)