About this endpoint
What it does
Converts a bank statement file from camt.053, camt.052, or MT940 into structured output. The request can be provided as a file URL or raw file content, and the response returns extracted statement rows in the requested format.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| format | ENUM | No | Output format. Allowed values: json, csv, xlsx, mt940. json returns one row per statement and one row per transaction; csv or xlsx returns one row with the file as base64 (contentBase64) plus statement summaries; mt940 returns the statement converted to MT940 as plain text (text). |
| fileUrl | String | No | Public http(s) link to a camt.053, camt.052 or MT940 file, or a .zip with several files. Max 10 MB, up to 50 files. Private and local addresses are refused. Send either fileUrl or fileContent; if both are sent, fileUrl is used. |
| fileName | String | No | Optional original file name. Used as sourceFile in the rows and as the name of the output file. |
| fileContent | String | No | The statement itself: raw XML / MT940 text, or base64 of the file. Zip is allowed. Max 10 MB. Processed in memory only, never stored or logged. |
| inputFormat | ENUM | No | Input format override. Allowed values: auto, camt053, mt940. auto detects camt (XML) or MT940 by content; set it only if detection fails. |
One of fileUrl or fileContent is required.
Response
Returns a JSON object with a count integer field and an items array of objects. count is the number of rows in items, and each item contains the extracted statement fields defined by the schema.
| Parameter | Type | Description |
|---|---|---|
| count | Integer | Number of rows in items. |
| items | Object Array | Array of result rows. Each row has a type: statement and transaction rows for json, or one file row for csv, xlsx and mt940. |
| items[].type | String | Row type: statement, transaction or file. |
| items[].statementId | String | Statement reference (statement and transaction rows). |
| items[].account | String | Account number or IBAN (statement and transaction rows). |
| items[].bic | String | Bank BIC, if present (statement rows). |
| items[].ownerName | String | Account holder name, if present (statement rows). |
| items[].currency | String | Currency, e.g. EUR. |
| items[].sequenceNumber | String | Statement sequence number, if present (statement rows). |
| items[].creationDate | String | Date the statement was created (YYYY-MM-DD), if present (statement rows). |
| items[].openingDate | String | Date of the opening balance (YYYY-MM-DD) (statement rows). |
| items[].openingBalance | Number | Opening balance (statement rows). |
| items[].closingDate | String | Date of the closing balance (YYYY-MM-DD) (statement rows). |
| items[].closingBalance | Number | Closing balance (statement rows). |
| items[].sumCredits | Number | Total of all credits (statement rows). |
| items[].sumDebits | Number | Total of all debits, as a negative number (statement rows). |
| items[].transactionCount | Integer | Number of transactions in the statement (statement rows). |
| items[].entryCount | Integer | Number of entries in the statement (statement rows). |
| items[].balanceCheck | Object | Balance check (statement rows): expectedClosing (opening + credits + debits), closingBalance, difference, and ok (true when they match). |
| items[].sourceFormat | String | Detected input format, e.g. mt940 or camt.053.001.02 (statement rows). |
| items[].sourceFile | String | Input file name (from fileName) (statement and transaction rows). |
| items[].amount | Number | Transaction amount. Negative for debits, positive for credits (transaction rows). |
| items[].creditDebit | String | CRDT or DBIT (transaction rows). |
| items[].bookingDate | String | Booking date (YYYY-MM-DD) (transaction rows). |
| items[].valueDate | String | Value date (YYYY-MM-DD) (transaction rows). |
| items[].status | String | Entry status, e.g. BOOK (transaction rows). |
| items[].reversal | Boolean | true if the entry is a reversal (transaction rows). |
| items[].counterpartyName | String | Name of the other party, if present (transaction rows). |
| items[].counterpartyIban | String | IBAN of the other party, if present (transaction rows). |
| items[].counterpartyBic | String | BIC of the other party's bank, if present (transaction rows). |
| items[].remittance | String | Payment description / remittance text (transaction rows). |
| items[].reference | String | Customer reference, if present (transaction rows). |
| items[].bankReference | String | Bank reference, if present (transaction rows). |
| items[].endToEndId | String | SEPA end-to-end ID, if present (transaction rows). |
| items[].mandateId | String | SEPA direct debit mandate ID, if present (transaction rows). |
| items[].creditorId | String | SEPA creditor ID, if present (transaction rows). |
| items[].purposeCode | String | Purpose code, if present (transaction rows). |
| items[].bankTxCode | String | Bank transaction code, e.g. NTRF (transaction rows). |
| items[].additionalInfo | String | Any extra information from the statement (transaction rows). |
| items[].fileName | String | Name of the output file, e.g. statement.csv (file rows). |
| items[].format | String | Output format: csv, xlsx or mt940 (file rows). |
| items[].contentBase64 | String | The output file as base64 (file rows, csv and xlsx). |
| items[].text | String | The MT940 output as plain text (file rows, mt940). |
| items[].rows | Integer | Number of transaction rows in the output file (file rows). |
| items[].sizeBytes | Integer | Size of the output file in bytes (file rows). |
| items[].statements | Object Array | Statement summaries with balances and balanceCheck (file rows, csv and xlsx). |



