--- title: PriceRuleTarget - GraphQL Admin description: The type of lines (line_item or shipping_line) to which the price rule applies. api_version: 2025-07 api_name: admin type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/2025-07/enums/priceruletarget md: https://shopify.dev/docs/api/admin-graphql/2025-07/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/2025-07/objects/PriceRule#field-PriceRule.fields.target) OBJECT 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\ instead. These will replace the GraphQL Admin API\'s \\\Price\Rule\\\ object and \\\Discount\Code\\\ union, and the REST Admin API\'s deprecated\\\Price\Rule\\\ resource. *** *** ## Map ### Fields with this enum * [Price​Rule.target](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/PriceRule#field-PriceRule.fields.target)