GET
https://api.spirestock.com/api/v1/dashboard/statsRetrieve summary statistics for the organization dashboard including order counts by status, employee metrics, revenue, and collection data.
Example request
curl https://api.spirestock.com/api/v1/dashboard/stats \ -H "Authorization: Bearer YOUR_TOKEN"
Example response
{
"response_code": 200,
"data": {
"order_initiated_count": 23,
"order_forwarded_count": 15,
"order_approved_count": 48,
"order_delivered_count": 1198,
"total_employees": 156,
"today_attendance": 142,
"total_tagged_outlets": 890,
"today_tagged_outlets": 12,
"today_revenue": 48250.00,
"pending_amount": 125000.00,
"total_collection": 892500.00,
"today_collection": 35000.00
}
}