# Bank Statement Converter: camt.053, MT940, BAI2, CODA, Norma 43 (`hardreset83/camt-mt940-to-excel`) Actor

Convert bank statement files to clean Excel, CSV and JSON: camt.053, camt.052, camt.054, MT940, MT942, BAI2, CODA, Norma 43 and CFONB 120. Every transaction with counterparty, IBAN, remittance information and running balance, plus a balance check for every statement.

- **URL**: https://apify.com/hardreset83/camt-mt940-to-excel.md
- **Developed by:** [Flavio D'Orio](https://apify.com/hardreset83) (community)
- **Categories:** Business, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 transaction parseds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bank Statement Converter: camt.053, MT940, BAI2, CODA, Norma 43 to Excel

Turn the electronic bank statements your bank gives you into a clean **Excel** file, **CSV** or **JSON** in seconds:
**ISO 20022 camt.053, camt.052 and camt.054 XML**, **SWIFT MT940 / MT942** and the national formats **Norma 43**
(Spain), **CFONB 120** (France), **CODA** (Belgium) and **BAI2** (United States). Every transaction comes with the
counterparty, IBAN, remittance information, references and the running balance. Every statement gets a **balance
check** (opening balance + transactions = closing balance), so you know that nothing is missing.

**Why now.** On 23 November 2025 MT940 stopped being a standard of the German banking industry: the standard for
account statements is now camt.053 XML, in version .001.08, and banks are switching MT940 off one after the other.
Swiss banks deliver camt.053 and camt.054 in versions .001.04 and .001.08. Importers, spreadsheets and scripts built
for MT940 or for one version stop working when the bank switches. This Actor reads all of them, and the national
formats of Spanish, French, Belgian and US banks, and gives you the same columns every time.

### What it reads

- **camt.053** statement (end of day), **camt.052** intraday account report, **camt.054** debit and credit
  notification (for example the collective credits of QR-bills or of collected SEPA direct debits).
- Versions **.001.02 to .001.13**, as used by German, Austrian, Swiss, Dutch, Nordic and other SEPA banks.
- **MT940** and **MT942**, also inside the SWIFT envelope. The :86: field is read in the German structured layout
  (?20 to ?29, EREF+, MREF+, CRED+, SVWZ+), in the Dutch layout (/TRTP/, /NAME/, /REMI/, /CNTP/) and as plain text.
- **Norma 43** (cuaderno 43 of the Spanish banking association, also called CSB43): many accounts in one file, the
  "concepto común" in plain words, the "conceptos" (records 23), the foreign currency amount of card payments
  (record 24), references 1 and 2, and the account as a full IBAN.
- **CFONB 120** (French "relevé de compte" in 120 characters): the complement records with the SEPA data (payer and
  payee, end-to-end reference, mandate RUM, creditor ID ICS, remittance information), the operation codes in plain
  words and the account as a full IBAN.
- **CODA** version 2 (Belgian coded statements): the structured communication (+++123/4567/89002+++), counterparty
  name, IBAN and BIC, SEPA direct debit data (creditor ID and mandate), the single payments of batch entries, the
  information records and the bank's totals.
- **BAI2** (balance reporting of US banks, prior day and intraday): ledger and available balances, type codes in plain
  words, bank and customer references, the value date of float, the 88 continuation records and the ACH company name
  as counterparty.
- **ZIP** archives with many statements, also a ZIP inside a ZIP, as exported by online banking and EBICS clients.
- Files in UTF-8, Windows-1252 / Latin-1 (umlauts and accents) and UTF-16, with or without line breaks between the
  records of Norma 43, CFONB 120 and CODA. The format is recognised from the content, not from the file name.

### What you get

- **Transactions**: booking date, value date, signed amount, currency, money in and money out, counterparty name,
  IBAN and BIC, remittance information, structured payment reference (QR reference, RF creditor reference, Belgian
  structured communication), the transaction type in plain words (from the ISO bank transaction code, the SWIFT code
  or the national code), the bank's own booking text, the **running balance**, end-to-end ID, mandate ID and creditor
  ID of direct debits, bank and customer references, status (booked or pending), reversals with the return reason,
  the original amount and exchange rate of card payments in a foreign currency, account, statement and file name.
- **Batch entries**: a salary run or a collective credit is one line on the statement. Its single payments, each
  with its own counterparty and reference, are in the sheet *Batch details*, or one row each if you switch on
  "One row per payment inside batch entries".
- **Statements**: account, holder, bank, period, opening and closing balance, money in and out, available balance,
  number of transactions and the **balance check**. If the numbers do not add up, the statement is flagged with the
  difference. It also warns you when a file declares more entries than it contains (a download cut in the middle).
- **TRANSACTIONS.xlsx** (real dates and numbers, filters and a frozen header), **TRANSACTIONS.csv**,
  **STATEMENTS.csv** and **SUMMARY** in the key-value store, plus the dataset in any format (JSON, CSV, Excel, XML).
- Column titles and transaction types in **English, Italian, German, Spanish or French**. The Italian, German,
  Spanish and French CSV use the semicolon and the decimal comma, so they open correctly in Excel in those languages.

### How to use it

1. Upload a statement file or a ZIP, add links to files, or paste one statement. The input is prefilled with an
   example camt.053: press **Start** to see the result.
2. Choose the language of the columns, and whether batch entries are split into single payments.
3. Open the **Storage** tab: TRANSACTIONS.xlsx, TRANSACTIONS.csv, STATEMENTS.csv and SUMMARY. Or export the dataset.

**Automation**: call the Actor from Make, Zapier, n8n or the Apify API with links to the files (from your EBICS
client, a cloud folder or an email attachment) and send the JSON to your accounting software, a spreadsheet or a
webhook. Save the input as a **task** and add a **schedule** to convert every new statement automatically.

### Example output

One transaction (a SEPA direct debit) from the example statement:

```json
{
  "bookingDate": "2026-11-03",
  "valueDate": "2026-11-03",
  "amount": -450.0,
  "currency": "EUR",
  "creditDebit": "debit",
  "counterpartyName": "Office Supplies Example AG",
  "counterpartyIban": "DE02120300000000202051",
  "remittanceInformation": "Order 7781 office supplies",
  "transactionType": "Direct debit, SEPA Core",
  "bookingText": "SEPA direct debit",
  "balanceAfter": 13850.0,
  "endToEndId": "ORDER-7781",
  "mandateId": "MND-0042",
  "creditorId": "DE98ZZZ09999999999",
  "bankReference": "2026110300002",
  "bankTransactionCode": "PMNT/RDDT/ESDD",
  "entryStatus": "booked",
  "reversal": false,
  "account": "DE89370400440532013000",
  "statementId": "DEMO-STMT-2026-214",
  "format": "camt.053.001.08"
}
```

And its statement in STATEMENTS.csv and SUMMARY: opening balance 12,500.00, money in 1,800.00, money out 606.95,
closing balance 13,693.05, balance check **ok**.

The same columns come out of every format: a Norma 43 transfer has `bankTransactionCode` "04/102" and
`transactionType` "Transfers" (in Spanish "Giros, transferencias, traspasos y cheques"), a Belgian payment has its
structured communication in `structuredReference`, a BAI2 ACH credit has the company name in `counterpartyName`.

### Who is it for

- **Accountants, bookkeepers and tax advisers**: the statements of all your clients' banks in one Excel, with the
  same columns for every bank and every country.
- **Finance teams and controllers**: bank reconciliation, cash reports, matching incoming payments to invoices by
  their reference.
- **Groups with accounts in several countries**: Spanish, French, Belgian and US accounts in the same spreadsheet as
  the German, Swiss or Italian ones.
- **Developers, automations and AI agents**: clean JSON from camt, MT940, Norma 43, CFONB, CODA and BAI2, without
  writing and maintaining a parser for each format.
- **Companies moving from MT940 to camt.053**: keep your Excel reports working with the new files.

### Pricing

**Pay per event: $2 per 1,000 transactions** ($0.002 per transaction returned). Statements without transactions,
the balance check, duplicate statements, files that are not statements (payment orders, PDFs) and broken files are
free. Set a maximum cost per run in the run options if you like.

### Privacy and security

The Actor runs in your own Apify account: the files and the results stay in the storage of your run, and it sends
nothing anywhere else (it only downloads the links you give it). XML files with DTD or entity declarations are
refused and ZIP archives are opened with size limits. Delete the run, or set a short data retention, when you no
longer need the results.

### FAQ

**Which banks does it work with?** Any bank that delivers camt.052, camt.053, camt.054, MT940, MT942, Norma 43,
CFONB 120, CODA or BAI2 files. In online banking these files are often called "XML statement", "ISO 20022
statement", "camt export", "SWIFT statement", "fichero Norma 43" or "cuaderno 43", "relevé CFONB", "CODA file" or
"BAI file". The Actor reads the electronic files, not PDF statements.

**Why does a statement "not add up"?** Usually a file of the series is missing, or a download was cut. The warning
shows the opening balance, money in, money out, the result and the closing balance that the bank declared.

**Can I get one row per single payment of a batch?** Yes: switch on "One row per payment inside batch entries". You
pay per row returned.

**My Norma 43 or CFONB file has no line breaks.** That is fine: the records are read by their length.

**Is a format missing?** Ask in the Issues tab, with an example file where the names and account numbers are
replaced.

**Can AI agents use it?** Yes: through the Apify API or the Apify MCP server an agent can convert statements and read
the JSON.

### Auf Deutsch

Kontoauszüge im Format **camt.053, camt.052, camt.054 und MT940 / MT942** in Excel, CSV und JSON umwandeln: jede
Buchung mit Zahlungsbeteiligtem, IBAN, Verwendungszweck, EREF, Mandatsreferenz, Gläubiger-ID und laufendem Saldo,
dazu eine Saldenprüfung für jeden Auszug. Seit dem 23. November 2025 ist MT940 kein Standard der Deutschen
Kreditwirtschaft mehr, Standard ist der camt.053 (Version .001.08), und die Banken schalten MT940 nach und nach ab:
das Tool liest alle Versionen, auch ZIP-Archive, und auch die Formate der Banken in Spanien
(Norma 43), Frankreich (CFONB 120), Belgien (CODA) und den USA (BAI2). Spalten auf Deutsch, CSV mit Semikolon und
Dezimalkomma. Preis: 2 $ pro 1.000 Buchungen.

### En español

Convierte los extractos bancarios electrónicos **Norma 43** (cuaderno 43 de la AEB), **camt.053** y **MT940** a
Excel, CSV y JSON: cada movimiento con concepto común, conceptos, referencias, importe en divisa y saldo después del
movimiento, y la cuenta como IBAN completo. Varias cuentas en un mismo fichero, también dentro de un ZIP, y ficheros
sin saltos de línea. Cuadre de saldos de cada extracto. Columnas en español, CSV con punto y coma y coma decimal.
Precio: 2 $ por cada 1.000 movimientos.

### En français

Convertit les relevés de compte électroniques **CFONB 120**, **CODA** (Belgique), **camt.053** et **MT940** en
Excel, CSV et JSON : chaque opération avec contrepartie, motif du paiement, référence de bout en bout, RUM et ICS des
prélèvements SEPA, communication structurée belge et solde après opération, et le compte en IBAN complet. Contrôle des
soldes de chaque relevé. Colonnes en français, CSV avec point-virgule et virgule décimale. Prix : 2 $ pour
1 000 opérations.

### In italiano

Converte gli estratti conto elettronici **camt.053, camt.052, camt.054 e MT940 / MT942** in Excel, CSV e JSON, e
anche i formati delle banche di Spagna (Norma 43), Francia (CFONB 120), Belgio (CODA) e Stati Uniti (BAI2): ogni
movimento con controparte, IBAN, causale, riferimenti e saldo progressivo, più la quadratura di ogni estratto conto.
Colonne in italiano, CSV con punto e virgola e virgola decimale. Prezzo: 2 $ ogni 1.000 movimenti.

# Actor input Schema

## `statementFile` (type: `string`):

One bank statement file: camt.053, camt.052 or camt.054 XML, MT940 or MT942 (.sta, .940, .txt), BAI2 (.bai), CODA (.cod), Norma 43 (.n43, .aeb, .txt) or CFONB 120 (.cfo, .txt), or a ZIP archive with many of them, for example the export of your online banking. Payment orders (pain.001), PDFs and other files inside the ZIP are skipped for free.

## `statementUrls` (type: `array`):

Direct links (https) to statement files or ZIP archives. Useful from Make, Zapier, n8n or your own code.

## `statementContent` (type: `string`):

Paste the content of one statement file (camt XML, MT940, BAI2, CODA, Norma 43 or CFONB 120). Prefilled with an example camt.053 statement so you can try the Actor in one click: when you upload a file or add links, the example is ignored.

## `splitBatches` (type: `boolean`):

Some entries group many payments (a salary run, collected direct debits, QR-bill collective credits). Off: one row per line of the statement, as your bank shows it, and the single payments in the Excel sheet "Batch details". On: one row for each single payment, with its own counterparty and reference.

## `language` (type: `string`):

Column titles and texts of the spreadsheets. Italian, German, Spanish and French use the semicolon and the decimal comma, so the CSV opens correctly in Excel in those languages.

## `saveSpreadsheets` (type: `boolean`):

Creates a ready-to-use Excel file in the key-value store, with the transactions, the statements with their balance check and the single payments of batch entries.

## `deduplicate` (type: `boolean`):

The same statement found twice (the same file uploaded again, or inside two archives) is returned and charged only once.

## `maxTransactions` (type: `integer`):

Stop after this many transactions (0 = no limit). You can also set the maximum cost per run in the run options.

## Actor input object example

```json
{
  "statementUrls": [],
  "statementContent": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:camt.053.001.08\">\n  <BkToCstmrStmt>\n    <GrpHdr>\n      <MsgId>DEMO-20261104-0600</MsgId>\n      <CreDtTm>2026-11-04T06:00:00+01:00</CreDtTm>\n    </GrpHdr>\n    <Stmt>\n      <Id>DEMO-STMT-2026-214</Id>\n      <ElctrncSeqNb>214</ElctrncSeqNb>\n      <CreDtTm>2026-11-04T06:00:00+01:00</CreDtTm>\n      <FrToDt>\n        <FrDtTm>2026-11-03T00:00:00+01:00</FrDtTm>\n        <ToDtTm>2026-11-03T23:59:59+01:00</ToDtTm>\n      </FrToDt>\n      <Acct>\n        <Id><IBAN>DE89370400440532013000</IBAN></Id>\n        <Ccy>EUR</Ccy>\n        <Ownr><Nm>Example Trading GmbH</Nm></Ownr>\n        <Svcr><FinInstnId><BICFI>EXMPDEFFXXX</BICFI><Nm>Example Bank AG</Nm></FinInstnId></Svcr>\n      </Acct>\n      <Bal>\n        <Tp><CdOrPrtry><Cd>PRCD</Cd></CdOrPrtry></Tp>\n        <Amt Ccy=\"EUR\">12500.00</Amt>\n        <CdtDbtInd>CRDT</CdtDbtInd>\n        <Dt><Dt>2026-11-02</Dt></Dt>\n      </Bal>\n      <Bal>\n        <Tp><CdOrPrtry><Cd>CLBD</Cd></CdOrPrtry></Tp>\n        <Amt Ccy=\"EUR\">13693.05</Amt>\n        <CdtDbtInd>CRDT</CdtDbtInd>\n        <Dt><Dt>2026-11-03</Dt></Dt>\n      </Bal>\n      <TxsSummry>\n        <TtlNtries><NbOfNtries>4</NbOfNtries></TtlNtries>\n        <TtlCdtNtries><NbOfNtries>1</NbOfNtries><Sum>1800.00</Sum></TtlCdtNtries>\n        <TtlDbtNtries><NbOfNtries>3</NbOfNtries><Sum>606.95</Sum></TtlDbtNtries>\n      </TxsSummry>\n      <Ntry>\n        <Amt Ccy=\"EUR\">1800.00</Amt>\n        <CdtDbtInd>CRDT</CdtDbtInd>\n        <Sts><Cd>BOOK</Cd></Sts>\n        <BookgDt><Dt>2026-11-03</Dt></BookgDt>\n        <ValDt><Dt>2026-11-03</Dt></ValDt>\n        <AcctSvcrRef>2026110300001</AcctSvcrRef>\n        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RCDT</Cd><SubFmlyCd>ESCT</SubFmlyCd></Fmly></Domn></BkTxCd>\n        <NtryDtls>\n          <TxDtls>\n            <Refs><EndToEndId>INV-2026-118</EndToEndId></Refs>\n            <Amt Ccy=\"EUR\">1800.00</Amt>\n            <CdtDbtInd>CRDT</CdtDbtInd>\n            <RltdPties>\n              <Dbtr><Pty><Nm>Sample Customer Ltd</Nm></Pty></Dbtr>\n              <DbtrAcct><Id><IBAN>FR7630006000011234567890189</IBAN></Id></DbtrAcct>\n            </RltdPties>\n            <RltdAgts><DbtrAgt><FinInstnId><BICFI>EXMPFRPPXXX</BICFI></FinInstnId></DbtrAgt></RltdAgts>\n            <RmtInf><Ustrd>Invoice 2026-118</Ustrd></RmtInf>\n          </TxDtls>\n        </NtryDtls>\n        <AddtlNtryInf>SEPA credit transfer</AddtlNtryInf>\n      </Ntry>\n      <Ntry>\n        <Amt Ccy=\"EUR\">450.00</Amt>\n        <CdtDbtInd>DBIT</CdtDbtInd>\n        <Sts><Cd>BOOK</Cd></Sts>\n        <BookgDt><Dt>2026-11-03</Dt></BookgDt>\n        <ValDt><Dt>2026-11-03</Dt></ValDt>\n        <AcctSvcrRef>2026110300002</AcctSvcrRef>\n        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RDDT</Cd><SubFmlyCd>ESDD</SubFmlyCd></Fmly></Domn></BkTxCd>\n        <NtryDtls>\n          <TxDtls>\n            <Refs><EndToEndId>ORDER-7781</EndToEndId><MndtId>MND-0042</MndtId></Refs>\n            <Amt Ccy=\"EUR\">450.00</Amt>\n            <CdtDbtInd>DBIT</CdtDbtInd>\n            <RltdPties>\n              <Cdtr><Pty><Nm>Office Supplies Example AG</Nm><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></Pty></Cdtr>\n              <CdtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></CdtrAcct>\n            </RltdPties>\n            <RmtInf><Ustrd>Order 7781 office supplies</Ustrd></RmtInf>\n          </TxDtls>\n        </NtryDtls>\n        <AddtlNtryInf>SEPA direct debit</AddtlNtryInf>\n      </Ntry>\n      <Ntry>\n        <Amt Ccy=\"EUR\">142.95</Amt>\n        <CdtDbtInd>DBIT</CdtDbtInd>\n        <Sts><Cd>BOOK</Cd></Sts>\n        <BookgDt><Dt>2026-11-03</Dt></BookgDt>\n        <ValDt><Dt>2026-11-02</Dt></ValDt>\n        <AcctSvcrRef>2026110300003</AcctSvcrRef>\n        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>CCRD</Cd><SubFmlyCd>POSD</SubFmlyCd></Fmly></Domn></BkTxCd>\n        <NtryDtls>\n          <TxDtls>\n            <Amt Ccy=\"EUR\">142.95</Amt>\n            <CdtDbtInd>DBIT</CdtDbtInd>\n            <RltdPties><Cdtr><Pty><Nm>Example Fuel Station 12</Nm></Pty></Cdtr></RltdPties>\n          </TxDtls>\n        </NtryDtls>\n        <AddtlNtryInf>Card payment 02.11. debit card</AddtlNtryInf>\n      </Ntry>\n      <Ntry>\n        <Amt Ccy=\"EUR\">14.00</Amt>\n        <CdtDbtInd>DBIT</CdtDbtInd>\n        <Sts><Cd>BOOK</Cd></Sts>\n        <BookgDt><Dt>2026-11-03</Dt></BookgDt>\n        <ValDt><Dt>2026-11-03</Dt></ValDt>\n        <AcctSvcrRef>2026110300004</AcctSvcrRef>\n        <BkTxCd><Domn><Cd>ACMT</Cd><Fmly><Cd>MDOP</Cd><SubFmlyCd>CHRG</SubFmlyCd></Fmly></Domn></BkTxCd>\n        <AddtlNtryInf>Account fee October</AddtlNtryInf>\n      </Ntry>\n    </Stmt>\n  </BkToCstmrStmt>\n</Document>\n",
  "splitBatches": false,
  "language": "en",
  "saveSpreadsheets": true,
  "deduplicate": true,
  "maxTransactions": 0
}
```

# Actor output Schema

## `transactions` (type: `string`):

Every transaction of your statements.

## `report` (type: `string`):

TRANSACTIONS.xlsx: transactions, statements and batch details.

## `files` (type: `string`):

Every file of this run in the key-value store, with its link.

## `summary` (type: `string`):

The result of the run in short: counts, totals, problems and the links to the files.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "statementUrls": [],
    "statementContent": `<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.053.001.08">
  <BkToCstmrStmt>
    <GrpHdr>
      <MsgId>DEMO-20261104-0600</MsgId>
      <CreDtTm>2026-11-04T06:00:00+01:00</CreDtTm>
    </GrpHdr>
    <Stmt>
      <Id>DEMO-STMT-2026-214</Id>
      <ElctrncSeqNb>214</ElctrncSeqNb>
      <CreDtTm>2026-11-04T06:00:00+01:00</CreDtTm>
      <FrToDt>
        <FrDtTm>2026-11-03T00:00:00+01:00</FrDtTm>
        <ToDtTm>2026-11-03T23:59:59+01:00</ToDtTm>
      </FrToDt>
      <Acct>
        <Id><IBAN>DE89370400440532013000</IBAN></Id>
        <Ccy>EUR</Ccy>
        <Ownr><Nm>Example Trading GmbH</Nm></Ownr>
        <Svcr><FinInstnId><BICFI>EXMPDEFFXXX</BICFI><Nm>Example Bank AG</Nm></FinInstnId></Svcr>
      </Acct>
      <Bal>
        <Tp><CdOrPrtry><Cd>PRCD</Cd></CdOrPrtry></Tp>
        <Amt Ccy="EUR">12500.00</Amt>
        <CdtDbtInd>CRDT</CdtDbtInd>
        <Dt><Dt>2026-11-02</Dt></Dt>
      </Bal>
      <Bal>
        <Tp><CdOrPrtry><Cd>CLBD</Cd></CdOrPrtry></Tp>
        <Amt Ccy="EUR">13693.05</Amt>
        <CdtDbtInd>CRDT</CdtDbtInd>
        <Dt><Dt>2026-11-03</Dt></Dt>
      </Bal>
      <TxsSummry>
        <TtlNtries><NbOfNtries>4</NbOfNtries></TtlNtries>
        <TtlCdtNtries><NbOfNtries>1</NbOfNtries><Sum>1800.00</Sum></TtlCdtNtries>
        <TtlDbtNtries><NbOfNtries>3</NbOfNtries><Sum>606.95</Sum></TtlDbtNtries>
      </TxsSummry>
      <Ntry>
        <Amt Ccy="EUR">1800.00</Amt>
        <CdtDbtInd>CRDT</CdtDbtInd>
        <Sts><Cd>BOOK</Cd></Sts>
        <BookgDt><Dt>2026-11-03</Dt></BookgDt>
        <ValDt><Dt>2026-11-03</Dt></ValDt>
        <AcctSvcrRef>2026110300001</AcctSvcrRef>
        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RCDT</Cd><SubFmlyCd>ESCT</SubFmlyCd></Fmly></Domn></BkTxCd>
        <NtryDtls>
          <TxDtls>
            <Refs><EndToEndId>INV-2026-118</EndToEndId></Refs>
            <Amt Ccy="EUR">1800.00</Amt>
            <CdtDbtInd>CRDT</CdtDbtInd>
            <RltdPties>
              <Dbtr><Pty><Nm>Sample Customer Ltd</Nm></Pty></Dbtr>
              <DbtrAcct><Id><IBAN>FR7630006000011234567890189</IBAN></Id></DbtrAcct>
            </RltdPties>
            <RltdAgts><DbtrAgt><FinInstnId><BICFI>EXMPFRPPXXX</BICFI></FinInstnId></DbtrAgt></RltdAgts>
            <RmtInf><Ustrd>Invoice 2026-118</Ustrd></RmtInf>
          </TxDtls>
        </NtryDtls>
        <AddtlNtryInf>SEPA credit transfer</AddtlNtryInf>
      </Ntry>
      <Ntry>
        <Amt Ccy="EUR">450.00</Amt>
        <CdtDbtInd>DBIT</CdtDbtInd>
        <Sts><Cd>BOOK</Cd></Sts>
        <BookgDt><Dt>2026-11-03</Dt></BookgDt>
        <ValDt><Dt>2026-11-03</Dt></ValDt>
        <AcctSvcrRef>2026110300002</AcctSvcrRef>
        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RDDT</Cd><SubFmlyCd>ESDD</SubFmlyCd></Fmly></Domn></BkTxCd>
        <NtryDtls>
          <TxDtls>
            <Refs><EndToEndId>ORDER-7781</EndToEndId><MndtId>MND-0042</MndtId></Refs>
            <Amt Ccy="EUR">450.00</Amt>
            <CdtDbtInd>DBIT</CdtDbtInd>
            <RltdPties>
              <Cdtr><Pty><Nm>Office Supplies Example AG</Nm><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></Pty></Cdtr>
              <CdtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></CdtrAcct>
            </RltdPties>
            <RmtInf><Ustrd>Order 7781 office supplies</Ustrd></RmtInf>
          </TxDtls>
        </NtryDtls>
        <AddtlNtryInf>SEPA direct debit</AddtlNtryInf>
      </Ntry>
      <Ntry>
        <Amt Ccy="EUR">142.95</Amt>
        <CdtDbtInd>DBIT</CdtDbtInd>
        <Sts><Cd>BOOK</Cd></Sts>
        <BookgDt><Dt>2026-11-03</Dt></BookgDt>
        <ValDt><Dt>2026-11-02</Dt></ValDt>
        <AcctSvcrRef>2026110300003</AcctSvcrRef>
        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>CCRD</Cd><SubFmlyCd>POSD</SubFmlyCd></Fmly></Domn></BkTxCd>
        <NtryDtls>
          <TxDtls>
            <Amt Ccy="EUR">142.95</Amt>
            <CdtDbtInd>DBIT</CdtDbtInd>
            <RltdPties><Cdtr><Pty><Nm>Example Fuel Station 12</Nm></Pty></Cdtr></RltdPties>
          </TxDtls>
        </NtryDtls>
        <AddtlNtryInf>Card payment 02.11. debit card</AddtlNtryInf>
      </Ntry>
      <Ntry>
        <Amt Ccy="EUR">14.00</Amt>
        <CdtDbtInd>DBIT</CdtDbtInd>
        <Sts><Cd>BOOK</Cd></Sts>
        <BookgDt><Dt>2026-11-03</Dt></BookgDt>
        <ValDt><Dt>2026-11-03</Dt></ValDt>
        <AcctSvcrRef>2026110300004</AcctSvcrRef>
        <BkTxCd><Domn><Cd>ACMT</Cd><Fmly><Cd>MDOP</Cd><SubFmlyCd>CHRG</SubFmlyCd></Fmly></Domn></BkTxCd>
        <AddtlNtryInf>Account fee October</AddtlNtryInf>
      </Ntry>
    </Stmt>
  </BkToCstmrStmt>
</Document>`
};

