Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How Can I Plug Into Multiple Storefronts

How Can I Plug Into Multiple Storefronts

Qcos
Visitor
1 0 0

I run a company focused around Shopify store acquisitions, and I'd like to create a process through which sellers come to my website, give be their API  credentials, and authorize me to pull their performance data from their shopify site.

I know that this is possible- as a number of my competitors do so.

Can someone please advise as to how I can extract the data when given the API key?  

Reply 1 (1)

JoesIdeas
Shopify Partner
2468 228 665

You can use the Shopify Analytics API: https://shopify.dev/docs/admin-api/rest/reference/analytics.

That allows you to programmatically generate reports similar to what you can do inside the Shopify admin. It's a bit restrictive (store needs to be on Shopify Advanced), so another tactic you can use (if they authorize it) is to tap the Shopify Order API to get order data for the last 30 days, then use some math on your server to get average order value, total sales, etc.

• Creator of Order Automator [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tactics