P
P
Patascore APIs
Search…
⌃K

Upload Statement (Extraction)

Upload consumer, till and paybill mpesa statement for analysis and credit scoring
post
{{BASE_URL}}
/api/v1/statement/mfi/mpesa/upload
Upload Statement Mpesa Statments

Callback Response

{
"reference_id": "22050643-73b9-4eec-ac73-4572d643ac1c",
"status": 200,
"message": "Statement analytics successfully fetched",
"phone_number": "0707888888",
"name": "ANTHONY KAMAU",
"statement_data": {
"id": 113,
"national_id": "21314151",
"created_at": "2023-01-26T13:04:07+00:00",
"jsonurl": "_ANTHONY_KAMAU_07Dec2022_to_07Mar2023_254707888888.json",
"output_data": {
"id": null,
"national_id": "5464477",
"first_transaction_date": "2021-11-01",
"last_transaction_date": "2021-11-30",
"statement_days": "29",
"total_received_amount": "54072.09",
"total_spent_amount": "56702.270000000004",
"no_of_credit_transactions": null,
"no_of_debit_transactions": null,
"opening_balance": "2580.18",
"closing_balance": "10.0",
"average_balance": "592.6903580562654",
"limit": "35.0",
"total_borrowed_amount": "10082.09",
"operational_cost": null,
"unique_customers_served": null,
"count_of_loans": "75",
"total_loan_repayment_amount": "9757.27",
"count_of_loan_repyments": "64",
"debit_income_ration": null,
"debit_credit_ration": null,
"average_monthly_received": "1865.0",
"mpesa_type": "consumer"
}
}
}