Discount code lookup on external domain

Highlighted
New Member
1 0 0

Hi,

We have an external domain with our ReactJS app. What we'd like to do is allow a user to enter a discount code and for us to query whether that code exists in Shopify.

Any calls to an endpoint will result in a CORS error

As far as I'm aware we can't connect to the Admin API remotely and the Storefront API doesn't have the functionality to look this up?
I don't need any details other than if the code exists and is active.

Any help would be greatly appreciated.

Thanks

0 Likes