# Batch normalize CAMT.053 and MT940 statements

**Use case:** 

Process a synthetic mixed-format batch, auto-detect CAMT.053 and MT940, and emit isolated deterministic records for each statement.

## Input

```json
{
  "statements": [
    {
      "sourceId": "synthetic-batch-camt053-2026-09",
      "format": "AUTO",
      "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:camt.053.001.08\">\n  <BkToCstmrStmt><Stmt><Id>SYNTHETIC-CAMT-2026-09</Id><Acct><Id><IBAN>DE00000000000000000000</IBAN></Id><Ccy>EUR</Ccy></Acct>\n    <Bal><Tp><CdOrPrtry><Cd>OPBD</Cd></CdOrPrtry></Tp><Amt Ccy=\"EUR\">100.00</Amt></Bal>\n    <Bal><Tp><CdOrPrtry><Cd>CLBD</Cd></CdOrPrtry></Tp><Amt Ccy=\"EUR\">112.34</Amt></Bal>\n    <Ntry><Amt Ccy=\"EUR\">12.34</Amt><CdtDbtInd>CRDT</CdtDbtInd><BookgDt><Dt>2026-09-15</Dt></BookgDt>\n      <ValDt><Dt>2026-09-15</Dt></ValDt><AcctSvcrRef>DEMO-BANK-1</AcctSvcrRef><NtryRef>DEMO-1</NtryRef><AddtlNtryInf>Synthetic invoice</AddtlNtryInf></Ntry>\n  </Stmt></BkToCstmrStmt>\n</Document>"
    },
    {
      "sourceId": "synthetic-batch-mt940-2026-09",
      "format": "AUTO",
      "content": ":20:SYNTHETIC-MT940-2026-09\n:25:DE00000000000000000000\n:28C:1/1\n:60F:C260901EUR250,00\n:61:2609100910D25,00NTRFDEMO-EXPENSE//DEMO-BANK-1\n:86:Synthetic office expense\n:61:2609150915C10,00NTRFDEMO-REFUND//DEMO-BANK-2\n:86:Synthetic refund\n:62F:C260930EUR235,00\n-"
    }
  ],
  "mode": "strict",
  "maxFileBytes": 2000000,
  "maxTransactionsPerStatement": 10000,
  "fetchTimeoutSecs": 10
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type"
  },
  "sourceId": {
    "label": "Source id"
  },
  "status": {
    "label": "Status"
  },
  "format": {
    "label": "Format"
  },
  "statementId": {
    "label": "Statement id"
  },
  "accountId": {
    "label": "Account id"
  },
  "currency": {
    "label": "Currency"
  },
  "reconciliationStatus": {
    "label": "Reconciliation status"
  },
  "transactionCount": {
    "label": "Transaction count"
  },
  "transactionId": {
    "label": "Transaction id"
  },
  "bookingDate": {
    "label": "Booking date"
  },
  "amount": {
    "label": "Amount"
  },
  "creditDebit": {
    "label": "Credit debit"
  },
  "reference": {
    "label": "Reference"
  },
  "errorCode": {
    "label": "Error code"
  }
}
```

## About this Actor

This example demonstrates how to use [Bank Statement Standards Bridge — CAMT.053 & MT940](https://apify.com/ceddl/bank-statement-standards-bridge.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ceddl/bank-statement-standards-bridge.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ceddl/bank-statement-standards-bridge.md

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`).
