Get Statement Analysis
This analyses the pdf and generates the report. The response is in a json format.
Header Requirements
- Authorizaion --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/3d'
-F fullname=Ayoub \
-F 'file=@NMB_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \
Response Sample
- Status OK Response
200 OK
{
"analysis_period": {
"start_date": "July_2024",
"end_date": "October_2024"
},
"cash_flow_analysis": {
"cash_inflow": [
{
"month": "July_2024",
"amount": 265000.0,
"percentage": 3.02
},
{
"month": "August_2024",
"amount": 539019.31,
"percentage": 6.15
},
{
"month": "September_2024",
"amount": 6475370.04,
"percentage": 73.9
},
{
"month": "October_2024",
"amount": 1483000.0,
"percentage": 16.92
}
],
"cash_outflow": [
{
"month": "July_2024",
"amount": 297661.44,
"percentage": 2.98
},
{
"month": "August_2024",
"amount": 243025.77,
"percentage": 2.43
},
{
"month": "September_2024",
"amount": 8086753.24,
"percentage": 80.89
},
{
"month": "October_2024",
"amount": 1369590.08,
"percentage": 13.7
}
]
},
"mnos_activity_analysis": {
"transfer_to_mno": [
{
"month": "July_2024",
"amount": 261088.13999999998,
"percentage": 5.07
},
{
"month": "August_2024",
"amount": 84588.14,
"percentage": 1.64
},
{
"month": "September_2024",
"amount": 3738649.16,
"percentage": 72.59
},
{
"month": "October_2024",
"amount": 1065705.0799999998,
"percentage": 20.69
}
],
"transfer_from_mno": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"loan_activity_analysis": {},
"bills_activity_analysis": {
"luku": [
{
"month": "July_2024",
"amount": 5000.0,
"percentage": 9.8
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 10000.0,
"percentage": 19.61
},
{
"month": "October_2024",
"amount": 36000.0,
"percentage": 70.59
}
],
"gepg": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"other_analysis": {
"other_cashin": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 204019.31,
"percentage": 92.78
},
{
"month": "September_2024",
"amount": 15870.04,
"percentage": 7.22
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"other_cashout": [
{
"month": "July_2024",
"amount": 6573.3,
"percentage": 1.11
},
{
"month": "August_2024",
"amount": 6230.63,
"percentage": 1.05
},
{
"month": "September_2024",
"amount": 545539.08,
"percentage": 91.79
},
{
"month": "October_2024",
"amount": 36000.0,
"percentage": 6.06
}
]
},
"mobile_banking_analysis": {
"mobile_banking_cashin": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"mobile_banking_cashout": [
{
"month": "July_2024",
"amount": 261088.13999999998,
"percentage": 5.12
},
{
"month": "August_2024",
"amount": 84588.14,
"percentage": 1.66
},
{
"month": "September_2024",
"amount": 3690649.16,
"percentage": 72.34
},
{
"month": "October_2024",
"amount": 1065705.0799999998,
"percentage": 20.89
}
]
},
"cash_and_atm_analysis": {
"cash_and_atm_cashin": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"cash_and_atm_cashout": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 152207.0,
"percentage": 42.57
},
{
"month": "September_2024",
"amount": 205303.0,
"percentage": 57.43
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"agency_analysis": {
"agency_cashin": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "October_2024",
"amount": 650000.0,
"percentage": 100.0
}
],
"agency_cashout": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"fund_transfer_analysis": {
"fund_transfer_cashin": [
{
"month": "July_2024",
"amount": 265000.0,
"percentage": 3.36
},
{
"month": "August_2024",
"amount": 335000.0,
"percentage": 4.24
},
{
"month": "September_2024",
"amount": 6459500.0,
"percentage": 81.84
},
{
"month": "October_2024",
"amount": 833000.0,
"percentage": 10.55
}
],
"fund_transfer_cashout": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 2122300.0,
"percentage": 99.95
},
{
"month": "October_2024",
"amount": 1000.0,
"percentage": 0.05
}
]
},
"POS_analysis": {
"POS_cashin": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"POS_cashout": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 1492962.0,
"percentage": 84.83
},
{
"month": "October_2024",
"amount": 266885.0,
"percentage": 15.17
}
]
},
"payroll_and_salary_analysis": {
"payroll_and_salary_cashin": [
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"payroll_and_salary_cashout": [
{
"month": "July_2024",
"amount": 30000.0,
"percentage": 50.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "September_2024",
"amount": 30000.0,
"percentage": 50.0
},
{
"month": "October_2024",
"amount": 0.0,
"percentage": 0.0
}
]
}
}