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 details about the app extension that's providing the discount type. This information includes the app extension's name and client ID, App Bridge configuration, discount class, function ID, and other metadata about the discount type, including the discount type's name and description.
- •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- •INPUT OBJECT
The input fields for creating or updating an automatic discount that's managed by an app.
Use these input fields when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.
- •OBJECT
The
object lets you manage amount off discounts that are automatically applied on a cart and at checkout. Amount off discounts give customers a fixed value or a percentage off the products in an order, but don't apply to shipping costs.
The
object stores information about automatic amount off discounts that apply to specific products and variants, collections, or all items in a cart.
Learn more about working with Shopify's discount model, including limitations and considerations.
Note- •OBJECT
The
object lets you manage buy X get Y discounts (BXGY) that are automatically applied on a cart and at checkout. BXGY discounts incentivize customers by offering them additional items at a discounted price or for free when they purchase a specified quantity of items.
The
object stores information about automatic BXGY discounts that apply to specific products and variants, collections, or all items in a cart.
Learn more about working with Shopify's discount model, including limitations and considerations.
Note- Anchor to DiscountAutomaticFreeShipping.discountClassesDiscount•OBJECT
Automatic Free Shipping. discount Classes The
object lets you manage free shipping discounts that are automatically applied on a cart and at checkout. Free shipping discounts are promotional deals that merchants offer to customers to waive shipping costs and encourage online purchases.
The
object stores information about automatic free shipping discounts that apply to specific products and variants, collections, or all items in a cart.
Learn more about working with Shopify's discount model, including limitations and considerations.
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- •INPUT OBJECT
The input fields for creating or updating a code discount, where the discount type is provided by an app extension that uses Shopify Functions.
Use these input fields when you need advanced or custom discount capabilities that aren't supported by Shopify's native discount types.
- •OBJECT
The
object lets you manage amount off discounts that are applied on a cart and at checkout when a customer enters a code. Amount off discounts give customers a fixed value or a percentage off the products in an order, but don't apply to shipping costs.
The
object stores information about amount off code discounts that apply to specific products and variants, collections, or all items in a cart.
Learn more about working with Shopify's discount model, including limitations and considerations.
Note- •OBJECT
The
object lets you manage buy X get Y discounts (BXGY) that are applied on a cart and at checkout when a customer enters a code. BXGY discounts incentivize customers by offering them additional items at a discounted price or for free when they purchase a specified quantity of items.
The
object stores information about BXGY code discounts that apply to specific products and variants, collections, or all items in a cart.
Learn more about working with Shopify's discount model, including limitations and considerations.
Note- •OBJECT
The
object lets you manage free shipping discounts that are applied on a cart and at checkout when a customer enters a code. Free shipping discounts are promotional deals that merchants offer to customers to waive shipping costs and encourage online purchases.
The
object stores information about free shipping code discounts that apply to specific products and variants, collections, or all items in a cart.
Learn more about working with Shopify's discount model, including limitations and considerations.
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
- •OBJECTDeprecated
- •OBJECTDeprecated
- •OBJECTDeprecated