curl --location --request PUT 'https://api.insights-periculum.io/statements'
--header 'Authorization: Bearer string_encrypted_accesst_token'
--header 'Content-Type: application/multipart/form-data'
--data-body'{
"file": file,
"password:"",
"statementType":"consumer"
}'
Parameters
Name | Description | Type | Required |
---|---|---|---|
File | PDF which needs to be analysed | file | Yes |
Password | Password for the PDF (If PDF is password protected) | string | No |
statementType | There are four statement types that you can send statements in. If it is not included in the request, request will identify statement type as “CONSUMER” by default. The statement types are: - CONSUMER: for individual statements - BUSINESS: for corporate or business account type statements - MOBILE_MONEY: for individual MNO(mobile network operator) type accounts like MPESA or similar mobile payment account - MOBILE_MONEY_BUSINESS: for business MNO accounts | string | No |
documentType | Represents the type of bank statement to be analyzed, PDF(default) or SCANNED | string | No |