--- title: PriceRuleTarget - GraphQL Admin description: The type of lines (line_item or shipping_line) to which the price rule applies. api_version: 2025-10 api_name: admin type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/enums/priceruletarget md: https://shopify.dev/docs/api/admin-graphql/latest/enums/priceruletarget.md --- # Price​Rule​Target enum The type of lines (line\_item or shipping\_line) to which the price rule applies. ## Valid values * LINE\_​ITEM The price rule applies to line items. * SHIPPING\_​LINE The price rule applies to shipping lines. *** ## Fields * [Price​Rule.target](https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceRule#field-PriceRule.fields.target) OBJECT 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](https://shopify.dev/docs/apps/selling-strategies/discounts/getting-started) instead. These will replace the GraphQL `PriceRule` object and REST Admin `PriceRule` and `DiscountCode` resources. *** ## Map ### Fields with this enum * <-|[Price​Rule.target](https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceRule#field-PriceRule.fields.target)