Eight things you need to know about ISO 20022 XML Messages

Kevin Tardivel Uncategorized

In this post we have summarised eight important facts about ISO 20022 XML messages. At the end of the post we show you how can automate the conversion of large volumes of ISO 20022 XML documents to a relational database.

What is ISO 20022?

The ISO 20022 industry data standard is used in Financial Services. Its purpose is to exchange messages and data between financial institutions. The standard defines the meaning of common concepts and processes in finance. This is also called the semantics of the standard. It offers a common language simplifying the communication between financial actors. The business processes are represented in UML diagrams. You can download a detailed description of the various business processes from the full ISO 20022 catalogue page.  Simply download the Message Definition Report (Msg Def Report) and extract the files.

ISO 20022 Message Definition Report

The Message Definition Report contains three files. In the Word document, you will find a detailed description of the business process including swim lane diagrams. The Excel file contains UML diagrams for the business process. The PDF describes the schema and syntax of the XML document. It explains the various XML elements and describes the various abbreviations.

ISO 20022 and XML

ISO20022 also standardises on the structure of how data is exchanged. This is also called the syntax of the standard. There is a logical representation of the message and a physical encoding of the message. ISO 20022 uses XML to encode the data. Below is a sample XML message

Don’t worry if you can’t make sense of the abbreviations and the naming conventions. We will cover the details in a moment.

ISO 20022 Overlapping and Competing Standards

There are a number of standards that compete or overlap with ISO 20022. Just like there are many human languages there are a variety of financial standards. You might have heard of FIX, FpML, XBRL, ISO 15022 etc. ISO 20022 is the most comprehensive industry data standard in finance. It covers all business processes of the financial industry. The vast majority of these data standards are based on XML.

ISO 20022 Business Areas

The ISO 20022 standard covers 20 business areas with more than 400 messages. Each area is identified by a four letter area code, e.g. payment initiation (PAIN), security settlement (SESE), account management (ACMT) etc.  ISO 20022 messages are available for the complete payment chain. A big driver for adoption of the Payments is the Single European Payment Area (SEPA), which replaces payment processes in individual countries.

ISO 20022 Adoption

The ISO 20022 adoption report lists the various financial institutions that have adopted the ISO 20022 standard. We did some analysis on the data and as per May 2017 we have the following adoption stats.

Top 10 business areas adopted

Top 10 countries adopting ISO 20022

Top 10 Message Types

 ISO 20022 Message Identifier

The ISO 20022 message identifiers correspond to the XML Schemas (XSDs).
Each message identifier is split into four parts.

1 Business Area

2 Message identifier. The message identifier is the code allocated to a specific message in a business area. For example, the account management area has several messages: 001 refers to an account opening instruction message, while 011 refers to an account request rejection message. You can find all the different ISO 20022 messages directly on the full catalogue.

3 Variant. A variant is a simplified version of a message. Certain financial institutions might decide that they only need a subset of the elements/attributes in a message. They can then go ahead and create what is called a variant of the global message definition. A particular submission process needs to be followed before a variant can be created. When the global message changes, e.g. an element is dropped then the variant needs to be adopted as well.

4 Version: Different versions cater for changes or modifications to the message, e.g. an element is dropped, added, or its name is changed.

Message Reports

From the full ISO 20022 catalogue page, you can download the message report. It is split into three parts. Part 1 describes the business process in detail (including swim lane diagrams). It also contains various sample XML messages and resolves the short codes in the XML element names into a meaningful description. For each sample XML message a detailed scenario is provided. Part 2 describes the XML schema and structure. Part 3 contains a UML diagram of the business area.

Convert XML/JSON automatically to a Database, Text, or Hadoop

No manual coding
Cut cost by up to 80%

Find out more

Processing ISO 20022 XML to a relational database (Oracle) for data analysis

Frequently, we need to query the data inside the ISO 20022 XML messages. This is easier said than done. XML is a good format to exchange messages but it is terrible for running queries against the data. If we want to create reports against ISO 20022 data we first need to convert it to a database or a big data store such as Spark or Hadoop.

We have created a solution that fully automates this painful conversion process. It is called Flexter and comes in a free version, a SaaS version (Flexter as a Service), and an enterprise edition for on-premise or cloud installations. Flexter enterprise is used by large enterprises such as Volkswagen or Lufthansa.

For the purpose of illustrating the conversion process of ISO 20022 XML messages we will use Flexter as a Service (FaaS). Converting XML/JSON to Oracle can be done in a few simple steps. For more details please refer to the FaaS API documentation.

Step 1 - Authenticate

Step 2 - Define Source Connection (Upload or S3) for Source Data (JSON/XML)

Step 3 - Optionally define Source Connection (Upload or S3) for Source Schema (XSD)

Step 4 - Define your Target Connection, e.g. Snowflake, Redshift, SQL Server, Oracle etc.

Step 5 - Convert your XML/JSON from Source to Target Connection

As a sample ISO 20022 message we picked an ATMDeviceReportV03 dcoument (caam.001.001.03). Let’s go through the steps to convert this message.

Step 1 - Authenticate

To get an access_token you need to make a call to /oauth/token with Authorization header and 3 form parameters:

  • username=YOUR_EMAIL
  • password=YOUR_PASSWORD
  • grant_type=password

You will get your username and password from Sonra when you sign up for the service.

Example of output

Step 2 - Define Source Connection (Upload) for Source Data (ISO 20022)

In a second step we upload the ISO 20022 XML source data

Example of output

Step 4 - Define Target Connection (Oracle)

Since we don’t have a Source Schema we skip the optional step of defining a Source Schema.

We define our Target connection. We give the Target Connection a name and supply various connection parameters to the Oracle database.

Example of output

Step 5 - Convert XML data from Source Connection (Upload) to Target Connection (Oracle)

In last step we convert ISO 20022. Data will be written to Oracle Target Connection.

Example of output

Let’s have a look at the output that Flexter generated. First an ER diagram

Example of ER Diagram

You can see ER Diagram in details by downloading the file here.

Next we will run an SQL Query to analyse the data.

Flexter summary

It just took a couple of minutes what normally would take a couple of days. If you are interested in Flexter you can try out the free version online.

Our enterprise edition can be installed on a single node or for very large volumes of XML on a cluster of servers.

If you have any questions please refer to the Flexter FAQ section. You can also request a demo of Flexter or reach out to us directly with any questions.

Which data formats apart from XML also give you the heebie jeebies and need to be liberated? Please leave a comment below or reach out to us.