Server side API call in cart page

Highlighted
New Member
5 0 0

We are currently calling third party(our API to OPT-IN that user in our system) API using ajax in cart page for OPT-IN feature. Consider that user is already created in our system at the time of registration using webhook. Now just need  to OPT-IN that user.

But by calling API using ajax we are making Access Token Visible. So, it's not secure way to implemt API'S. To implement API'S securely we have to call API'S at server side.

So, anyone can tell us how to call Server Side API's.

Thanks in Advance

0 Likes
Shopify Expert
9352 0 1230

When you looked over the API docs, where did you get stuck?
https://help.shopify.com/en/api/getting-started

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
New Member
5 0 0

Hi Jason,

Thanks for reply. Already checked that doc. But didn't foud How to implement third party API in any front end page.

I am creating public APP. In that checking the user status in our system using API. Depending upon API response have to decide Show/Hide one button (that button is added in cart page.). I am talking about implementation of our API for creating APP. That API need Access Token which is provided by us.

So, for security purpose of access token need to implement server side API.

0 Likes