Rio here from the Shopify Community team. This does sound like a pretty unique use case. I don’t think this is possible as the discount requires some type of logic to apply the discount. So I’m not sure there is a way to create 1 dynamic code that applies different discounts.
Can you share more details on your use case so I can better understand the flow and see how you can achieve the same end result in another method?