Bank Statement Upload V1.1
The new endpoint for uploading Bank Statements does validation on the upload request and does verification and storing of transactions as a background job once the statement_result_url added.
In Bank Statement Upload V1.1 has moved the transactional processing and storing of statements to become an asynchronous job. This means within the upload call, the validation checks are performed and the transactional processing is completed as a background task. Therefore you are only able to upload a maximum of six statements at a time.
Upload Bankstatement V1.1
POST
{{environmentUrl}}/{{tenantId}}/api/v1.1/bank-accounts/:bank_account_id/upload-bankstatement
POST
{{environmentUrl}}/{{tenantId}}/api/v1.1/bank-accounts/:bank_account_id/upload-bankstatement
There is a maximum of 6 bank statements that can be uploaded in one call.
Path Parameters
bankAccountId*
String
Request Body
The bank statement/s MUST be in PDF format!
statements[]*
form-data
There is a maximum of 6 bank statements that can be uploaded in one API call.
statement_result_url*
String
Add a value for this parameter to send the outcome of the statement processing.
i.e. the URL to which you would like to receive the results of the successful, transaction processing.
You can save the value in the environment variable {{StatementResultURL}}.
category_engine
String
To enable refined transaction categorisation you will need to set the category_engine
to
return_accuracy
Boolean
Status Codes
Custom Bank Statement Validations
As part of bank statement upload V1.1, there are optional validations performed upon statement upload.
The account holder validation will perform a comparison between the Customers details captured in POST Create New Customer and the Customers details on the bank statement uploaded.
422 - Unprocessable Entity
Webhook Requirements | statement_result_url
statement_result_url
The following is the payload that gets sent to the url that is provided in the statement_result_url
parameter in the POST Upload Bankstatement v1.1 request.
The webhook gets triggered once the processing of the transactions in the statement(s) is successful. Once you receive this successful payload, you can query any of the /transactions
, /statements
, /accounts
and /transaction-reports
endpoints to retrieve the affordability data you require.
As this is a specific post query, we need to make sure we are sending customer/clients to a safe destination, as such, there is validation done on the Redirect and Statement Result URL.
The Filed under validation must have a valid A or AAAA record when querying the dns_get_record PHP function.
A a simple guideline:
Must be RFC compliant
Must include the hostname
Be careful with special characters that might mess with the structure of the post request
Statement Upload V1.1 – Statement Success
Statement Upload V1.1 – Statement Failure
Last updated
Was this helpful?