Skip to main content
enum

The type of lines (line_item or shipping_line) to which the price rule applies.

The price rule applies to line items.

The price rule applies to shipping lines.


Was this section helpful?

•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 PriceRule object and DiscountCode union, and the REST Admin API's deprecatedPriceRule resource.



Was this section helpful?