Start building

Transform and map

MT940 to camt.053 statement migration

Reconcile up to 50 C/D NTRF entries using exact decimal functions, credit opening/closing balances and 20xx dates. Retain all source fields and report unmapped tags. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

  • SWIFT MT → ISO 20022 MX
  • Advanced
  • 8 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processMT940 to camt.053 statement migration7 activities

Scroll sideways to see the whole flow.

Flow diagram of MT940 to camt.053 statement migration7 activities and 6 transitions: Synthetic input, Parse repeated statement fields losslessly, Map totals, Check supported subset and correlation, Render reconciled statement entries, Reject unsupported or mismatched input, Return evidence.Synthetic inputstartParse repeatedstatement fields…swift.mt.parse1Map totalsdata.mapper2Check supported subsetand correlationchoiceRender reconciledstatement entriesxml.render3Reject unsupported ormismatched inputraise_errorReturn evidenceend
List the 7 activities and 6 transitions

Activities

  1. Synthetic input start
  2. Parse repeated statement fields losslessly swift.mt.parse
  3. Map totals data.mapper
  4. Check supported subset and correlation choice
  5. Render reconciled statement entries xml.render
  6. Reject unsupported or mismatched input raise_error
  7. Return evidence end

Transitions

  • Synthetic input → Parse repeated statement fields losslessly (on success)
  • Parse repeated statement fields losslessly → Map totals (on success)
  • Map totals → Check supported subset and correlation (on success)
  • Check supported subset and correlation → Render reconciled statement entries (condition)
  • Check supported subset and correlation → Reject unsupported or mismatched input (otherwise)
  • Render reconciled statement entries → Return evidence (on success)

Walkthrough

  1. Parse repeated statement fields losslesslyReconcile up to 50 C/D NTRF entries using exact decimal functions, credit opening/closing balances and 20xx dates. Retain all source fields and report unmapped tags.
  2. Map totalsReconcile up to 50 C/D NTRF entries using exact decimal functions, credit opening/closing balances and 20xx dates. Retain all source fields and report unmapped tags.
  3. Render reconciled statement entriesReconcile up to 50 C/D NTRF entries using exact decimal functions, credit opening/closing balances and 20xx dates. Retain all source fields and report unmapped tags.

What you will practise

  • Reconcile up to 50 C/D NTRF entries using exact decimal functions, credit opening/closing balances and 20xx dates. Retain all source fields and report unmapped tags.
  • Inspect exact output and rejection cases using synthetic fixtures.
  • Keep external-service acceptance separate from payment settlement.

Sample cases

3 cases with 10 assertions, run with python -m server.integration examples --all in simulation.

Happy path

Passed

Run this synthetic case with isolated local fixtures. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

Expected result All declared value, outcome and trace checks must pass.

5/5 assertions

  • Run outcome
  • Verify /opening
  • Verify /closing
  • Verify /calculated_closing
  • Verify /unmapped_tags

This sample run only; not a production certification.

Unbalanced statement

Expected failure verified

Run this synthetic case with isolated local fixtures. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

Expected result All declared value, outcome and trace checks must pass.

2/2 assertions

  • Run outcome
  • Fail closed

This sample run only; not a production certification.

Different amounts

Passed

Run this synthetic case with isolated local fixtures. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

Expected result All declared value, outcome and trace checks must pass.

3/3 assertions

  • Run outcome
  • Verify /closing
  • Verify /calculated_closing

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
None beyond the base runtime.
Simulation fixtures
None: no activity in this template uses a connector.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
38d76e31ee84c93284f90e82fe08221ff46e8f6e0c7331f09dc9751620d5bad0
Closure SHA-256
8b550250ae2c5bf36bae6dd02d0ab73167ea77bd205d6026fa47bd8afaab3398
Runtime
1.27.0
Results
3/3 cases, 10/10 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/swift_mt940_camt053.json
  • server/integration/templates/swift_mt940_camt053.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example swift_mt940_camt053
PYTHONPATH=. python scripts/export_public_gallery.py --check