Skip to main content

NMB All API.

POST https://api.manka.tz/api/v1/analysis/all

This analyses the pdf and responds with the Tausi's 1d analysis, 2d analysis, 3d analysis and Affordability score both in one call. The response is in a json format.

Header Requirements

  • Authorization --required

Body Params

  • file --required
  • fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/all'
-F fullname=Hussein \
-F 'file=@HaloPesa_4435535_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'

Response Sample

  1. Status OK Response
200 OK
{
"profile": {
"account": "24710001390",
"name": "VICTORIA MARTIN LEOPOLD",
"contacts": "N/A",
"company": "NMB",
"start_date": "2024-07-23T00:00:00",
"end_date": "2024-10-21T00:00:00",
"no_of_transactions": 337,
"in_types": [
"transfer_from_mno",
"other"
],
"out_types": [
"luku",
"transfer_to_mno",
"gepg",
"other"
],
"loan_services": [],
"pars_3d": {
"mnos_activity": {
"debit": [
"transfer_to_mno"
],
"credit": [
"transfer_from_mno"
]
},
"loan_activity": {
"debit": []
},
"bills_activity": {
"debit": [
"luku",
"gepg"
]
},
"other": {
"debit": [
"other"
],
"credit": [
"other"
]
}
},
"channels": {
"mobile_banking": [
"MNVN",
"MNPN",
"MSMN",
"XNV",
"XNP"
],
"cash_and_atm": [
"CWAN"
],
"agency": [
"AGD",
"AGW",
"AGC",
"AGPS",
"AGBE"
],
"fund_transfer": [
"IBFT",
"FTM",
"TPFT",
"FSCH"
],
"POS": [
"POSR",
"POSP"
],
"payroll_and_salary": [
"PRDP"
],
"other": [
"c",
"FTIT",
"MLCL",
"LUKU",
"m",
"CHWL"
]
}
},
"1d_analysis": {
"initial_info": {
"account_number": "24710001390",
"first_date": "2024-07-23 00:00:00",
"last_date": "2024-10-21 00:00:00",
"total_days": 91,
"total_active_days": 51
},
"customer_profile": {
"wallet_balance": 106377.54,
"total_turnover": 18759419.88,
"total_transactions": 337
},
"cash_flow_summary": {
"total_turnover": 18759419.88,
"total_cashin": 8762389.35,
"total_cashout": 9997030.53,
"cashin_to_turnover_percentage": 46.71,
"cashin_transactions": 22,
"cashin_to_total_trans_percentage": 6.53,
"cashout_to_turnover_percentage": 53.29,
"cashout_transactions": 315,
"cashout_to_total_trans_percentage": 93.47
},
"transfer_from_mno": {
"total_transfer_from_mno_amount": 0.0,
"maximum_transfer_from_mno_amount": 0.0,
"no_of_transfer_from_mno_transactions": 0,
"average_transfer_from_mno_amount": 0.0,
"last_day_paid_transfer_from_mno": "N/A",
"last_transfer_from_mno_amount": 0.0
},
"other": {
"total_other_amount": 13558389.36,
"maximum_other_amount": 3000000.0,
"no_of_other_transactions": 82,
"average_other_amount": 165346.21,
"last_day_paid_other": "2024-10-21 00:00:00",
"last_other_amount": 152.54
},
"luku": {
"total_luku_amount": 51000.0,
"maximum_luku_amount": 20000.0,
"no_of_luku_transactions": 5,
"average_luku_amount": 10200.0,
"last_day_paid_luku": "2024-10-18 00:00:00",
"last_luku_amount": 10000.0
},
"transfer_to_mno": {
"total_transfer_to_mno_amount": 5150030.52,
"maximum_transfer_to_mno_amount": 550000.0,
"no_of_transfer_to_mno_transactions": 250,
"average_transfer_to_mno_amount": 20600.12,
"last_day_paid_transfer_to_mno": "2024-10-20 00:00:00",
"last_transfer_to_mno_amount": 1779.66
},
"gepg": {
"total_gepg_amount": 0.0,
"maximum_gepg_amount": 0.0,
"no_of_gepg_transactions": 0,
"average_gepg_amount": 0.0,
"last_day_paid_gepg": "N/A",
"last_gepg_amount": 0.0
},
"transaction_channels": {
"mobile_banking": {
"total_cashin_amount": 0.0,
"max_cashin_amount": 0.0,
"num_cashin_transactions": 0,
"average_cashin_amount": 0.0,
"last_day_cashin": "N/A",
"last_amount_cashin": 0.0,
"total_cashout_amount": 5150030.52,
"max_cashout_amount": 550000.0,
"num_cashout_transactions": 250,
"average_cashout_amount": 20600.12,
"last_day_cashout": "2024-10-20 00:00:00",
"last_amount_cashout": 1779.66
},
"cash_and_atm": {
"total_cashin_amount": 0.0,
"max_cashin_amount": 0.0,
"num_cashin_transactions": 0,
"average_cashin_amount": 0.0,
"last_day_cashin": "N/A",
"last_amount_cashin": 0.0,
"total_cashout_amount": 357510.0,
"max_cashout_amount": 200000.0,
"num_cashout_transactions": 11,
"average_cashout_amount": 32500.91,
"last_day_cashout": "2024-09-27 00:00:00",
"last_amount_cashout": 274.58
},
"agency": {
"total_cashin_amount": 650000.0,
"max_cashin_amount": 500000.0,
"num_cashin_transactions": 2,
"average_cashin_amount": 325000.0,
"last_day_cashin": "2024-10-16 00:00:00",
"last_amount_cashin": 150000.0,
"total_cashout_amount": 0.0,
"max_cashout_amount": 0.0,
"num_cashout_transactions": 0,
"average_cashout_amount": 0.0,
"last_day_cashout": "N/A",
"last_amount_cashout": 0.0
},
"fund_transfer": {
"total_cashin_amount": 7892500.0,
"max_cashin_amount": 3000000.0,
"num_cashin_transactions": 17,
"average_cashin_amount": 464264.71,
"last_day_cashin": "2024-10-18 00:00:00",
"last_amount_cashin": 130000.0,
"total_cashout_amount": 2123300.0,
"max_cashout_amount": 1820000.0,
"num_cashout_transactions": 8,
"average_cashout_amount": 265412.5,
"last_day_cashout": "2024-10-21 00:00:00",
"last_amount_cashout": 152.54
},
"POS": {
"total_cashin_amount": 0.0,
"max_cashin_amount": 0.0,
"num_cashin_transactions": 0,
"average_cashin_amount": 0.0,
"last_day_cashin": "N/A",
"last_amount_cashin": 0.0,
"total_cashout_amount": 1759847.0,
"max_cashout_amount": 289000.0,
"num_cashout_transactions": 15,
"average_cashout_amount": 117323.13,
"last_day_cashout": "2024-10-07 00:00:00",
"last_amount_cashout": 57500.0
},
"payroll_and_salary": {
"total_cashin_amount": 0.0,
"max_cashin_amount": 0.0,
"num_cashin_transactions": 0,
"average_cashin_amount": 0.0,
"last_day_cashin": "N/A",
"last_amount_cashin": 0.0,
"total_cashout_amount": 60000.0,
"max_cashout_amount": 30000.0,
"num_cashout_transactions": 2,
"average_cashout_amount": 30000.0,
"last_day_cashout": "2024-09-16 00:00:00",
"last_amount_cashout": 30000.0
},
"other": {
"total_cashin_amount": 219889.35,
"max_cashin_amount": 200000.0,
"num_cashin_transactions": 3,
"average_cashin_amount": 73296.45,
"last_day_cashin": "2024-09-12 00:00:00",
"last_amount_cashin": 15870.04,
"total_cashout_amount": 594343.01,
"max_cashout_amount": 500000.0,
"num_cashout_transactions": 26,
"average_cashout_amount": 22859.35,
"last_day_cashout": "2024-10-18 00:00:00",
"last_amount_cashout": 10000.0
}
},
"statement_check": {
"isvalid": true
}
},
"2d_analysis": {
"total_cash_inflow": 8762389.35,
"cash_inflow": {
"mobile_banking": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"cash_and_atm": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"agency": {
"total_amout": 650000.0,
"percentage_of_total": 7.42
},
"fund_transfer": {
"total_amout": 7892500.0,
"percentage_of_total": 90.07
},
"POS": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"payroll_and_salary": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"other": {
"total_amout": 219889.35,
"percentage_of_total": 2.51
}
},
"total_cash_outflow": 9997030.53,
"cash_outflow": {
"mobile_banking": {
"total_amout": 5102030.52,
"percentage_of_total": 51.04
},
"cash_and_atm": {
"total_amout": 357510.0,
"percentage_of_total": 3.58
},
"agency": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"fund_transfer": {
"total_amout": 2123300.0,
"percentage_of_total": 21.24
},
"POS": {
"total_amout": 1759847.0,
"percentage_of_total": 17.6
},
"payroll_and_salary": {
"total_amout": 60000.0,
"percentage_of_total": 0.6
},
"other": {
"total_amout": 594343.01,
"percentage_of_total": 5.95
}
}
},
"3d_analysis": {
"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
}
]
}
},
"affordability_scores": {
"low_risk": 53901.93,
"medium_risk": 107803.86,
"high_risk": 444900.0
}
}