Discount Class
The discount class that's used to control how discounts can be combined.
Anchor to Valid valuesValid values
- Anchor to ORDERORDER
The discount is combined with an order discount class.
- Anchor to PRODUCTPRODUCT
The discount is combined with a product discount class.
- Anchor to SHIPPINGSHIPPING
The discount is combined with a shipping discount class.
Anchor to FieldsFields
- •OBJECT
The
object stores information about automatic discounts that are managed by an app using Shopify Functions. Use
when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.
Learn more about creating custom discount functionality.
Note- •OBJECT
The
object stores information about code discounts that are managed by an app using Shopify Functions. Use
when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.
Learn more about creating custom discount functionality.
Note- •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.
Deprecated fields
- •OBJECTDeprecated