Shopify does not allow access to these reports via API. They used to via ShopifyQL, but this API has been discontinued. The only alternative via the Shopify API is to use the REST or GraphQL API and aggregate the data yourself.
So they do or don't provide the ability to pull report information via the API? It's not clear to me based on above. If they do provide via REST Admin API, which resource would you recommend? Because the Report Resources (this link) seem to give only information about the report, not the report data itself.
Thanks in advance.
They do not provide the ability to pull report results via the API. The only way to get that information via the API is to call the order API and add stuff up yourself.
Makes sense, and this is helpful.
Have you been able to arrive at certain stock reports they provide through this method?
For example, using Orders data and merging/joining to recreate the Sales Attributed to Marketing Report?
Yes, we have gathered this data using the Admin REST API. But we have a reporting app in the Shopify App Store, so that's what we do.
Can you please provide general steps to get Total Sales data for a date via Order or reports API. No where in Shopify document I can find this information. This is the most common test case most of our customer's use.
You would need to use the Shopify admin API - either REST or GraphQL. https://shopify.dev/api/admin
We have a reporting app where you could get this info via API. Please let me know if you’d be interested in this as an option.
Hi there - our app is called Report Toaster. It allows you choose from our 100+ report templates and make custom reports with any of your Shopify data. We also have a lot of features like scheduled reports, shared links and calculated fields. Feel free to check it out and let us know if we can help.
Does this provide REST endpoints? IF not. Why are we providing these Apps,What purpose it solves ? we need REST API which is Orders API but nowhere there are steps on how to match with sales report....Strangely, Shopify is pointing to all these apps. All I wanted was how to get total sales and reports from Orders API. All you provide is OrdersAPI which does not match with total sales and refunds on the sales report. almost every Post is asking for it. how to get it via Order's API? These are REST endpoints shouldn't Shopify provide the steps to calculate
these? Instead, every time the answer is goto order API and figure it out yourself. Shouldn't Shopify provide exact steps to use these API that matches the total sales and returns on the sales report ?
Just give us a POSTMAN collection of Total sales and return via Orders API instead of asking customers to figure out their own. Or at least provide basic steps ( Via Orders REST API).
Life will be much simpler if Shopify can provide a basic POSTMAN collection for their OWN Order API which does basic stuff i.e calculate the total sales and refunds for specific dates that will match the Sales report on Shopify. currently, I am getting close, but they are not an exact match.