I have also a discount code input and I want to check if the discount code available. However, due to security purposes, I can't access the discount object. The same thing for the Storefront API, it doesn't allow accessing the priceRule field.
Is there another method to achieve that?
I've read the documentation of app proxy, but I'm still stuck with how to receive data from the store.
I created a new app in Shopify partners and I followed all the steps in the documentation.