Building and validating a message by hand: three doors before a payment is read
A message is checked at three doors: can it be read, does it fit the shape, does it make sense. Build one by hand and see which door each mistake stops at.
L1–L4 are part of the Pro pass
L0 Explain simply
Maya Chen is a payments operations analyst at Bank Alfa. Everything in this story is SYNTHETIC / TRAINING ONLY. To learn how a checks a message, she builds a small test message by hand and sends it to a test service. It comes straight back with a short refusal that says nothing about money.
Nobody read her payment. The message failed at the door, before any person or any payment rule looked at it. That is the idea of this topic: a message meets several checks, one after another, and each check asks a different question.
The first question is plain. Is the file written in a shape the computer can read at all? The second is whether the message has the layout the standard demands. The third is whether the message makes sense as a payment.
Building one by hand is the quickest way to feel all three. A message that clears the first door can still fail the second, and one that clears both can still fail the third.
A refusal at a door is not an accident. It is the system saying which question was not answered.
PICTURE IT
The three doors on the way into a building
A parcel arrives at a building with three doors. At the first door a guard checks that the parcel is a parcel and not a loose pile of paper. At the second door another guard checks that it has the right label and size. At the third door a clerk checks that the person it is for really wants it. A parcel can pass the first two doors and still be refused at the third.
THE REAL JOB A payment message is checked for whether it can be read, then shape, then meaning, and each refusal says which door stopped it.
- The file is written
- The tags open and close
- The values fit the schema
- The service applies its rules
- The payment is accepted or refused
HOW THE PICTURE MAPS
| In the picture | In the payment |
|---|---|
| The first door: is it a parcel | The file is well-formed XML |
| The second door: label and size | The message is valid against the XSD |
| The third door: does the person want it | Business validation by the service |
| The envelope on the parcel | The Business Application Header |
| The note the guard hands back | The refusal message that names the door |
WHERE THIS PICTURE STOPS
- A building has one set of doors. Real services each add their own limits to the schema, so the second door is not the same everywhere.
- The picture puts the doors in a fixed order. Some services merge checks, and the sources describe layers without one fixed list.
HOOK
The refusal names the door.
TELL A FRIEND
A message is checked for whether it can be read, then for shape against the schema, then for meaning against the service's rules. A refusal tells you which door stopped it.
OFTEN MIXED UP WITH Reading an ISO 20022 message definition. That lesson is about reading a message definition and what each element means. This one is about the checks a built message meets and which one each mistake stops at.
PRACTISE AND KEEP
Sources for this topic — 7 sources
- Scheme-specific rule
ISO 20022 message XSD schemas ↗ — ISO 20022 Registration Authority · The authoritative XSD for each ISO 20022 message search excerpt, page not opened
Each Message Definition Report links its published XSD; download it directly rather than relying on a third-party mirror.
- Market practice
W3C XML Schema Definition Language (XSD) 1.1 Part 2: Data types ↗ — World Wide Web Consortium · Schema-valid text and facets: length, pattern, enumeration search excerpt, page not opened
Verified from web-search excerpts on the access date; the page was not opened. Excerpts of the version 1.0 and 1.1 documents agreed on the length and facet ideas. Use only the label market-practice from an excerpt-only source.
- Market practice
General usage of ISO 20022 (Project Nexus documentation) ↗ — Bank for International Settlements Innovation Hub · Format rules and usage rules search excerpt, page not opened
Verified from web-search excerpts on the access date; the page was not opened. Use only the label market-practice from an excerpt-only source.
- Scheme-specific rule
Message validations in the Eurosystem instant payment settlement service (joint workshop, 14 December 2023) ↗ — European Central Bank · Debugging order and the two kinds of refusal in TIPS search excerpt, page not opened
Verified from web-search excerpts on the access date; the deck was not opened. The excerpts matched a second European Central Bank (ECB) result on the same service. Use only the label scheme-specific-rule from an excerpt-only source, and read the deck itself before relying on a code.
- Scheme-specific rule
What is TIPS? (TARGET Instant Payment Settlement) ↗ — European Central Bank · The TIPS instant payment settlement service, used here as the worked example search excerpt, page not opened
TIPS also settles instant payments in Swedish krona and Danish krone. This page names the currencies and does not publish their go-live dates. The Danish-krone date and the statement that the Swedish krona was onboarded in 2024 are cited from
ecb-dkk-target-press-2025. Detailed user documentation is published separately by the ECB. - Market practice
Migration to ISO 20022 — useful information, hints and tips ↗ — J.P. Morgan · Header elements in a worked sample search excerpt, page not opened
Downloaded and read in full from the publisher's own domain on the access date: HTTP 200, 3,860,743 bytes, converted with pdftotext -layout, so nothing cited from it rests on a search excerpt. The document dates itself "Updated in March 2025".
It says of itself that it is not an exhaustive mapping but a high-level guide, and that the relevant schema should be referred to for detail. That is exactly how it is used here: it is cited for where a value lands and for what a role is called, never for whether an element is mandatory. Every element address and every presence flag on the tables it supports is read from the published XSD instead.
Its camt.057 example is written against camt.057.001.06, the version CBPR+ deployed in March 2023. This site states presence against camt.057.001.09, the newest version a public mirror serves. And the difference is not cosmetic in one place: the account identification element is mandatory in the CashAccount type used by the earlier version and optional in the later one, where an account may be identified by a proxy instead. Read the example for placement and the schema for presence.
One value in the example is the translation's own invention rather than a mapping: the notification identification is populated with a reference that appears nowhere in the MT210 beside it. That is the point of the row it supports, not a defect in the guide.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal · Maya Chen and Bank Alfa are invented; the three-door frame is this site's own.
What this simplifies: Every service orders and names its checks differently; one Eurosystem service is used as the worked example.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.