doc_id) that can be used to track processing status and retrieve analysis results. The Bank Statement Analysis (BSA) service leverages advanced parsing technologies to extract structured data from uploaded statements, providing valuable insights for credit assessment, financial health evaluation, and fraud detection.https://api.finpass.ai| Header | Description |
|---|---|
X-API-Key | Your unique API key provided by FinPass |
X-API-Secret | Your API secret for request authentication |
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your unique API key for authentication |
X-API-Secret | Yes | Your API secret for secure request validation |
Content-Type | Yes | Must be multipart/form-data for file uploads |
multipart/form-data with the following parameters:| Parameter | Type | Required | Description |
|---|---|---|---|
file | File | Yes | The bank statement file to be uploaded. Supported formats include PDF, PNG, JPG, and JPEG. Maximum file size limits may apply. |
Content-Type: multipart/form-data
--boundary
Content-Disposition: form-data; name="file"; filename="bank_statement.pdf"
Content-Type: application/octet-stream
[Binary file content]
--boundary--| Parameter | Type | Description |
|---|---|---|
success | Boolean | Indicates whether the upload request was successful |
status_code | Integer | HTTP status code of the response |
message | String | Human-readable message describing the result |
data | Object | Container object for response data |
data.doc_id | String | Unique identifier for the uploaded document, used to track processing status and retrieve results |
data.client_id | String | Client-specific identifier associated with the bank statement |
data.status | String | Current processing status of the uploaded document (e.g., "processing", "completed", "failed") |
{
"success": true,
"status_code": 200,
"message": "Bank statement uploaded successfully",
"data": {
"doc_id": "svclog_69753dcc_d9e510428e00d4efe9247072",
"client_id": "bank_statement_bd24ad80515b",
"status": "processing"
}
}{
"success": false,
"status_code": 401,
"message": "Invalid API credentials",
"data": null
}X-API-Key or X-API-Secret headers are missing, invalid, or expired. Verify your credentials and ensure they are correctly included in the request headers.X-API-Key and X-API-Secret in environment variables or a secure secrets manager—never hardcode them in your applicationdoc_id to poll for processing status and keep users informed about the analysis progresscurl --location --request POST 'https://api.finpass.ai/api/v1/services/bsa/upload-statement' \
--header 'X-API-Key: LG8zVXK1MZv1jP6i4l6QZQ2nD9kLTvFWipV_anPvacE' \
--header 'X-API-Secret: M5RwMtvbYGqAGZpG8d223xkEq1298kjcGGpJ7s7_-Iv-T80x2l2YcaDSLAmoGkDn' \
--form 'file=@""'{
"success": true,
"status_code": 200,
"message": "Bank statement uploaded successfully",
"data": {
"doc_id": "svclog_69753dcc_d9e510428e00d4efe9247072",
"client_id": "bank_statement_bd24ad80515b",
"status": "processing"
}
}