Help Needed: Accessing Total Sales and Sales Report Data Using REST API or GraphQL

Hello Shopify Community,

I hope you’re all doing well. I’m currently working on integrating Shopify data into my application, and I’m seeking some guidance on how to access total sales and sales report data programmatically.

  1. Total Sales: I’m looking to retrieve the total sales for a specific time period. Is there a recommended approach for fetching this data using either the REST API or Graph QL?

  2. Sales Report Data: Additionally, I’d like to gather more detailed sales report data, such as individual order details, sales amounts, and other relevant information. What would be the best way to go about this using the available APIs?

If anyone has experience or examples they could share, I would greatly appreciate it. Whether it’s using the REST API or Graph QL, any insights or code snippets would be immensely helpful.

Thank you in advance for your assistance!