For the complete documentation index, see llms.txt. This page is also available as Markdown.

Upload Statement (Extraction)

Upload consumer, till and paybill mpesa statement for analysis and credit scoring

Upload Mpesa Statments

POST {{BASE_URL}}/api/v1/statements/mpesa/upload

This endpoint allows you to upload Mpesa Statements for extraction, analysis and scoring

Headers

Name
Type
Description

Authentication*

string

Authentication token to track down API usage.

Request Body

Name
Type
Description

national_id*

String

Customer's national ID

file*

String

Base64 encoded file string

file_name*

String

Unchanged Mpesa Statement Name

callback_url*

String

Where to send result

statement_type*

String

Statement being uploaded only one of three user_statement, paybill_statement, till_statement

passcode*

String

The file's passcode

{
   "status": 202,
   "message": "Statement saved successfully. Extraction process initiated",
   "data":{
      "reference_id": "22050643-73b9-4eec-ac73-4572d643ac1c",
      "name": "JOHN DOE",
      "phone_number": "254700123456",
      "statement_type": "user_statement",
       "short_code": null,
       "statement_period": "17 Oct 2022 - 17 Jan 2023"
   }
}

Statement upload request Example

Callback Response

Last updated