How can I retrieve daily sales data via REST API?

Need urgent help on How To Get The Reports actual data By API ?
I need daily basis reports data like total sales, total orders, gross sales, profit, discounts etc.

as per daily basis.

I know customer report API does not provide the data itself in the results, we need to use Order API and writing own logic. But there are no documentation or basic steps to query this.

Can you please help / guide on how to get this via REST ?

What do you mean that there’s no documentation for getting orders via the REST api.

It’s all there, along with examples.

https://shopify.dev/api/admin-rest/2021-10/resources/order

as is transactions:

https://shopify.dev/api/admin-rest/2021-10/resources/transaction

Where are you actually getting stuck? What have you tried from the existing docs and couldn’t get working?

I need to get all the orders for a specific date.

First call for /admin/api/2021-10/orders.json
processed_at_min=“2022-07-10T00:00:00-08:00”
processed_at_max= “2022-07-10T11:59:59-08:00”
After that for remain pages In a while loop I am passing page_info for pagination.
However in page_info response the API is not honoring processed_at_min or max date and returning all the orders from previous dates.
I need orders processed only for a specific date.
Can you please help ?

Yes there is a way to achieve it
using the same REST API that is available
Maybe the problem you are facing is because of the size of the data you are requesting
Try to loop through your data because the Shopify API can provide maximum 250 records at a time