Data Ingestion

Upload merchant's historical transactional information into Pezesha Credit Scoring Model.

Upload Transactions

POST {{BASE_URL}}/mfi/v1.1/data

This endpoint allows you to upload historical transactional record for a user/merchant so that they can get a credit score. A credit score is used to determine the user's loan limits. The MAX number of transactions allowed in the transactions array is 200 records. It is important that at least 6 months worth of data be uploaded when a user is registered so that they can be able to get a loan offer. This can be done in a background job once a user has been registered. The other_details section will be used to upload any additional information requested by the credit scoring team.

Headers

Request Body

{
   "status": 200,
   "response_code": 0,
   "error": false,
   "message": "Request processed successfully"
}
{
   "channel": "Partner Name",
   "transactions":[
      {
         "transaction_id": "TR12356",
         "merchant_id": "MC12356",
         "face_amount": 400,
         "transaction_time": "2021-01-03 19:12:34",
         "other_details": [
            {
               "key": "location",
               "value": "Nairobi"
            },
            {
               "key": "category",
               "value": "OILS"
            }
         ]
      }
   ]
}

Last updated