We have a Shopify store and an external Rest API. We have full control over our Rest API and can make updates to it to support whatever authentication method may be necessary. We would like to pull data from our Rest API into our Shopify store and use that data in business logic and display some of the data as well. We feel this is something that many Shopify stores must be currently doing. What are the best practices for integrating a Shopify Store with an external Rest API that returns JSON or XML. We've found information that's piecemeal but can't seem to get clarity on the whole picture. The links below are what we've found so far. Has anyone been successful in calling an external API?
Depending on what you are trying to do, there might be a few options. However, the question is unclear on what you are trying to update from the external API. But here are some approaches that you may consider.
You can create a private app that calls the external URL and updates the Shopify API. If it is only a minor updates and you dont need to run it often, this might be an option.
You can write a simple console app on your server that calls your API and then updates Shopify APIs. If you want to do many updates and add scheduled updates for inventory products, etc., this might be the best route. In this case, you will have to maintain the sync app on your servers and maintain APIs changes, but you have a lot more control over this and can scale up down as needed.
You can use an automation and integration tool like ours to create a flow that can accomplish this. With this option, you can schedule it to run every x hours once it is set up, and you don't have to maintain the local app or maintain Shopify API changes.
Here is an example of how you would do this on our platform.
The example below is creating or updating a product in Shopify from an external API.
The example above is super simple, and you can add all kinds of logic and conditions based on what you are trying to do to extend it.
If you need help, you can reach out to me at firstname.lastname@example.org
In addition to receiving the response from the external API, we would like to be able to manipulate liquid code based on the response of a third party API. Any insight the community could provide on how to do that would be greatly appreciated.
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...By Arno Nov 27, 2023
You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...By Skye Nov 8, 2023