Authorization: Bearer ********************curl --location --request GET '/admin/sales-expenses-by-month' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "all sales and expenses",
"data": {
"mappedExpenses": [
{
"month": "April",
"currency": "USD",
"totalAmount": 1355
},
{
"month": "May",
"currency": "NGN",
"totalAmount": 43500
},
{
"month": "July",
"currency": "EUR",
"totalAmount": 500
},
{
"month": "July",
"currency": "INR",
"totalAmount": 13400
},
{
"month": "July",
"currency": "GBP",
"totalAmount": 25500
},
{
"month": "July",
"currency": "NGN",
"totalAmount": 15000
},
{
"month": "July",
"currency": "BGN",
"totalAmount": 10200
},
{
"month": "July",
"currency": "THB",
"totalAmount": 1200
},
{
"month": "August",
"currency": "NGN",
"totalAmount": 28350
}
],
"mappedSales": [
{
"month": "April",
"currency": "USD",
"totalAmount": 35070
},
{
"month": "May",
"currency": "NGN",
"totalAmount": 862000
},
{
"month": "June",
"currency": "GBP",
"totalAmount": 18644500
},
{
"month": "June",
"currency": "INR",
"totalAmount": 15000
},
{
"month": "July",
"currency": "INR",
"totalAmount": 209000
},
{
"month": "July",
"currency": "GBP",
"totalAmount": 182480313
},
{
"month": "July",
"currency": "NGN",
"totalAmount": 549500
},
{
"month": "July",
"currency": "THB",
"totalAmount": 7070
},
{
"month": "July",
"currency": "BGN",
"totalAmount": 41400
},
{
"month": "July",
"currency": "EUR",
"totalAmount": 6765
},
{
"month": "August",
"currency": "NGN",
"totalAmount": 1677116
}
]
}
}