Way to exclude a tagged product from discount code during checkout

Topic summary

Goal: prevent additional discount codes from applying to specific tagged products whose prices are already reduced via API during checkout on a Shopify Plus store.

Context and constraints:

  • Shopify Scripts were explored but don’t appear to control behavior after a discount code is applied.
  • Shopify Functions API seems promising for custom logic, but it’s currently unavailable for Shopify Plus shops, likely due to reliance on the Scripts Editor app.

Request:

  • Looking for guidance, resources, or examples to implement this restriction, and confirmation on whether it’s possible.

Status:

  • No solution or workaround identified yet; the question remains open.
Summarized with AI on February 5. AI used: gpt-5.

Hello there,

We are working on a custom app where certain tagged product have their price reduced through API. And we are hoping to restrict applying additional discount code on these tagged products during checkout.

We have Shopify Plus store so I looked into Shopify Scripts as well but there does not seem to handle actions once a discount code is applied. Can someone please guide me to a solution or resource for doing this? And if someone has tried this and if this is possible somehow?

I found https://shopify.dev/api/functions from https://shopify.dev/apps/app-extensions/list which looks something promising but it says “Function APIs aren’t yet available for shops on a Shopify Plus plan.” which I think is because of the Shopify Scripts Editor app.

Any resource on the subject will be highly appreciated. Thank you so much.