I am wondering if it is possible to access admin API from storefront?
I am building an app that needs to create a coupon code automatically based on a value set to every customer.
Solved! Go to the solution
I'm pretty sure it's possible, but I don't think you should if you plan to do so directly. I can't think of any ways you would do this without exposing your access token in the DOM, which is ill advised. Your interface on the storefront should delegate to your back end by making an ajax call back to your app, which will make the admin API request.