--- title: DiscountCombinesWithInput - GraphQL Admin description: >- The input fields to determine which discount classes the discount can combine with. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCombinesWithInput md: >- https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCombinesWithInput.md metadata: domain: admin --- # Discount​Combines​With​Input input\_object The input fields to determine which discount classes the discount can combine with. ## Fields * order​Discounts [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false Whether the discount combines with the [order discount](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) class. * product​Discounts [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false Whether the discount combines with the [product discount](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) class. * product​Discounts​With​Tags​On​Same​Cart​Line [Product​Discounts​With​Tags​On​Same​Cart​Line​Input](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/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. * shipping​Discounts [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false Whether the discount combines with the [shipping discount](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) class. *** ## Input objects using this input * [Discount​Automatic​App​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountAutomaticAppInput#fields-combinesWith) 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](https://help.shopify.com/manual/discounts/discount-types). * [Discount​Automatic​Basic​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountAutomaticBasicInput#fields-combinesWith) INPUT OBJECT The input fields for creating or updating an [amount off discount](https://help.shopify.com/manual/discounts/discount-types/percentage-fixed-amount) that's automatically applied on a cart and at checkout. During creation the required fields are: * `customerGets` * `startsAt` * `title` * [Discount​Automatic​Bxgy​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountAutomaticBxgyInput#fields-combinesWith) INPUT OBJECT The input fields for creating or updating a [buy X get Y discount (BXGY)](https://help.shopify.com/manual/discounts/discount-types/buy-x-get-y) that's automatically applied on a cart and at checkout. When creating, required fields are: * `customerBuys` * `customerGets` * `startsAt` * `title` * [Discount​Automatic​Free​Shipping​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountAutomaticFreeShippingInput#fields-combinesWith) INPUT OBJECT The input fields for creating or updating a [free shipping discount](https://help.shopify.com/manual/discounts/discount-types/free-shipping) that's automatically applied on a cart and at checkout. When creating, required fields are: * `startsAt` * `title` * [Discount​Code​App​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCodeAppInput#fields-combinesWith) 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](https://shopify.dev/docs/apps/build/functions). Use these input fields when you need advanced or custom discount capabilities that aren't supported by [Shopify's native discount types](https://help.shopify.com/manual/discounts/discount-types). * [Discount​Code​Basic​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCodeBasicInput#fields-combinesWith) INPUT OBJECT The input fields for creating or updating an [amount off discount](https://help.shopify.com/manual/discounts/discount-types/percentage-fixed-amount) 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` * [Discount​Code​Bxgy​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCodeBxgyInput#fields-combinesWith) INPUT OBJECT The input fields for creating or updating a [buy X get Y discount (BXGY)](https://help.shopify.com/manual/discounts/discount-types/buy-x-get-y) 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` * [Discount​Code​Free​Shipping​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCodeFreeShippingInput#fields-combinesWith) INPUT OBJECT The input fields for creating or updating a [free shipping discount](https://help.shopify.com/manual/discounts/discount-types/free-shipping) 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` *** ## Map ### Input objects using this input * [Discount​Automatic​App​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountAutomaticAppInput#fields-combinesWith) * [Discount​Automatic​Basic​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountAutomaticBasicInput#fields-combinesWith) * [Discount​Automatic​Bxgy​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountAutomaticBxgyInput#fields-combinesWith) * [Discount​Automatic​Free​Shipping​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountAutomaticFreeShippingInput#fields-combinesWith) * [Discount​Code​App​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCodeAppInput#fields-combinesWith) * [Discount​Code​Basic​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCodeBasicInput#fields-combinesWith) * [Discount​Code​Bxgy​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCodeBxgyInput#fields-combinesWith) * [Discount​Code​Free​Shipping​Input.combinesWith](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/DiscountCodeFreeShippingInput#fields-combinesWith)