Making a network call from custom Liquid pages with our own App

Highlighted
New Member
2 0 2

We're in the process of building our own custom/private app (not sure which one to roll with yet).

 

We've figured out webhooks for orders and also placing orders from our own server. Now we're curious as to whether it's possible to make network calls from custom pages we make (.liquid files)

 

What's the scope of making network calls from these custom pages? 

1. Can we retrieve customer data on this page, or order data (or any data we want for this page from Shopify)
2. Can we make an API call to Shopify from this page?
3. Can we make an API call to our server from this page?

1 Like
Highlighted
Pathfinder
76 16 26

Hi @Solias99, You can definitely make network calls using the AJAX

 

Caution: Some of your calls might require you to add API key or password, for example, your use case 2. And customers will have access to it and your data will be exposed.

- Feel free to contact me at waqas4346@gmail.com
- Was my reply helpful? Click Like and Accept as Solution
2 Likes
Highlighted
New Member
2 0 2

Thanks for your input. We'll make sure we don't expose any API keys in our liquid code, so we'll probably use the app or our proxied client to handle requests.

 

Can you also shed some light on why of late, public apps are required to go through a review procedure? Is it because of the use of proxies and Shopify being worried about the fact that they can be misused?

 

Is there any form of an app that we can create that:
1) uses proxies and

2) does not have to be public?

 

Edit: This app that we build is only for a single store and will be using proxying.

1 Like