This endpoint provides access to comprehensive historical order data with powerful analytics capabilities. Ideal for business intelligence, performance reporting, trend analysis, and strategic planning.
This endpoint includes advanced analytics features like trend calculations, performance metrics, and comparative analysis across different time periods.
GET {{orders_api_base_url}}/orders/history/?store_id=449235c1-3d04-4519-998b-40d2a621e5e0&date_from=2024-01-15T00:00:00Z&date_to=2024-01-15T23:59:59Z&granularity=hourly
Weekly Trends (for strategic planning)
Copy
GET {{orders_api_base_url}}/orders/history/?store_id=449235c1-3d04-4519-998b-40d2a621e5e0&date_from=2024-01-01T00:00:00Z&date_to=2024-03-31T23:59:59Z&granularity=weekly&compare_period=true
Monthly Performance Review
Copy
GET {{orders_api_base_url}}/orders/history/?store_id=449235c1-3d04-4519-998b-40d2a621e5e0&date_from=2024-01-01T00:00:00Z&date_to=2024-12-31T23:59:59Z&granularity=monthly&include_analytics=true
Business Intelligence: Use the analytics data to identify growth opportunities, optimize operations, and make data-driven decisions about staffing, inventory, and marketing.
Data Freshness: Historical data is updated in near real-time. For the most current hour’s data, allow 15-30 minutes for complete processing.
Large Datasets: When requesting large date ranges with hourly granularity, responses may be substantial. Consider using daily or weekly granularity for broad analysis.