TOPIC 06/2711 MINNOT STARTED

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.

  1. The file is written
  2. The tags open and close
  3. The values fit the schema
  4. The service applies its rules
  5. The payment is accepted or refused
From readable file to accepted payment

HOW THE PICTURE MAPS

How each part of the picture matches the payment
In the pictureIn the payment
The first door: is it a parcelThe file is well-formed XML
The second door: label and sizeThe message is valid against the XSD
The third door: does the person want itBusiness validation by the service
The envelope on the parcelThe Business Application Header
The note the guard hands backThe 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
  1. 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

    The authoritative source for the real, current XSD schema of every ISO 20022 message. The Local XSD validator's sample generator ships only original synthetic fixtures (never a bundled copy of a real schema) and its generated samples are illustrative, not a substitute for validating against the real schema. · Checked 2026-07-20

    Each Message Definition Report links its published XSD; download it directly rather than relying on a third-party mirror.

  2. 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

    The W3C Recommendation that defines the data types and the facets used in XML schema files.

    Cited for one point only. A text is schema-valid for a data type when it is in the type's set of legal forms and passes each applicable facet, such as length, pattern and enumeration.

    Not cited for how ISO 20022 uses these facets in any particular message. · Checked 2026-10-12

    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.

  3. 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

    The Project Nexus documentation page on how ISO 20022 messages are used.

    Cited for one point only. The page separates format rules, which limit allowed combinations of parts, from usage rules, which can limit repetitions or restrict code values.

    Not cited for how the Nexus scheme itself validates messages. · Checked 2026-10-12

    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.

  4. 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

    A European Central Bank workshop deck on how the Eurosystem's instant payment settlement service (TIPS) validates messages.

    Cited for three points only. The gateway checks each incoming message against an enriched schema, and a schema failure returns an administration message. Business and additional technical failures return a business message with a generic code. The suggested fault-finding order is the XML against the schema, then the usage rules, then the guidelines.

    Not cited for any individual error code beyond those named, or for services other than TIPS. · Checked 2026-10-12

    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.

  5. 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

    Describes TIPS, the Eurosystem service that settles instant payments in central bank money around the clock, in line with the SCT Inst scheme. · Checked 2026-07-12

    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.

  6. 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

    A correspondent bank's public MT-to-MX guide, in three parts: a party-and-agent glossary giving each ISO role its FIN field equivalent, a data-elements table per message pair. And five side-by-side worked translations of a FIN message into the ISO document it becomes.

    Cited on the MT210 to camt.057 table, which is one of those five and the only public field-level statement of that translation this site has found. The example settles where each MT210 field lands. The notice reference on the group header's message identification, the account line under the account's other-identification branch, and the related reference as the item's identification. The currency and amount as the item's amount, the value date as the item's expected value date, and the ordering customer and intermediary at notification level.

    It also shows the two facts the MT carries only in its envelope — the FIN Sender becoming the account owner's agent, the FIN Receiver the account servicer. And the one mandatory element the MT cannot supply, the notification identification, which the translation generates.

    Its party table is cited on the MT204 to pacs.010 table for role equivalences that hold across the pacs family. Field 20 as the instruction identification, field 21 as the end-to-end identification, field 58 as the creditor and field 57 as the creditor agent. · Checked 2026-08-23

    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.

  7. 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.

    This site's own simplified teaching models. · Checked 2026-07-12

    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.