How to Set Up a Shopify Integration as a Shopify App Developer with Multiple Stores on Pipedream?

This topic was automatically generated from Slack. You can find the original thread here.

hi :wave: new to pipedream here - looking for some help w/ setting up a shopify integration

from what I can see, the two sources available are for connecting a single store to which we have admin access, and set up a partner account to get sales/marketing/account management related workflows

is there any way to set up a shopify integration as a shopify app dev - which means there might be multiple stores (which we don’t control / know the shop name ahead of time)?

The main Shopify Pipedream integration is meant for end merchants to use in their own Shopify store automations.

The Shopify Partner Pipedream integration actually ties into the Shopify Partner API

You need to use the built in HTTP triggers + looking up merchant access tokens from your app’s database to leverage the Shopify Pipedream actions

Do we have access to the shopify actions/triggers/data model using that approach?

Yes, you can use externally stored account credentials in any Pipedream action:

You’ll just need to connect your app’s database to Pipedream, and retrieve the merchant’s access token before performing the Shopify action

how about the different data models of the Shopify API?
or is it more like setting up a webhook, and manually parsing the data structures etc?

The Pipedream Shopify actions are interfaces on top of the Shopify Admin API, so I’m not sure exactly how to answer your question. You can take a look at all of the Shopify actions/triggers source code on Pipedream’s Github Repository

Maybe if you could share an example of an automation you’re trying to build, then I can answer your question a bit better

The Pipedream Shopify actions are interfaces on top of the Shopify Admin API
I think this answers my question

essentially i’m trying to build an automation where “on order created” → “create entry in my db” type flow
for that, the “on order created”, i’d like to use the pre-built Shopify actions vs manually parsing the webhook payload and mapping to the “create entry in my db” action

Got it, yes you can definitely do that in Pipedream.

If all of the data you need is contained in the order from the Order Created webhook, then you might not need to use any actions at all

You can register the Pipedream workflow HTTP trigger as the order.create webhook URL, then differentiate by merchant based on the *.[myshopify.com](http://myshopify.com) value in the x-shopify-domain header