// Run the Actor and wait for it to finish
const run = await client.actor("hardreset83/camt-mt940-to-excel").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "statementUrls": [],
    "statementContent": """<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:camt.053.001.08\">
  <BkToCstmrStmt>
    <GrpHdr>
      <MsgId>DEMO-20261104-0600</MsgId>
      <CreDtTm>2026-11-04T06:00:00+01:00</CreDtTm>
    </GrpHdr>
    <Stmt>
      <Id>DEMO-STMT-2026-214</Id>
      <ElctrncSeqNb>214</ElctrncSeqNb>
      <CreDtTm>2026-11-04T06:00:00+01:00</CreDtTm>
      <FrToDt>
        <FrDtTm>2026-11-03T00:00:00+01:00</FrDtTm>
        <ToDtTm>2026-11-03T23:59:59+01:00</ToDtTm>
      </FrToDt>
      <Acct>
        <Id><IBAN>DE89370400440532013000</IBAN></Id>
        <Ccy>EUR</Ccy>
        <Ownr><Nm>Example Trading GmbH</Nm></Ownr>
        <Svcr><FinInstnId><BICFI>EXMPDEFFXXX</BICFI><Nm>Example Bank AG</Nm></FinInstnId></Svcr>
      </Acct>
      <Bal>
        <Tp><CdOrPrtry><Cd>PRCD</Cd></CdOrPrtry></Tp>
        <Amt Ccy=\"EUR\">12500.00</Amt>
        <CdtDbtInd>CRDT</CdtDbtInd>
        <Dt><Dt>2026-11-02</Dt></Dt>
      </Bal>
      <Bal>
        <Tp><CdOrPrtry><Cd>CLBD</Cd></CdOrPrtry></Tp>
        <Amt Ccy=\"EUR\">13693.05</Amt>
        <CdtDbtInd>CRDT</CdtDbtInd>
        <Dt><Dt>2026-11-03</Dt></Dt>
      </Bal>
      <TxsSummry>
        <TtlNtries><NbOfNtries>4</NbOfNtries></TtlNtries>
        <TtlCdtNtries><NbOfNtries>1</NbOfNtries><Sum>1800.00</Sum></TtlCdtNtries>
        <TtlDbtNtries><NbOfNtries>3</NbOfNtries><Sum>606.95</Sum></TtlDbtNtries>
      </TxsSummry>
      <Ntry>
        <Amt Ccy=\"EUR\">1800.00</Amt>
        <CdtDbtInd>CRDT</CdtDbtInd>
        <Sts><Cd>BOOK</Cd></Sts>
        <BookgDt><Dt>2026-11-03</Dt></BookgDt>
        <ValDt><Dt>2026-11-03</Dt></ValDt>
        <AcctSvcrRef>2026110300001</AcctSvcrRef>
        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RCDT</Cd><SubFmlyCd>ESCT</SubFmlyCd></Fmly></Domn></BkTxCd>
        <NtryDtls>
          <TxDtls>
            <Refs><EndToEndId>INV-2026-118</EndToEndId></Refs>
            <Amt Ccy=\"EUR\">1800.00</Amt>
            <CdtDbtInd>CRDT</CdtDbtInd>
            <RltdPties>
              <Dbtr><Pty><Nm>Sample Customer Ltd</Nm></Pty></Dbtr>
              <DbtrAcct><Id><IBAN>FR7630006000011234567890189</IBAN></Id></DbtrAcct>
            </RltdPties>
            <RltdAgts><DbtrAgt><FinInstnId><BICFI>EXMPFRPPXXX</BICFI></FinInstnId></DbtrAgt></RltdAgts>
            <RmtInf><Ustrd>Invoice 2026-118</Ustrd></RmtInf>
          </TxDtls>
        </NtryDtls>
        <AddtlNtryInf>SEPA credit transfer</AddtlNtryInf>
      </Ntry>
      <Ntry>
        <Amt Ccy=\"EUR\">450.00</Amt>
        <CdtDbtInd>DBIT</CdtDbtInd>
        <Sts><Cd>BOOK</Cd></Sts>
        <BookgDt><Dt>2026-11-03</Dt></BookgDt>
        <ValDt><Dt>2026-11-03</Dt></ValDt>
        <AcctSvcrRef>2026110300002</AcctSvcrRef>
        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RDDT</Cd><SubFmlyCd>ESDD</SubFmlyCd></Fmly></Domn></BkTxCd>
        <NtryDtls>
          <TxDtls>
            <Refs><EndToEndId>ORDER-7781</EndToEndId><MndtId>MND-0042</MndtId></Refs>
            <Amt Ccy=\"EUR\">450.00</Amt>
            <CdtDbtInd>DBIT</CdtDbtInd>
            <RltdPties>
              <Cdtr><Pty><Nm>Office Supplies Example AG</Nm><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></Pty></Cdtr>
              <CdtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></CdtrAcct>
            </RltdPties>
            <RmtInf><Ustrd>Order 7781 office supplies</Ustrd></RmtInf>
          </TxDtls>
        </NtryDtls>
        <AddtlNtryInf>SEPA direct debit</AddtlNtryInf>
      </Ntry>
      <Ntry>
        <Amt Ccy=\"EUR\">142.95</Amt>
        <CdtDbtInd>DBIT</CdtDbtInd>
        <Sts><Cd>BOOK</Cd></Sts>
        <BookgDt><Dt>2026-11-03</Dt></BookgDt>
        <ValDt><Dt>2026-11-02</Dt></ValDt>
        <AcctSvcrRef>2026110300003</AcctSvcrRef>
        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>CCRD</Cd><SubFmlyCd>POSD</SubFmlyCd></Fmly></Domn></BkTxCd>
        <NtryDtls>
          <TxDtls>
            <Amt Ccy=\"EUR\">142.95</Amt>
            <CdtDbtInd>DBIT</CdtDbtInd>
            <RltdPties><Cdtr><Pty><Nm>Example Fuel Station 12</Nm></Pty></Cdtr></RltdPties>
          </TxDtls>
        </NtryDtls>
        <AddtlNtryInf>Card payment 02.11. debit card</AddtlNtryInf>
      </Ntry>
      <Ntry>
        <Amt Ccy=\"EUR\">14.00</Amt>
        <CdtDbtInd>DBIT</CdtDbtInd>
        <Sts><Cd>BOOK</Cd></Sts>
        <BookgDt><Dt>2026-11-03</Dt></BookgDt>
        <ValDt><Dt>2026-11-03</Dt></ValDt>
        <AcctSvcrRef>2026110300004</AcctSvcrRef>
        <BkTxCd><Domn><Cd>ACMT</Cd><Fmly><Cd>MDOP</Cd><SubFmlyCd>CHRG</SubFmlyCd></Fmly></Domn></BkTxCd>
        <AddtlNtryInf>Account fee October</AddtlNtryInf>
      </Ntry>
    </Stmt>
  </BkToCstmrStmt>
</Document>
""",
}

