For support support@leadrat.com
Authorization: ********************x-tenant-id: ********************curl --location --request GET '/dashboard/metrics?startDate&endDate' \
--header 'Authorization: Bearer <token>' \
--header 'x-tenant-id: <api-key>'{
"totalBookings": 150,
"activeBookings": 120,
"pendingBookings": 20,
"cancelledBookings": 10,
"totalRevenue": 5000000,
"pendingRevenue": 1500000,
"unitsSold": 100,
"unitsAvailable": 50,
"totalBuyers": 95,
"activeProjects": 5,
"collectionRate": 75.5,
"averageBookingValue": 50000,
"collectionsVsDemands": {
"labels": [
"string"
],
"collections": [
0
],
"demands": [
0
]
},
"bookingsByProjectDistribution": {
"labels": [
"string"
],
"data": [
0
],
"colors": [
"string"
]
},
"recentBookings": [
{
"customerName": "string",
"unitDetails": "string",
"status": "string",
"amount": {
"amount": 10000,
"currency": "INR"
},
"timeAgo": "string"
}
],
"upcomingDemands": [
{
"title": "string",
"subTitle": "string",
"customerCount": 0,
"totalAmount": {
"amount": 10000,
"currency": "INR"
},
"dueDate": "string"
}
],
"quickStats": {
"activeProjects": "string",
"totalTowers": 0,
"milestoneTemplates": 0,
"paymentPlans": 0,
"totalUnits": 0
},
"milestoneCompletion": [
{
"name": "string",
"progress": 0,
"status": "string",
"statusColor": "string"
}
],
"pendingActionCounts": {
"pendingMilestoneApprovals": 0,
"pendingAgreements": 0
}
}