Skip to main content

Get Statement Analysis

POST https://api.sat.tausi.africa/v2/nmb/1d_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.sat.tausi.africa/v2/nmb/1d_analysis'
-F fullname=Ayoub \
-F 'file=@NMB_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \

Response Sample

  1. Status OK Response
200 OK
{
"initial_info": {
"account_number": "247100XXXXXX",
"start_date": "2023-05-07 00:00:00",
"end_date": "2024-05-07 00:00:00",
"total_days": 367,
"total_active_days": 224
},
"profile": {
"wallet_balance": 612362.75,
"total_turnover": 126096322.23,
"total_transactions": 1544
},
"cashin_flow": {
"total_cashin": 66372408.28,
"cashin_to_turnover_percentage": 52.64,
"cashin_transactions": 71.0,
"cashin_to_total_trans_percentage": 4.6
},
"cashout_flow": {
"total_cashout": 59723913.95,
"cashout_to_turnover_percentage": 47.36,
"cashout_transactions": 1473.0,
"cashout_to_total_trans_percentage": 95.4
},
"transaction_channels": [
{
"channel": "Mobile Banking (NMB Mkononi)",
"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": 11266913.6,
"max_cashout_amount": 855000.0,
"num_cashout_transactions": 705,
"average_cashout_amount": 15981.44,
"last_day_cashout": "2024-05-06 00:00:00",
"last_amount_cashout": 500.0
},
{
"channel": "Agency Transactions",
"total_cashin_amount": 26720000.0,
"max_cashin_amount": 6000000.0,
"num_cashin_transactions": 22,
"average_cashin_amount": 1214545.45,
"last_day_cashin": "2024-05-01 00:00:00",
"last_amount_cashin": 750000.0,
"total_cashout_amount": 11452937.98,
"max_cashout_amount": 1000000.0,
"num_cashout_transactions": 221,
"average_cashout_amount": 51823.25,
"last_day_cashout": "2024-05-04 00:00:00",
"last_amount_cashout": 700.0
},
{
"channel": "Funds Transfer Transactions",
"total_cashin_amount": 38872000.0,
"max_cashin_amount": 5000000.0,
"num_cashin_transactions": 33,
"average_cashin_amount": 1177939.39,
"last_day_cashin": "2024-05-03 00:00:00",
"last_amount_cashin": 5000000.0,
"total_cashout_amount": 18581030.51,
"max_cashout_amount": 3500000.0,
"num_cashout_transactions": 120,
"average_cashout_amount": 154841.92,
"last_day_cashout": "2024-05-07 00:00:00",
"last_amount_cashout": 33.9
},
{
"channel": "Point of Sale Transactions",
"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": 1399936.0,
"max_cashout_amount": 138000.0,
"num_cashout_transactions": 39,
"average_cashout_amount": 35895.79,
"last_day_cashout": "2024-03-15 00:00:00",
"last_amount_cashout": 80000.0
},
{
"channel": "Payroll and Salary Transactions",
"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": 75000.0,
"max_cashout_amount": 65000.0,
"num_cashout_transactions": 2,
"average_cashout_amount": 37500.0,
"last_day_cashout": "2023-06-10 00:00:00",
"last_amount_cashout": 65000.0
},
{
"channel": "Cash and ATM Transactions",
"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": 1179544.44,
"max_cashout_amount": 200000.0,
"num_cashout_transactions": 58,
"average_cashout_amount": 20336.97,
"last_day_cashout": "2024-01-26 00:00:00",
"last_amount_cashout": 1000.0
},
{
"channel": "Branch Teller (Deposits and Withdrawals)",
"total_cashin_amount": 0,
"max_cashin_amount": 0,
"number_of_times_cashin": 0,
"average_cashin_amount": 0,
"last_cashout_amount": 0,
"last_cashin_date": 0,
"total_cashout_amount": 0,
"max_cashout_amount": 0,
"number_of_times_cashout": 0,
"average_cashout_amount": 0,
"last_cashout_date": 0
},
{
"channel": "Other",
"total_cashin_amount": 66372408.28,
"max_cashin_amount": 6000000.0,
"number_of_times_cashin": 71,
"average_cashin_amount": 934822.65,
"last_cashout_amount": 33.9,
"last_cashin_date": 5000000.0,
"total_cashout_amount": 59723913.95,
"max_cashout_amount": 3500000.0,
"number_of_times_cashout": 1473,
"average_cashout_amount": 40545.77,
"last_cashout_date": 33.9
}
],
"luku_info": {
"total_luku_amount": 95700.0,
"maximum_luku_amount": 15000.0,
"number_of_times_bought_luku": 15,
"average_luku_amount": 6380.0,
"last_day_bought_luku": "2024-01-03 00:00:00",
"last_luku_amount": 200.0
},
"bills_info": {
"total_bills_amount": 593414.0,
"max_bills_amount": 100000.0,
"number_of_times_bills": 86,
"average_bills_amount": 6900.16,
"last_day_bills": "2024-05-04 00:00:00",
"last_bills_amount": 240.0
}
}