Is there a way to get total count of orders by using any api?As I need to fetch all orders of last 3 years of any user.
Is there a way to get total count of orders by using any api?As I need to fetch all orders of last 3 years of any user.
No, and I would strongly recommend against retrieving 3 years worth of order data. This could be literally hundreds of thousands or orders and you would need to get them 1000 at a time - https://docs.clover.com/docs/paginating-elements.
but can I get total count for orders of past 3 years so that I can fetch all based on total count
No, you cannot. You woud need to start making requests filtering on date range and using the pagination link I provided you to get the next 1000, etc. As I said earlier, I strongly recommend that you do not do this, it seems like an abuse of the API in my opinion.
I need all orders data to show sales history of past year,year to date for all products.Is there any other way(API) I can fetch all orders data to show sales history ?
2 People are following this question.