# Run the Actor and wait for it to finish
run = client.actor("hardreset83/camt-mt940-to-excel").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "statementUrls": [],
  "statementContent": "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<Document xmlns=\\"urn:iso:std:iso:20022:tech:xsd:camt.053.001.08\\">\\n  <BkToCstmrStmt>\\n    <GrpHdr>\\n      <MsgId>DEMO-20261104-0600</MsgId>\\n      <CreDtTm>2026-11-04T06:00:00+01:00</CreDtTm>\\n    </GrpHdr>\\n    <Stmt>\\n      <Id>DEMO-STMT-2026-214</Id>\\n      <ElctrncSeqNb>214</ElctrncSeqNb>\\n      <CreDtTm>2026-11-04T06:00:00+01:00</CreDtTm>\\n      <FrToDt>\\n        <FrDtTm>2026-11-03T00:00:00+01:00</FrDtTm>\\n        <ToDtTm>2026-11-03T23:59:59+01:00</ToDtTm>\\n      </FrToDt>\\n      <Acct>\\n        <Id><IBAN>DE89370400440532013000</IBAN></Id>\\n        <Ccy>EUR</Ccy>\\n        <Ownr><Nm>Example Trading GmbH</Nm></Ownr>\\n        <Svcr><FinInstnId><BICFI>EXMPDEFFXXX</BICFI><Nm>Example Bank AG</Nm></FinInstnId></Svcr>\\n      </Acct>\\n      <Bal>\\n        <Tp><CdOrPrtry><Cd>PRCD</Cd></CdOrPrtry></Tp>\\n        <Amt Ccy=\\"EUR\\">12500.00</Amt>\\n        <CdtDbtInd>CRDT</CdtDbtInd>\\n        <Dt><Dt>2026-11-02</Dt></Dt>\\n      </Bal>\\n      <Bal>\\n        <Tp><CdOrPrtry><Cd>CLBD</Cd></CdOrPrtry></Tp>\\n        <Amt Ccy=\\"EUR\\">13693.05</Amt>\\n        <CdtDbtInd>CRDT</CdtDbtInd>\\n        <Dt><Dt>2026-11-03</Dt></Dt>\\n      </Bal>\\n      <TxsSummry>\\n        <TtlNtries><NbOfNtries>4</NbOfNtries></TtlNtries>\\n        <TtlCdtNtries><NbOfNtries>1</NbOfNtries><Sum>1800.00</Sum></TtlCdtNtries>\\n        <TtlDbtNtries><NbOfNtries>3</NbOfNtries><Sum>606.95</Sum></TtlDbtNtries>\\n      </TxsSummry>\\n      <Ntry>\\n        <Amt Ccy=\\"EUR\\">1800.00</Amt>\\n        <CdtDbtInd>CRDT</CdtDbtInd>\\n        <Sts><Cd>BOOK</Cd></Sts>\\n        <BookgDt><Dt>2026-11-03</Dt></BookgDt>\\n        <ValDt><Dt>2026-11-03</Dt></ValDt>\\n        <AcctSvcrRef>2026110300001</AcctSvcrRef>\\n        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RCDT</Cd><SubFmlyCd>ESCT</SubFmlyCd></Fmly></Domn></BkTxCd>\\n        <NtryDtls>\\n          <TxDtls>\\n            <Refs><EndToEndId>INV-2026-118</EndToEndId></Refs>\\n            <Amt Ccy=\\"EUR\\">1800.00</Amt>\\n            <CdtDbtInd>CRDT</CdtDbtInd>\\n            <RltdPties>\\n              <Dbtr><Pty><Nm>Sample Customer Ltd</Nm></Pty></Dbtr>\\n              <DbtrAcct><Id><IBAN>FR7630006000011234567890189</IBAN></Id></DbtrAcct>\\n            </RltdPties>\\n            <RltdAgts><DbtrAgt><FinInstnId><BICFI>EXMPFRPPXXX</BICFI></FinInstnId></DbtrAgt></RltdAgts>\\n            <RmtInf><Ustrd>Invoice 2026-118</Ustrd></RmtInf>\\n          </TxDtls>\\n        </NtryDtls>\\n        <AddtlNtryInf>SEPA credit transfer</AddtlNtryInf>\\n      </Ntry>\\n      <Ntry>\\n        <Amt Ccy=\\"EUR\\">450.00</Amt>\\n        <CdtDbtInd>DBIT</CdtDbtInd>\\n        <Sts><Cd>BOOK</Cd></Sts>\\n        <BookgDt><Dt>2026-11-03</Dt></BookgDt>\\n        <ValDt><Dt>2026-11-03</Dt></ValDt>\\n        <AcctSvcrRef>2026110300002</AcctSvcrRef>\\n        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RDDT</Cd><SubFmlyCd>ESDD</SubFmlyCd></Fmly></Domn></BkTxCd>\\n        <NtryDtls>\\n          <TxDtls>\\n            <Refs><EndToEndId>ORDER-7781</EndToEndId><MndtId>MND-0042</MndtId></Refs>\\n            <Amt Ccy=\\"EUR\\">450.00</Amt>\\n            <CdtDbtInd>DBIT</CdtDbtInd>\\n            <RltdPties>\\n              <Cdtr><Pty><Nm>Office Supplies Example AG</Nm><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></Pty></Cdtr>\\n              <CdtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></CdtrAcct>\\n            </RltdPties>\\n            <RmtInf><Ustrd>Order 7781 office supplies</Ustrd></RmtInf>\\n          </TxDtls>\\n        </NtryDtls>\\n        <AddtlNtryInf>SEPA direct debit</AddtlNtryInf>\\n      </Ntry>\\n      <Ntry>\\n        <Amt Ccy=\\"EUR\\">142.95</Amt>\\n        <CdtDbtInd>DBIT</CdtDbtInd>\\n        <Sts><Cd>BOOK</Cd></Sts>\\n        <BookgDt><Dt>2026-11-03</Dt></BookgDt>\\n        <ValDt><Dt>2026-11-02</Dt></ValDt>\\n        <AcctSvcrRef>2026110300003</AcctSvcrRef>\\n        <BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>CCRD</Cd><SubFmlyCd>POSD</SubFmlyCd></Fmly></Domn></BkTxCd>\\n        <NtryDtls>\\n          <TxDtls>\\n            <Amt Ccy=\\"EUR\\">142.95</Amt>\\n            <CdtDbtInd>DBIT</CdtDbtInd>\\n            <RltdPties><Cdtr><Pty><Nm>Example Fuel Station 12</Nm></Pty></Cdtr></RltdPties>\\n          </TxDtls>\\n        </NtryDtls>\\n        <AddtlNtryInf>Card payment 02.11. debit card</AddtlNtryInf>\\n      </Ntry>\\n      <Ntry>\\n        <Amt Ccy=\\"EUR\\">14.00</Amt>\\n        <CdtDbtInd>DBIT</CdtDbtInd>\\n        <Sts><Cd>BOOK</Cd></Sts>\\n        <BookgDt><Dt>2026-11-03</Dt></BookgDt>\\n        <ValDt><Dt>2026-11-03</Dt></ValDt>\\n        <AcctSvcrRef>2026110300004</AcctSvcrRef>\\n        <BkTxCd><Domn><Cd>ACMT</Cd><Fmly><Cd>MDOP</Cd><SubFmlyCd>CHRG</SubFmlyCd></Fmly></Domn></BkTxCd>\\n        <AddtlNtryInf>Account fee October</AddtlNtryInf>\\n      </Ntry>\\n    </Stmt>\\n  </BkToCstmrStmt>\\n</Document>\\n"
}' |
apify call hardreset83/camt-mt940-to-excel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hardreset83/camt-mt940-to-excel"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/t1cVU1fU7MUq9cHWk/builds/dScDghFb5sHImX8JO/openapi.json
