What we need is to be able send a single product# or part# to our external site and return on hand inventory levels and price back to the shopify store. We have an API endpoint in place to return this info. Not sure how to return this data back into Shopify just yet. What skills/knowledge are needed to be able to call our API endpoint from within a shopify app proxy and return that data back to a Shopify page. An example of liquid code returned by the App Proxy Server would be nice.
I’ve read Shopify’s documentation on App Proxy, but I’m not completely sure I understand the process.
The documentation feels as if it’s skipping over certain parts.
For Example, take this section:
- To add a proxy to your app, make sure the app is set up for the online store area of Shopify
I’m confused. Why are we setting up private App in online store when it says on this page that only public Apps work with App Proxies?
- 1. From your partner dashboard, click apps. To add a proxy to your app.
We jumped URLs? from the online store to the partner dashboard between the heading and first paragraph?
2. Click the name of your app.
I don’t have an app name yet or the app created yet. - click on the Create app button?
What would I put in as my App URL? What am I putting in Whitelisted redirection URL(s)?
3. Click Extensions.
4. In the App proxy section, click Add proxy.
- App proxy section?, click on online store.. you will find it there.
-
Select a prefix from the Sub path prefix drop-down list. If you want to add a sub path, then enter it in the Sub path field. These settings determine which HTTP requests to Shopify are proxied to the proxy URL entered in the next step. For example, if the sub path prefix is apps, and the sub path is store-pickup, then any path in your shop after https://your-store.myshopify.com/apps/store-pickup is proxied to the provided proxy URL.
-
Enter the URL of your proxy server in the Proxy URL field. This is the URL that will be proxied from the path that you entered in the previous step.
- How do I tell shopify that any http(s) requests for single products such as:
https://progodirect.com/collections/volkel-hex-tap-s-bit-drive/products/tv01-67026, or
https://progodirect.com/collections/volkel-tap-wrench/products/tv01-10001 should be sent to the Proxy URL?
I found another read about Shopify Application Proxy in this Medium thread:
The pictures helped see the flow.
We need a Shopify Application Proxy to be able to call our external API to get price and inventory levels and return
that data to be formatted within a liquid product template. The way I am picturing the App Proxy working is by intercepting URLs for a single products. i.e. https://progodirect.com/collections/volkel-hex-tap-s-bit-drive/products/tv01-67026 and parsing our the information needed (ie Part#) and calling our API endpoint.
The data returned by our API endpoint can either be in XML or JSON format.
Hoping someone can help us.
Best Regards,
Fuller.


