Get the current applied discount code in a shipping discount function

Is it possible to detect which discount codes are currently applied to the cart within a discount function?

How can I get the currently applied discount codes in a shipping discount function.

This doesn’t seem legit, why would shopify help team have a gmail address? and you also only have 4 posts.

I’m not interested in an email exchange. If you can’t answer here for the benefit of all, which is what this forum is for, then you aren’t legit, Extremely frustrating looking for answers and having to be spammed.

Yes code snippet would be helpful, although what was sent looks like chatgpt to me, which is using deprecated apis

And actually not helpful as what you posted displays no knowledge of a function.. please delete your replies so I can get legit help

1 Like

This is not possible. Your best bet is to upvote and comment on this GitHub discussion to let Shopify know how important this is to you: https://github.com/Shopify/function-examples/discussions/359

Best,

Tobe