GET /desktop/home/top-expensesstartDate (string, required): The start date of the date range in the format 'YYYY-MM-DD'.endDate (string, required): The end date of the date range in the format 'YYYY-MM-DD'.success (boolean): Indicates if the request was successful.message (string): A message related to the request.data (array): An array of objects containing the top expenses.amount (string): The amount of the expense.name (string): The name of the expense.Authorization: Bearer ********************curl --location --request GET '/desktop/home/top-expenses?startDate=2024-04-01&endDate=2024-04-14' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Top expenses fetched successfully!",
"data": [
{
"amount": 212000,
"name": "Electricity/Fuel"
},
{
"amount": 140000,
"name": "Monthly Dues/Taxes"
},
{
"amount": 49000,
"name": "Transport"
}
]
}