Anchor to PriceRuleTargetPrice
enumPrice Rule Target
The type of lines (line_item or shipping_line) to which the price rule applies.
Anchor to Valid valuesValid values
- Anchor to LINE_ITEMLINE_
ITEM The price rule applies to line items.
- Anchor to SHIPPING_LINESHIPPING_
LINE The price rule applies to shipping lines.
Was this section helpful?
Anchor to FieldsFields
- •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 instead. These will replace the GraphQL
object and REST Admin
and
resources.
Was this section helpful?