---
title: Convert Bank Statement Format API
slug: convert-bank-statement-format
url: https://apyhub.com/martin10291/service/convert-bank-statement-format
provider: Martin Petrov
categories: [Ingestion Kit, Document Intelligence Kit]
tags: [bank-statements, camt-053, mt940, csv-export, xlsx-export, financial-ingestion]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Convert Bank Statement Format API

Bank Statement Converter API turns camt.053, camt.052, or MT940 into JSON, CSV, XLSX, or MT940. Send a file URL or file content. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/convert-bank-statement-format` | What it does Converts a bank statement file from camt.053, camt.052, or MT940 into structured outpu… | 100 |

## Endpoint reference

### Bank Statement Converter - camt.053 / MT940 to JSON, CSV, Excel

`POST https://api.eu.apyhub.com/martin10291/convert-bank-statement-format` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `format` | body | string | no | json = one row per statement (balances + balance check) and one row per transaction; csv or xlsx = one row with the file as base64 (contentBase64) plus statement summaries; mt940 = camt converted to… |
| `fileUrl` | body | string | no | Public http(s) link to a camt.053, camt.052 or MT940 file, or a .zip with several (max 10 MB, 50 files). For example a pre-signed S3/Drive link. Private and local addresses are refused. Leave empty a… |
| `fileName` | body | string | no | Optional original file name, used as sourceFile in the rows and as the name of the output file (for example statement-2026-11.xml). |
| `fileContent` | body | string | no | The statement itself: raw XML / MT940 text, or base64 of the file (zip allowed). Max 10 MB. Processed in memory only, never stored or logged. |
| `inputFormat` | body | string | no | auto detects camt (XML) or MT940 by content. Set it only if detection fails. One of: auto, camt053, mt940. Example: `auto`. |

#### Quickstart

Convert a bank statement by sending the statement content or a public file URL.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/convert-bank-statement-format" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"format":"json","fileContent":":20:STMT20261124\n:25:NL91ABNA0417164300\n:28C:00001/001\n:60F:C261123EUR1000,00\n:61:2611241124D150,25NTRFNONREF//B1\n:86:Payment to ACME BV invoice 2026-11\n:62F:C261124EUR849,75\n-"}'
```

#### What you'll get back

Returns a JSON object with `count` as an integer and `items` as an array of result objects.

```json
{
  "count": 2,
  "items": [
    {
      "type": "statement",
      "statementId": "STMT20261124",
      "account": "NL91ABNA0417164300",
      "currency": "EUR",
      "openingBalance": 1000,
      "closingBalance": 849.75,
      "sourceFormat": "mt940"
    },
    {
      "type": "transaction",
      "amount": -150.25,
      "currency": "EUR",
      "bookingDate": "2026-11-24",
      "remittance": "Payment to ACME BV invoice 2026-11"
    }
  ]
}
```

## About

## What it does

The Bank Statement Converter API turns bank statement files into structured data in one request. Send a `fileUrl` or `fileContent`, and choose `format` as `json`, `csv`, `xlsx`, or `mt940`.

Send `inputFormat` as `auto` when you want the API to detect camt or MT940 by content. Set it to `camt053` or `mt940` only when detection fails. You can also pass `fileName`, which becomes the source file name in the output rows.

The API returns statement rows and transaction rows in JSON, or one file row for `csv`, `xlsx`, and `mt940`. You get balances, dates, amounts, currency, references, remittance text, counterparty details, and balance checks in the result.

Teams use Bank Statement Converter API to load bank data into accounting tools. They use it for reconciliation, exports, and workflow steps that need bank statement data in a clean format. To turn documents into data first, use the [Extract PDF Content API](https://apyhub.com/sarvasoft/service/extract-pdf-content). To get text from scanned files, use the [AI Image Optical Character Recognition (OCR) API](https://apyhub.com/apyhub/service/extract-text-from-image).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/convert-bank-statement-format
