
Proposed design and demonstration. Not executed; no client results or compliance assurance claimed.
The engineering problem
Structured payment messages can contain more useful business context than a flattened transaction extract. That value is lost when a pipeline discards identifiers, truncates remittance information or mixes message versions without a documented mapping.
Design the data contract
Choose one message definition and usage guideline for the proposed demo. Preserve the original message and create a canonical analytical projection with stable references back to it. Validate both the message structure and the business rules relevant to the chosen payment community.
ISO 20022 is a financial messaging standard with shared business semantics and a repository of message definitions. It is not simply a universal XML schema. Confirm the specific message version, market practice and payment rail before describing mandatory fields or migration deadlines.
Proposed architecture

Proposed demonstration
- Build fictional messages using the selected definition.
- Include missing fields, duplicate references and a version mismatch.
- Validate, quarantine failures and transform approved messages.
- Reconcile canonical records back to the original messages and amounts.
Use fictional records in a disposable environment. Record the source version, configuration, expected outputs and any limitations before executing the exercise.
What to measure
- Validation and quarantine outcomes
- Lost or truncated field values
- Unmatched reconciliation references
Keep failures in the results and compare repeated runs against a defined baseline. This first draft contains no executed benchmark or production result.
Evidence to keep
Keep message version, mapping and validation evidence with the demo. Richer structured data can support investigation but does not automatically improve AML outcomes.
The next step is a reproducible implementation, sanitised screenshots and a measured validation record. Any regulatory applicability must be assessed for the institution, activity and jurisdiction; EU frameworks do not automatically apply to every New Zealand bank or insurer.
Worked example and design decisions
A message is valid against an XML schema but violates a payment community’s usage rule. Treating schema validation as full business acceptance lets unsuitable records enter reconciliation and downstream investigation.
Use this scenario to write the expected result before building the pipeline or agent. Identify the exact source facts, the permitted transformations and the outcome that a reviewer should see. Keep the reference result independent of the implementation under test.
A concrete data or asset contract
The following is a proposed application contract, not an assertion that these are native vendor API fields. Adapt names and types to the selected platform while preserving their intended meaning.
| Proposed field | Meaning and implementation concern |
|---|---|
message_id | Identifier within the selected usage context |
message_definition | Exact definition and version |
business_reference | Reference used for reconciliation |
amount_currency | Amount with its currency |
original_message_ref | Preserved source message |
validation_profile | Schema and usage-rule profile |
Document null semantics, stable identifiers and schema ownership with the contract. A missing observation, a zero amount and a denied lookup are different states and should not collapse into the same empty response.
Implementation blueprint
1. Pin the message definition
Record the selected message version and usage guideline. Do not mix examples from different versions without an explicit mapping.
2. Validate in layers
Separate parsing, schema validation and business-rule checks. Preserve specific rejection reasons and do not quietly coerce malformed values.
3. Create a canonical projection
Map identifiers and structured fields into analytical columns while retaining a pointer to the original. Avoid truncating rich remittance content to fit an old field silently.
4. Reconcile independently
Compare message counts, references and amount/currency totals using the appropriate business scope. Handle duplicates and cancellations according to the selected usage context.
Failure analysis: test the uncomfortable case
A field maps successfully into a shorter destination column but loses meaningful content. Include length and round-trip checks for the fields the downstream use depends on.
Build this condition into the synthetic test set. Capture the observed output, the control that should detect the issue and the recovery decision. If the system returns a polished but unsupported result, record that as a failure rather than a successful request.
Operational ownership and runbook
Review message and external-code-set changes as contract changes. Keep accepted and rejected records distinguishable in operational metrics.
A useful incident record identifies the affected product or capability, the relevant run or request, the business time represented and the owner of the next action. Distinguish restoring infrastructure from restoring correct service output. Preserve enough versioned evidence to explain the recovered state.
Evidence required before a production claim
The core design controls for this topic are: Pinned message version; layered validation; original-message retention; loss-aware mapping; and business reconciliation.
- Contract review: confirm field meaning, intended use, owner and access boundaries.
- Positive and negative tests: include the worked example, invalid inputs, restricted access and the failure case described above.
- Repeatable measurements: retain configuration, workload size, timing method, failures and the baseline used for comparison.
- Recovery evidence: demonstrate the documented recovery route and validate the resulting data or application behaviour.
This expanded article remains a proposed technical design. Environment-specific configuration, screenshots and measured outcomes should be added only after the implementation is executed and reviewed.
References and scope
References checked 29 October 2026. Sources provide context; the architecture and exercise are proposed editorial examples, not vendor-certified implementations.
