Victor Giron
Victor Giron11mo ago

Connector to Shopify and Amazon

Hey everyone, I want to create an app to allow people to create, update and visualize their products from Shopify and Amazon. Is it possible to create a connector in Buildship that allow any user to input their API keys and all to create their own connection with their shopify and amazon accounts? I think this is called middleware? (Sorry I'm not technical)
9 Replies
Harini
Harini11mo ago
Hi @Victor Giron - this should be doeable. Lets try to break it down step by step to ensure we give you the right guidance. Can you check and verify this is what you are looking for: 1) Creation of an API in BuildShip, that takes in a user's Shopify or Amazon API key in the Request’s Authorization Header 2) Add that API key to the node that fetches the data from Shopify or Amazon and return the values. This is very much doeable. We don't have a pre-built node for fetching data from Shopify and Amazon but might be super easy to do using the AI generated node given these two ecosystem have a good API. cc @Gaurav Chadha perhaps you can take a look and add these nodes. For the passing in the API key of the user to the node, we have a guide on this here created by @Bhavya ✨ - lets add this to docs as well for easy access. Here in the attached workflow, you can replace the openAI node with Shopify/Amazon
Victor Giron
Victor Giron11mo ago
This is amazing! Thank you so much for putting this together!! and if I want the integration to listen to changes in Shopify and send them to my database to keep things always in sync and updated, is this also achievable?
Harini
Harini11mo ago
Currently you can do a CRON / Scheduled job that runs periodically to check and sync. or for a realtime sync, It should also be possible to handle this via their Webhooks by adding a BuildShip API as the handler. To set up webhooks in Shopify, go to Settings > Notifications and click Create webhook. Choose the event, format (JSON or XML), and enter your BuildShip API URL.
Victor Giron
Victor Giron11mo ago
That's perfect, where can i find the webhooks component?
No description
Harini
Harini11mo ago
So the webhook will be added on the Shopify side, say for example everytime any of these events happen, you can send the notification to a BuildShip API to handle it and do anything like keeping your database in sync. https://help.shopify.com/en/manual/orders/notifications/webhooks#create-webhooks So on BuildShip side you create a regular API trigger, and handle the incoming request. Deploy that API and use that API endpoint on Shopify to listen to a webhook event like "product creation" for example.
Shopify Help Center
Webhooks
Create webhooks so you always know when important events happen on your Shopify store.
Gaurav Chadha
Gaurav Chadha11mo ago
Sure, sounds good. I'll take a look.
Victor Giron
Victor Giron11mo ago
Oh I get it! So on the Buildship side is a normal API
Harini
Harini11mo ago
exactly 💯
Bhavya
Bhavya11mo ago
On it 👍