Start building

Transform and map

pacs.008 CBPR+ outbound subset

Generate escaped BAH and pacs.008 XML from an explicit synthetic payment contract; transport acceptance is not settlement. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

  • JSON → 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 processpacs.008 CBPR+ outbound subset4 activities

Scroll sideways to see the whole flow.

Flow diagram of pacs.008 CBPR+ outbound subset4 activities and 3 transitions: Synthetic input, Render using pinned shared payment mapper, Local swift_mx_stub hook, Return evidence.Synthetic inputstartRender using pinnedshared payment mappercall_process1Local swift_mx_stubhookhttp.request2Return evidenceend
List the 4 activities and 3 transitions

Activities

  1. Synthetic input start
  2. Render using pinned shared payment mapper call_process
  3. Local swift_mx_stub hook http.request
  4. Return evidence end

Transitions

  • Synthetic input → Render using pinned shared payment mapper (on success)
  • Render using pinned shared payment mapper → Local swift_mx_stub hook (on success)
  • Local swift_mx_stub hook → 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. Render using pinned shared payment mapperGenerate escaped BAH and pacs.008 XML from an explicit synthetic payment contract; transport acceptance is not settlement.
  2. Local swift_mx_stub hookGenerate escaped BAH and pacs.008 XML from an explicit synthetic payment contract; transport acceptance is not settlement.

What you will practise

  • Generate escaped BAH and pacs.008 XML from an explicit synthetic payment contract; transport acceptance is not settlement.
  • Inspect exact output and rejection cases using synthetic fixtures.
  • Keep external-service acceptance separate from payment settlement.

Sample cases

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

3/3 assertions

  • Run outcome
  • Verify /transport_accepted
  • Verify /settled

This sample run only; not a production certification.

Zero amount

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.

3/3 assertions

  • Run outcome
  • Fail closed
  • No effect: submit

This sample run only; not a production certification.

Bad uetr

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.

3/3 assertions

  • Run outcome
  • Fail closed
  • No effect: submit

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
  • swift_mx_stub http · http.request
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
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
924d667b46f31322b465db889aa6a2f8d8adbbf4828d8611dc4a96f92b2bd2f3
Closure SHA-256
33f201713e4ce9d3a35999e32a2f05404fa665055fd319d8abb7bceae3acf5ea
Runtime
1.27.0
Results
3/3 cases, 9/9 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/swift_pacs008_outbound.json
  • server/integration/templates/swift_pacs008_outbound.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_outbound
PYTHONPATH=. python scripts/export_public_gallery.py --check