Skip to main content

Get Statement Analysis

POST https://api.sat.tausi.africa/v2/nmb_pdf

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_pdf'
-F fullname=Ayoub \
-F 'file=@NMB_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \

Response Sample

  1. Status OK Response
200 OK
{
"info": {
"account_number": "XXXXXXXXXXXX",
"start_date": "2023-03-30 00:00:00",
"end_date": "2024-03-28 00:00:00",
"total_days": 365,
"total_active_days": 265
},
"profile": {
"wallet_balance": 0.00,
"turnover": 0.00,
"number_of_transactions": 0
},
"cashin_flow": {
"total_cashin": 0.00,
"cashin_to_turnover_percentage": 0.00,
"cashin_transactions": 0,
"cashin_to_total_trans_percentage": 0.00
},
"cashout_flow": {
"total_cashout": 0.00,
"cashout_to_turnover_percentage": 0.00,
"cashout_transactions": 0,
"cashout_to_total_trans_percentage": 0.00
},
"transaction_channels": [
{
"channel": "Mobile Banking (NMB Mkononi)",
"total_cashin_amount": 0.00,
"total_cashout_amount": 0.00,
"maximum_amount": 0.00,
"average_amount": 0.00,
"number_of_times": 0,
"last_amount": 0.00,
"last_txn_date": ""
},
{
"channel": "Agency Transactions",
"total_cashin_amount": 0.00,
"total_cashout_amount": 0.00,
"maximum_amount": 0.00,
"average_amount": 0.00,
"number_of_times": 0,
"last_amount": 0.00,
"last_txn_date": ""
},
{
"channel": "Funds Transfer Transactions",
"total_cashin_amount": 0.00,
"total_cashout_amount": 0.00,
"maximum_amount": 0.00,
"average_amount": 0.00,
"number_of_times": 0,
"last_amount": 0.00,
"last_txn_date": ""
},
{
"channel": "Point of Sale Transactions",
"total_cashin_amount": 0.00,
"total_cashout_amount": 0.00,
"maximum_amount": 0.00,
"average_amount": 0.00,
"number_of_times": 0,
"last_amount": 0.00,
"last_txn_date": ""
},
{
"channel": "Payroll and Salary Transactions",
"total_cashin_amount": 0.00,
"total_cashout_amount": 0.00,
"maximum_amount": 0.00,
"average_amount": 0.00,
"number_of_times": 0,
"last_amount": 0.00,
"last_txn_date": ""
},
{
"channel": "Cash and ATM Transactions",
"total_cashin_amount": 0.00,
"total_cashout_amount": 0.00,
"maximum_amount": 0.00,
"average_amount": 0.00,
"number_of_times": 0,
"last_amount": 0.00,
"last_txn_date": ""
},
{
"channel": "Branch Teller (Deposits and Withdrawals)",
"total_cashin_amount": 0.00,
"total_cashout_amount": 0.00,
"maximum_amount": 0.00,
"average_amount": 0.00,
"number_of_times": 0,
"last_amount": 0.00,
"last_txn_date": ""
},
{
"channel": "Other",
"total_cashin_amount": 0.00,
"total_cashout_amount": 0.00,
"maximum_amount": 0.00,
"average_amount": 0.00,
"number_of_times": 0,
"last_amount": 0.00,
"last_txn_date": ""
}
],
"LUKU_Summary": {
"last_day_bought_luku": "",
"total_luku_amount": 0.00,
"max_luku_amount": 0.00,
"number_of_times_bought_luku": 0,
"average_luku_amount": 0.00,
"last_luku_amount": 0.00
},
"Other_Bills_Summary": {
"last_day_paid_bills": "",
"total_bills_amount": 0.00,
"max_bills_amount": 0.00,
"number_of_times_paid_bills": 0,
"average_bills_amount": 0.00,
"last_bills_amount": 0.00
}
}