Skip to main content

Get Statement Analysis

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

Response Sample

  1. Status OK Response
200 OK

{
"cash_flow_analysis": {
"cash_inflow": {
"Agency": {
"total_amount": 50000.00,
"percentage_of_total": 20.00
},
"FTT": {
"total_amount": 70000.00,
"percentage_of_total": 28.00
},
"Payroll_and_Salary_Transactions": {
"total_amount": 40000.00,
"percentage_of_total": 16.00
},
"Branch_Teller": {
"total_amount": 50000.00,
"percentage_of_total": 20.00
},
"Other": {
"total_amount": 40000.00,
"percentage_of_total": 16.00
}
},
"total_cash_inflow": 250000.00,
"cash_outflow": {
"Agency": {
"total_amount": 80000.00,
"percentage_of_total": 18.60
},
"Mobile_Banking": {
"total_amount": 60000.00,
"percentage_of_total": 13.95
},
"FTT": {
"total_amount": 50000.00,
"percentage_of_total": 11.63
},
"POS": {
"total_amount": 70000.00,
"percentage_of_total": 16.28
},
"Payroll_and_Salary_Transactions": {
"total_amount": 20000.00,
"percentage_of_total": 4.65
},
"Branch_Teller": {
"total_amount": 80000.00,
"percentage_of_total": 18.60
},
"LUKU": {
"total_amount": 30000.00,
"percentage_of_total": 6.98
},
"Bills": {
"total_amount": 25000.00,
"percentage_of_total": 5.81
},
"Others": {
"total_amount": 5000.00,
"percentage_of_total": 1.16
}
},
"total_cash_outflow": 430000.00
}
}