Authorization: Bearer ********************curl --location --request GET '/desktop/reports/profit-graph?criteria=march' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Profit graph data fetched successfully!",
"data": {
"currentPeriod": {
"totalProfit": "$ 5,422,517.35",
"unFormattedProfit": 5422517.350000001,
"change": "0%",
"unformattedChange": 0,
"topPeriod": "2024-04-30"
},
"graphData": [
{
"date": "2024-01-31",
"profit": 0
},
{
"date": "2024-02-29",
"profit": 0
},
{
"date": "2024-03-31",
"profit": 3100
},
{
"date": "2024-04-30",
"profit": 2374649
},
{
"date": "2024-05-31",
"profit": 688739
},
{
"date": "2024-06-30",
"profit": 304639
},
{
"date": "2024-07-31",
"profit": 617910
},
{
"date": "2024-08-31",
"profit": 1134022.1
},
{
"date": "2024-09-30",
"profit": 299458.25
},
{
"date": "2024-10-31",
"profit": 0
},
{
"date": "2024-11-30",
"profit": 0
},
{
"date": "2024-12-31",
"profit": 0
}
],
"xAxis": "month"
}
}