Start building

Transform and map

pacs.008 CBPR+ inbound subset

Read a single-transfer BAH/pacs.008 namespace subset and retain decimal text, agents and UETR; reject envelope mismatches. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

  • ISO 20022 MX → JSON
  • 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 processpacs.008 CBPR+ inbound subset8 activities

Scroll sideways to see the whole flow.

Flow diagram of pacs.008 CBPR+ inbound subset8 activities and 7 transitions: Synthetic input, Parse namespace-aware BAH and Document, Check supported subset and correlation, Map payment, Validate canonical payment subset, Validate and round-trip through pinned mapper, Reject unsupported or mismatched input, Return evidence.Synthetic inputstartParse namespace-awareBAH and Documentxml.parse1Check supported subsetand correlationchoiceMap paymentdata.mapper2Validate canonicalpayment subsetjson.validate3Validate andround-trip through…call_process4Reject unsupported ormismatched inputraise_errorReturn evidenceend
List the 8 activities and 7 transitions

Activities

  1. Synthetic input start
  2. Parse namespace-aware BAH and Document xml.parse
  3. Check supported subset and correlation choice
  4. Map payment data.mapper
  5. Validate canonical payment subset json.validate
  6. Validate and round-trip through pinned mapper call_process
  7. Reject unsupported or mismatched input raise_error
  8. Return evidence end

Transitions

  • Synthetic input → Parse namespace-aware BAH and Document (on success)
  • Parse namespace-aware BAH and Document → Check supported subset and correlation (on success)
  • Check supported subset and correlation → Map payment (condition)
  • Check supported subset and correlation → Reject unsupported or mismatched input (otherwise)
  • Map payment → Validate canonical payment subset (on success)
  • Validate canonical payment subset → Validate and round-trip through pinned mapper (on success)
  • Validate and round-trip through pinned mapper → Return evidence (on success)
SubprocessRender one synthetic pacs.0086 activities

Scroll sideways to see the whole flow.

Flow diagram of Render one synthetic pacs.0086 activities and 5 transitions: Synthetic input, Validate synthetic payment contract, Check supported subset and correlation, Render BAH and pacs.008 with escaped values, Reject unsupported or mismatched input, Return evidence.Synthetic inputstartValidate syntheticpayment contractjson.validateCheck supported subsetand correlationchoiceRender BAH andpacs.008 with escaped…xml.renderReject unsupported ormismatched inputraise_errorReturn evidenceend
List the 6 activities and 5 transitions

Activities

  1. Synthetic input start
  2. Validate synthetic payment contract json.validate
  3. Check supported subset and correlation choice
  4. Render BAH and pacs.008 with escaped values xml.render
  5. Reject unsupported or mismatched input raise_error
  6. Return evidence end

Transitions

  • Synthetic input → Validate synthetic payment contract (on success)
  • Validate synthetic payment contract → Check supported subset and correlation (on success)
  • Check supported subset and correlation → Render BAH and pacs.008 with escaped values (condition)
  • Check supported subset and correlation → Reject unsupported or mismatched input (otherwise)
  • Render BAH and pacs.008 with escaped values → Return evidence (on success)

Walkthrough

  1. Parse namespace-aware BAH and DocumentRead a single-transfer BAH/pacs.008 namespace subset and retain decimal text, agents and UETR; reject envelope mismatches.
  2. Map paymentRead a single-transfer BAH/pacs.008 namespace subset and retain decimal text, agents and UETR; reject envelope mismatches.
  3. Validate canonical payment subsetRead a single-transfer BAH/pacs.008 namespace subset and retain decimal text, agents and UETR; reject envelope mismatches.
  4. Validate and round-trip through pinned mapperRead a single-transfer BAH/pacs.008 namespace subset and retain decimal text, agents and UETR; reject envelope mismatches.

What you will practise

  • Read a single-transfer BAH/pacs.008 namespace subset and retain decimal text, agents and UETR; reject envelope mismatches.
  • Inspect exact output and rejection cases using synthetic fixtures.
  • Keep external-service acceptance separate from payment settlement.

Sample cases

3 cases with 6 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.

2/2 assertions

  • Run outcome
  • Verify

This sample run only; not a production certification.

Wrong namespace

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.

Header mismatch

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.

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
fc50b56882c2e2f7029495e5828134959ff89e180b6f99b6fa3d420048eb57c4
Closure SHA-256
a9d60a7fc3acb584361279282e4b0a1bd7ed1bc1de9fb0c6edfceb4467439b85
Runtime
1.27.0
Results
3/3 cases, 6/6 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/swift_pacs008_inbound.json
  • server/integration/templates/swift_pacs008_inbound.json
  • server/integration/templates/swift_payment_mx.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_pacs008_inbound
PYTHONPATH=. python scripts/export_public_gallery.py --check