Store analytics
GET /stores/{store_id}/analytics
This endpoint lets you get store analytics.
Headers
Header
Type
Description
Authorization
string
Bearer token.
Response
{
"success": true,
"message": "Store analytics retrieved successfully",
"data": {
"overview": {
"totalRevenue": 0,
"totalOrders": 0,
"averageOrderValue": 0,
"totalProducts": 4,
"totalCustomers": 0
},
"orderStatus": {},
"revenueTrend": [],
"topProducts": [],
"customerInsights": {
"totalCustomers": 0,
"averageOrdersPerCustomer": 0,
"averageLifetimeValue": 0
},
"recentOrders": []
}
}Last updated
Was this helpful?