{
  "slug": "camt053-parse",
  "name": "gizza-ai/camt053-parse",
  "version": "0.1.0",
  "title": "CAMT.053 Parser — Convert ISO 20022 Bank Statement XML to JSON or CSV — gizza.ai",
  "description": "Parse a camt.053 (or camt.052/054) ISO 20022 bank statement XML into JSON or CSV in your browser: balances, dates, counterparties, references. No upload.",
  "tags": [
    "camt.053 parser",
    "camt.053 to csv",
    "camt.053 to json",
    "iso 20022 bank statement",
    "camt.052 converter",
    "bank statement xml"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/camt053-parse/",
    "markdown": "https://gizza.ai/tools/camt053-parse/index.md",
    "descriptor": "https://gizza.ai/tools/camt053-parse/tool.json",
    "deep_link_example": "https://gizza.ai/tools/camt053-parse/?data=%3CDocument%20xmlns%3D%22urn%3Aiso%3Astd%3Aiso%3A20022%3Atech%3Axsd%3Acamt.053.001.02%22%3E%0A%20%20%3CBkToCstmrStmt%3E%0A%20%20%20%20%3CStmt%3E%0A%20%20%20%20%20%20%3CId%3ESTMT-2024-001%3C%2FId%3E%0A%20%20%20%20%20%20%3CAcct%3E%3CId%3E%3CIBAN%3ENL91ABNA0417164300%3C%2FIBAN%3E%3C%2FId%3E%3CCcy%3EEUR%3C%2FCcy%3E%3C%2FAcct%3E%0A%20%20%20%20%20%20%3CNtry%3E%3CAmt%20Ccy%3D%22EUR%22%3E150.50%3C%2FAmt%3E%3CCdtDbtInd%3EDBIT%3C%2FCdtDbtInd%3E%3CSts%3EBOOK%3C%2FSts%3E%3CBookgDt%3E%3CDt%3E2024-01-02%3C%2FDt%3E%3C%2FBookgDt%3E%3CValDt%3E%3CDt%3E2024-01-02%3C%2FDt%3E%3C%2FValDt%3E%3C%2FNtry%3E%0A%20%20%20%20%3C%2FStmt%3E%0A%20%20%3C%2FBkToCstmrStmt%3E%0A%3C%2FDocument%3E&output=json&date_format=iso&delimiter=comma&signed_amounts=true&expand_details=true"
  },
  "cli": "gizza tool camt053-parse '<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:camt.053.001.02\">\n  <BkToCstmrStmt>\n    <Stmt>\n      <Id>STMT-2024-001</Id>\n      <Acct><Id><IBAN>NL91ABNA0417164300</IBAN></Id><Ccy>EUR</Ccy></Acct>\n      <Ntry><Amt Ccy=\"EUR\">150.50</Amt><CdtDbtInd>DBIT</CdtDbtInd><Sts>BOOK</Sts><BookgDt><Dt>2024-01-02</Dt></BookgDt><ValDt><Dt>2024-01-02</Dt></ValDt></Ntry>\n    </Stmt>\n  </BkToCstmrStmt>\n</Document>'",
  "tool": {
    "description": "Parse an ISO 20022 CAMT bank statement XML — camt.053 (Bank-to-Customer Statement), camt.052 (Account Report), or camt.054 (Debit/Credit Notification), any schema version — into structured statements: account IBAN/currency/owner, every balance (OPBD opening, CLBD closing, OPAV/CLAV available, …), and each entry's booking & value dates, CRDT/DBIT direction, signed amount, status, bank transaction code, end-to-end & bank references, counterparty name/IBAN, remittance info, charges and FX rate. Batch entries (one <Ntry> with several <TxDtls>) can expand to one row per payment. Output full JSON (default) or a flat CSV transaction table; reformats dates (iso/us/eu/raw) and picks the CSV delimiter.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "data": {
          "description": "The camt.053 bank statement XML text (an ISO 20022 <Document> with <BkToCstmrStmt>). The sibling camt.052 account report and camt.054 notification messages are accepted too; any schema version (camt.053.001.02 … .13) works.",
          "type": "string"
        },
        "date_format": {
          "default": "iso",
          "description": "How booking/value dates are rendered: 'iso' (YYYY-MM-DD), 'us' (MM/DD/YYYY), 'eu' (DD/MM/YYYY), or 'raw' (the source string verbatim, including any time part). Default 'iso'.",
          "enum": [
            "iso",
            "us",
            "eu",
            "raw"
          ],
          "type": "string"
        },
        "delimiter": {
          "default": "comma",
          "description": "CSV field separator, used only when output='csv': 'comma', 'semicolon', 'tab', or 'pipe'. Default 'comma'.",
          "enum": [
            "comma",
            "semicolon",
            "tab",
            "pipe"
          ],
          "type": "string"
        },
        "expand_details": {
          "default": true,
          "description": "When true, a batch entry (one <Ntry> holding several <TxDtls> payments) becomes one row per payment with its own amount and counterparty; when false, one row per entry with the batch total and a details_count. Default true.",
          "type": "boolean"
        },
        "output": {
          "default": "json",
          "description": "Output format: 'json' for full structured statements (account, balances, transactions) or 'csv' for a flat transaction table. Default 'json'.",
          "enum": [
            "json",
            "csv"
          ],
          "type": "string"
        },
        "signed_amounts": {
          "default": true,
          "description": "When true, DBIT (money out) amounts and balances are negative and CRDT positive; when false, amounts stay positive and the CRDT/DBIT indicator carries the direction. Default true.",
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ],
      "type": "object"
    }
  }
}