Skip to main content
Anchor to DiscountCombinesWithInput

DiscountCombinesWithInput

input_object

The input fields to determine which discount classes the discount can combine with.

•Boolean
Default:false

Whether the discount combines with the order discount class.

•Boolean
Default:false

Whether the discount combines with the product discount class.

Anchor to productDiscountsWithTagsOnSameCartLineproductDiscountsWithTagsOnSameCartLine
•ProductDiscountsWithTagsOnSameCartLineInput

Controls which product discounts can apply together on the same cart line. By default, only one product discount applies per line. Available only on a Shopify Plus plan and requires the productDiscounts field to be set to true.

For discounts to apply together, they must match tags in both directions. Each discount has two tag sets: the tags that identify the discount, and the tags that it agrees to apply with. Use the tags field on the discount input to set the discount's own tags. Use this field to set the tags that the discount can apply with. Two discounts apply together only if each one allows at least one tag that the other is tagged with. Any number of product discounts can apply to the same line if this two-way match holds for every pair in the group.

Example: Discount A is tagged with LOYALTY and allows SEASONAL, and Discount B is tagged with SEASONAL and allows LOYALTY. They apply together. To add a third discount, it must meet the same mutual-match rule with both A and B.

•Boolean
Default:false

Whether the discount combines with the shipping discount class.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•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.

•INPUT OBJECT

The input fields for creating or updating an amount off discount that's automatically applied on a cart and at checkout.

During creation the required fields are:

  • customerGets
  • startsAt
  • title
•INPUT OBJECT

The input fields for creating or updating a buy X get Y discount (BXGY) that's automatically applied on a cart and at checkout.

When creating, required fields are:

  • customerBuys
  • customerGets
  • startsAt
  • title
•INPUT OBJECT

The input fields for creating or updating a free shipping discount that's automatically applied on a cart and at checkout.

When creating, required fields are:

  • startsAt
  • title
•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.

•INPUT OBJECT

The input fields for creating or updating an amount off discount that's applied on a cart and at checkout when a customer enters a code. Amount off discounts can be a percentage off or a fixed amount off.

When creating, required fields are:

  • code
  • context (or deprecated customerSelection)
  • customerGets
  • startsAt
  • title
•INPUT OBJECT

The input fields for creating or updating a buy X get Y discount (BXGY) that's applied on a cart and at checkout when a customer enters a code.

When creating, required fields are:

  • code
  • context (or deprecated customerSelection)
  • customerBuys
  • customerGets
  • startsAt
  • title
•INPUT OBJECT

The input fields for creating or updating a free shipping discount that's applied on a cart and at checkout when a customer enters a code.

When creating, required fields are:

  • code
  • context (or deprecated customerSelection)
  • startsAt
  • title

Was this section helpful?