Getting Started with BankStmtConverter API
Welcome to the BankStmtConverter API documentation!Here you will find everything you need to get started with integrating BankStmtConverter into your applications.
API Keys
- Obtaining: To access the API, you’ll need a valid API key. Retrieve it from the BankStmtConverter billing dashboard. If unavailable, please contact the admin.
- Authentication: BankStmtConverter primarily authenticates using API keys.
- Usage: Always include your API key in the request header:
JSON Response
Expect responses from the API in JSON format. Ensure your system can parse this data structure. For errors, check the error key within the JSON response.Handling Authentication Errors
If your API key is absent, not formatted correctly, or invalid, you’ll receive a 401 Unauthorized HTTP response.API Endpoints
Convert Bank Statement
Endpoint
Request Headers
| Header | Type | Description |
|---|---|---|
| Authorization | String | Bearer <api_key> |
| Content-Type | String | multipart/form-data |
Request Body
| Field | Type | Description |
|---|---|---|
| file | String | URL of the bank statement file to be converted (PDF). |
| page_num | Int | Number of pages to be processed (default is 1). |
Response Body
| Field | Type | Description |
|---|---|---|
| url | String | Presigned URL to download the converted file. |
| doc_id | String | Document ID for converted file. |
| error | String | Error message, if any. |
Success Codes
| Code | Description |
|---|---|
| 200 | Conversion successful. |
Error Codes
| Code | Description |
|---|---|
| 400 | Bad Request - Invalid input data. |
| 404 | Not found - file is missing. |
| 401 | Unauthorized - Invalid API key. |
| 422 | Unprocessable Entity - Field required or missing data. |
| 402 | Payment Required - Plan expired. |
| 500 | Internal Server Error. |
Example Request
Example Response
Success ResponseAsync Conversion
Endpoint
Request Headers - Async
| Header | Type | Description |
|---|---|---|
| Authorization | String | Bearer <api_key> |
| Content-Type | String | multipart/form-data |
Request Body - Async
| Field | Type | Description |
|---|---|---|
| file | String | URL of the bank statement file to be converted (PDF). |
| page_num | Int | Number of pages to be processed (default is 1). |
| webhook_url | String | URL for webhook notification. |
Response Body
| Field | Type | Description |
|---|---|---|
| url | String | Presigned URL to download the converted file. |
| doc_id | String | Document id for converted file. |
| error | String | Error message, if any. |
Success Codes
| Code | Description |
|---|---|
| 200 | Conversion successful. |
Error Codes
| Code | Description |
|---|---|
| 400 | Bad Request - Invalid input data. |
| 404 | Not found - file is missing. |
| 401 | Unauthorized - Invalid API key. |
| 422 | Unprocessable Entity - Field required or missing data. |
| 402 | Payment Required - Plan expired. |
| 500 | Internal Server Error. |
Example Request - Async
Example Response
Success ResponseCheck Remaining Credits
Endpoint
Request Headers
| Header | Type | Description |
|---|---|---|
| Authorization | String | Bearer <api_key> |
| Content-Type | String | application/json |
Response Body
| Field | Type | Description |
|---|---|---|
| remaining_credits | Int | Credits after your file processing. |
| error | String | Error message, if any. |
Success Codes
| Code | Description |
|---|---|
| 200 | Conversion successful. |
Error Codes
| Code | Description |
|---|---|
| 401 | Unauthorized - Invalid API key. |

