Receive the camt.053 XML file (version suffix varies by bank — commonly .002, .006, or .008); validate it against the published XSD schema before parsing to catch truncation or encoding errors introduced during SFTP transfer
Extract the top-level GrpHdr/MsgId and CreDtTm for file-level deduplication; then iterate each Stmt element, reading Acct/Id/IBAN (or BBAN) to identify which internal account the statement covers
For each Ntry (entry) element, capture: Amt and Ccy, CdtDbtInd (CRDT or DBIT), BookgDt/Dt (booking date), ValDt/Dt (value date for interest calculations), BkTxCd/Domn/Cd and SubFmlyCd (ISO bank transaction code classifying the payment type), and Sts (BOOK confirms settled; PDNG means pending)
Descend into NtryDtls/TxDtls for remittance information: RmtInf/Ustrd for unstructured references or RmtInf/Strd/CdtrRefInf/Ref for structured creditor references; match these references against your payment order IDs to auto-reconcile
Write each matched entry as a reconciliation event linking the external statement entry ID (AcctSvcrRef) to your internal payment record; flag unmatched entries for manual cash-application review
Handle multi-entry batches where a single Ntry summarizes a batch credit and NtryDtls contains one TxDtls per underlying transaction — matching must occur at the TxDtls level, not the Ntry level, to reconcile individual invoices
Known gotchas
BookgDt and ValDt frequently differ across weekends and holidays; using BookgDt everywhere produces incorrect interest accrual calculations because interest calculation conventionally uses ValDt
The BkTxCd element structure changed between camt.053.001.002 and .006 — parsers written for the earlier version will silently skip transaction classification codes in newer files, leaving all entries uncategorized
Amounts in camt.053 are always positive regardless of credit or debit direction; forgetting to apply sign based on CdtDbtInd causes cash-position totals to show the absolute sum rather than net position
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp