The new combinesWith tag does not seem to work

The recently released combines with productDiscountsWithTagsOnSameCartLine option does not seem to work. I’d like some feedback if I might be using it wrong, or it if it is actually broken.

I have two discount functions, and each has an an instance of a discount.

Discount A is an automatic

Discount B is a code based discount

Merchant wants them to stack on line items, which this new feature is supposed to allow.

We have ensured that both our discounts have

"combinesWith": {
    "orderDiscounts": false,
    "productDiscounts": true,
    "shippingDiscounts": false,
    "productDiscountsWithTagsOnSameCartLine": [
        "N4X"
    ]
}

However when we try to combine out discounts we are still faced with them standard combination error:

<COUPON CODE> couldn't be used with your existing discounts. you already have a better combination.

I have made sure of the configurations, and also that all the discounts are using 2026-04 API

Has anyone been able to use this new feature and/or have some insight here.

Thanks

Could you share the request id from the request where you see the combination error? Thanks!

Hi Linda! Thanks for the reply.

I do not see a request ID anymore in the Dev Dashboard. Would the invocation ID be what you want?

For the two functions that are running, here invocations for a single cart where I have the issue

Function 1: 01740652-d847-404b-8610-592bec73441c 
Function 2: d236c6e5-2f9b-4a7f-b809-b0a9366f53f6 <-- This one actually applied

Thanks!

Thanks, that was enough for me to find the request in our logs (request id 019e02c4-0af2-7f17-ae44-0caa851448aa-1778162862).

For automatic discount A and code discount B to combine on the same cart line, you need to add tags to both discounts using the tagsAdd mutation or the tags field on the appropriate discount update mutation (e.g., discountAutomaticAppUpdate, like this:

Discount A

  • tags: [“N4X”]
  • combinesWith.productDiscountsWithTagsOnSameCartLine: [“N4X”]

Discount B

  • tags: [“N4X”]
  • combinesWith.productDiscountsWithTagsOnSameCartLine: [“N4X”]

Thanks! going Going to go try that after lunch but it makes sense. I was only using half of what was needed. I thought the combinesWith tag section i was using was all that was needed.

I know the feature is new, but is this documented somewhere. We saw the update in the release logs for the 30th, and go excited but couldn’t find clear documentation about it.

Thanks again for your help.

The feature is documented here and also there’s a brief description on combinesWith.productDiscountsWithTagsOnSameCartLine itself.

The first one is geared to people using core discount, and the second, which I had read, did not click to me until after you pointed our I need to use the tag feature. Its a bit of a situation where I was looking at this myopically, but also the description might benefit from something to smack the reader with a “I need to tag this elsewhere in the discount”. Just a thought, and it might just be me who didn’t understand.

Thank you again for your help, I have to go test this still but it makes sense!

Hey @Linda-Shopify , is it possible to use this with a Buy X Get Y discount together with an Amount Off Products discount?

I created both discounts in Shopify and added the loyalty tag to each one. I also used GraphQL to update the discounts and add the tag to the combine settings, but it still does not allow both discounts to apply to the same line items.

I’ve added both discounts below. As you can see, both have the tag, and productDiscountsWithTagsOnSameCartLine also includes the same tag.

{
“codeDiscountNodeByCode”: {
“codeDiscount”: {
“__typename”: “DiscountCodeBasic”,
“codesCount”: {
“count”: 1
},
“tags”: [
“loyalty”
],
“title”: “WELCOME”,
“combinesWith”: {
“orderDiscounts”: true,
“productDiscounts”: true,
“productDiscountsWithTagsOnSameCartLine”: [
“loyalty”
],
“shippingDiscounts”: true
}
}
}
}

/////

{
“codeDiscountNodeByCode”: {
“codeDiscount”: {
“__typename”: “DiscountCodeBxgy”,
“codesCount”: {
“count”: 1
},
“summary”: “Spend $100.00, get 1 item free • For 2 customers”,
“tags”: [
“loyalty”
],
“title”: “Test GWP”,
“combinesWith”: {
“orderDiscounts”: true,
“productDiscounts”: true,
“productDiscountsWithTagsOnSameCartLine”: [
“loyalty”
],
“shippingDiscounts”: true
}
}
}
}

Yes, but it’s a bit nuanced. We only support combining the Amount Off Product discount on the same items that form the Y of a Buy X Get Y, not on the X items.

For example, if your combining discounts are “buy 1 pencil get 1 eraser free” and “$1 off pencils”, $1 off pencils will not apply if the cart contains only 1 pencil and 1 eraser because the pencil is reserved as the X part of the the Buy X Get Y discount (assuming the free eraser is a better discount than $1 off the pencil).