curl --request GET \
--url https://api.example.com/api/reports{
"kpis": {
"totalRevenue": 123,
"totalClients": 123,
"totalProducts": 123,
"totalSales": 123
},
"revenueTrend": [
{
"month": "<string>",
"revenue": 123
}
],
"paymentMethods": [
{
"name": "<string>",
"value": 123
}
],
"topItems": [
{
"name": "<string>",
"quantity": 123
}
]
}Retrieve comprehensive business analytics including KPIs, revenue trends, payment methods distribution, and top-selling items
curl --request GET \
--url https://api.example.com/api/reports{
"kpis": {
"totalRevenue": 123,
"totalClients": 123,
"totalProducts": 123,
"totalSales": 123
},
"revenueTrend": [
{
"month": "<string>",
"revenue": 123
}
],
"paymentMethods": [
{
"name": "<string>",
"value": 123
}
],
"topItems": [
{
"name": "<string>",
"quantity": 123
}
]
}completed).Authorization: Bearer YOUR_TOKEN
curl --request GET \
--url https://your-domain.com/api/reports \
--header 'Authorization: Bearer YOUR_TOKEN'
{
"kpis": {
"totalRevenue": 45280.50,
"totalClients": 127,
"totalProducts": 89,
"totalSales": 312
},
"revenueTrend": [
{
"month": "OCT",
"revenue": 6420.75
},
{
"month": "NOV",
"revenue": 7815.30
},
{
"month": "DIC",
"revenue": 9125.40
},
{
"month": "ENE",
"revenue": 8240.15
},
{
"month": "FEB",
"revenue": 6890.25
},
{
"month": "MAR",
"revenue": 6788.65
}
],
"paymentMethods": [
{
"name": "Tarjeta",
"value": 178
},
{
"name": "Efectivo",
"value": 94
},
{
"name": "Mixto",
"value": 32
},
{
"name": "Transferencia",
"value": 8
}
],
"topItems": [
{
"name": "Tratamiento Facial Hidratante",
"quantity": 145
},
{
"name": "Masaje Relajante",
"quantity": 132
},
{
"name": "Manicura Completa",
"quantity": 118
},
{
"name": "Depilación Láser",
"quantity": 97
},
{
"name": "Pack Belleza Premium",
"quantity": 84
}
]
}