Spending Pattern
This endpoint gives insights on users' spending habits based on transactions, and it comes in percentages.
GET Get Spending Pattern
1
{{baseUrl}}/api/v1/financial/spending_pattern
Copied!
Params
Curl
Response
Parameters
Type
Description
account_id required
string
Account ID
gotten from the widget
duration
string
Can be 6_months, 12_months, 24_months only
1
curl -L -X GET '{{baseUrl}}/api/v1/financial/spending_pattern' \
2
-H 'Authorization: SECRET_KEY'
3
-H 'AppId: APP_ID'
Copied!
1
{
2
"entity": {
3
"pattern": {
4
"Others": {
5
"sum": 398924.72,
6
"count": 43,
7
"percentage": 89.1006424877234
8
},
9
"Food": {
10
"sum": 20000,
11
"count": 1,
12
"percentage": 4.4670404224498
13
},
14
"Airtime/Data": {
15
"sum": 14598.01,
16
"count": 25,
17
"percentage": 3.26049503786632
18
},
19
"Bank Transfer": {
20
"sum": 13315,
21
"count": 3,
22
"percentage": 2.973932161245954
23
},
24
"Charges": {
25
"sum": 886,
26
"count": 27,
27
"percentage": 0.19788989071452615
28
}
29
}
30
}
31
}
Copied!
Last modified 1yr ago
Copy link