APIContext home
White paper

PSD2, APIs, and Performance and Quality Monitoring

How PSD2 changes the way banks and third-party providers expose and consume APIs, and why synthetic transactions are needed to measure their performance and quality.

Published
Length
12 min read
Author
Paul M. Cray

Abstract

In the rapidly growing and evolving digital economy, APIs are increasingly used for the time-sensitive exchange of mission-critical data and information between organizations. As of January 2018, all European banks will be required to expose APIs that allow authorized third parties to access banking systems and customer account information to facilitate a wide range of services.

This introduction of an API-driven mechanism for banking interactions puts all institutions involved in a financial transaction at the mercy of the worst performing party. A universally agreed method to measure performance and quality of PSD2 APIs against agreed service levels is essential.

APIs often do not behave as expected according to their specifications and their behavior can vary over time and among call locations. They often appear to be operating normally according to gateway transaction logs, while end users find working with them difficult or impossible. It is therefore necessary for organizations to use synthetic transactions to monitor the performance and quality of APIs from the end user perspective.

Payments Service Directive 2 (PSD2) is set to revolutionize payment and banking services in the European Single Market. For PSD2, both regulators and users will insist that the APIs exposed by banks meet strict performance and quality criteria.

APImetricsPull quote from the white paper

Regulators and end users will expect PSD2 APIs to meet agreed service levels. Using an independent tool for performance and quality monitoring with synthetic transactions provides all parties with assurance that the APIs are meeting the agreed service levels.

Historical Background

The European Single Market was established in 1993 to provide for the efficient movement of goods and services throughout the current 28 EU members, plus the three additional European Economic Area countries (Iceland, Lichtenstein and Norway) and Switzerland.

For many sectors, the Single Market has worked well. But one sector where it has not is payment services and related financial products.

There are several reasons for this. Even after the introduction of the euro, many Single Market members retained their own currencies. Because of the nature of what banks do (store people's money), there is often a high level of loyalty to familiar national banking brands. Also, expectations and practices vary widely between countries, as does the regulatory environment – even where it is supposedly harmonized across the Single Market.

To help facilitate Single Market payment services, during the mid- to late 2000s, the EU established the Single Euro Payments Area (SEPA), the legal foundation of which is the Payment Services Directive (PSD).

SEPA did help in reducing the variations associated with certain kinds of services, but did not lead to the creation of a genuine single market in payment services.

With the increasing growth of the digitized economy in the 2010s, the emergence of novel products based on cutting-edge fintech, and the demand from non-traditional organizations to be able to provide payment services, it was decided that further measures were necessary to accelerate the evolution of the payment services sector in the Single Market. Thus was born the Revised Directive on Payment Services (PSD2).

APImetricsPull quote from the white paper

What is PSD2?

PSD2 is a radical departure from PSD. PSD2 splits the payment ecosystem into several actors called Third-Party Payment Service Providers (TPPs): Payment Initiation Services Providers (PISPs), Account Servicing Payment Service Providers (ASPSPs), and Account Information Service Providers (AISPs).

Third-Party Payment Service Provider (TPP)
Third-Party Payment Service Provider (TPP)DescriptionExample
Account Information Service Provider (AISP)Accesses the account information of bank customersAn account consolidator such as mint.com in the US
Account Servicing Payment Service Provider (ASPSP)Holds the customer's payment accountThe customer's bank such as BBVA
Payment Initiation Services Provider (PISP)Initiates a payment on behalf of the userEcommerce company such as Amazon

The implementation of PSD2 is supported by Regulatory Technical Standards (RTS) defined by the European Banking Authority. The RTS specify the APIs that are used by TPPs for payment services. Banks will now be obligated to expose the APIs specified in the RTS to allow TPPs to access payment services and other banking functions. The banks will become platforms. They will still be able to provide branded value-added services to their customers (and to the customers of other banks), but they will be competing in a potentially very different marketplace.

There are likely to be many new entrants into the payment services markets. Some of these will be well-established pan-European brands such as Amazon, Facebook, Google and PayPal. This may well drive the establishment of a true European market in payment services. It is also likely that innovative fintech companies will attempt to enter the market. In many cases, smaller entrants will focus on niche segments in one national market or across a number of countries.

Crucially, in the new ecosystem, all SEPA actors will expose or consume PSD2 APIs and rely on them to exchange mission-critical, time-sensitive data and information to make and receive payments and related banking and financial transactions. The service an end user triggers in the portal of Bank X or an ecommerce company might well be provided by Bank Y. The question then becomes, who will the user blame for underperformance?

What impact will this have on revenues or sales opportunities for banks when they have to rely on services from competitors provided via PSD2 APIs?

What measures can banks, other TTPs and regulators put in place to reduce the risk from underperforming actors in the SEPA ecosystem, and ensure that everyone is meeting the required performance and quality?

Brexit and PSD2

The UK is anticipated to leave the EU, the Single Market and the SEPA in spring 2019. However, it will still be necessary for UK banks to be fully compliant with PSD2 by January 2018. The UK Open Banking Working Group has established the framework for an Open Banking Standard that reminds of PSD2 in some ways. Because the UK has made the greatest progress in defining a standard on how APIs might be used in open banking, it is even possible that the RTS will be based on the UK standard (the European Banking Authority is currently in London). Even with Brexit looming, it is clear that UK banks will have embraced the challenge of creating banking platforms that use APIs to enable open banking.

APIs for PSD2

Banks and other organizations will have a degree of freedom in defining the interfaces that satisfy RTS. A number of open-source efforts provide organizations with guidance on the API endpoints to be exposed. These include the Open Bank Project, which provides a PSD2 sandbox and Open Banking.

API Management

In the 2010s, RESTful web APIs became the plumbing of the information economy. They allow organizations to exchange data and information easily within organizations, between business units, and with customers, partners and suppliers.

Banks already make extensive use of APIs. With the advent of PSD2, banks in the Single Market will be required to expose APIs to TPPs for payment and other banking services.

Components of an API management system include:

  • Gateway: Receives API requests, passes them to the back-end, and then passes responses back to requester
  • Security functionality: Handles authentication and authorization of requests through standardized mechanisms such as OAuth2
  • Developer portal: Includes access to documentation and sandbox to let users develop apps that work with the exposed APIs
  • Monetization functionality: Handles charging for the use of the API
  • Monitoring: Monitors load on exposed APIs, and performance and quality, including monitoring of third-party APIs
  • Reporting and analytics: Analyze data on APIs and creates summary reports on API behavior

API management products such as those offered by Axway, Mulesoft and others simplify the process of integrating all the PSD2 APIs needed to provide open services to other banks and TTPs. However, they do not guarantee a level playing field on API quality. Only through the use of independent tools for performance and quality monitoring of PSD2 APIs with synthetic transactions can SEPA stakeholders be confident that all APIs are meeting their mandated service levels.

API Monitoring

To manage something, it is necessary to measure it. Therefore, it is important to monitor both exposed and consumed APIs. For instance, TPPs will rely on third-party PSD2 APIs for the payment services to meet the needs of their users.

Load monitoring (number and nature of requests to an API in a given period) and the creation of gateway transaction logs from which information about latency and HTTP errors can be gleaned are important. However, this form of passive monitoring gives an incomplete picture of API behavior.

It is never simply a question of making sure your own APIs are working properly; you must also make sure the third-party APIs that are part of your mission-critical business flows are working properly as well. A key aspect of API management is managing the third-party APIs you consume, a situation in which you do not have access to load monitoring data and gateway transaction logs. But you can monitor third-party APIs with synthetic transactions.

Performance and Quality Monitoring

API endpoints can return a HTTP 200 response even when a back-end error is present. Furthermore, if fields in the returned payload are missing or empty, from the end user's perspective, the transaction will be perceived as a failure. Equally, if call latency is too long, the requesting system might time out, again producing the perception of failure. API performance may also be inconsistent across geography and time.

In the case of PSD2 APIs, it is particularly important that latency is acceptable from locations in the Single Market, some of which are separated by thousands of kilometers. Time zone differences across Europe should also not affect API performance.

Inconsistency in performance is also an issue. An API might have high overall availability in a given period, but an API that has downtime or periods of increased latency each day may be perceived as having a worse performance than one with a longer period of degraded behavior, but only on a particular day. In other words, which is worse – one 1-minute outage every day for a month, or one 30-minute outage one day a month?

API quality isn't just about latency or availability. It's about how different users experience the API. An overall blended quality metric that combines a number of metrics such as average latency, availability and number of outliers (particularly slow calls) helps you understand the quality of your API at a glance, see whether the performance is improving or worsening over time, and if the API is meeting agreed service level criteria.

It also lets you compare APIs from different providers, which is particularly important in the context of PSD2; organizations might want to give preference to the best performing APIs, and organizations and regulators will want to benchmark APIs against one another.

API quality isn't just about latency or availability. It's about how different users experience the API.

APImetricsPull quote from the white paper

PSD2 APIs you expose should be proven to meet certain performance and quality criteria. You can't do this with load monitoring for gateway transaction logs only; synthetic testing actually lets know how your APIs are behaving.

And vice-versa, banks impacted by poorly performing competitors need a mechanism to identify offenders and a system for self-regulation of offenders, perhaps through the publication of PSD2 API blended quality league tables.

Although it is possible to use cURL scripts or other scripting/programming tools to create synthetic transactions for performance and quality monitoring, it is better to use a dedicated synthetic monitoring product.

An API performance and quality monitoring product should includes a comprehensive suite of tools that makes it easy to:

  • Set up test calls
  • Manage authentications
  • Look at results
  • Generate reports
  • Analyze and visualize performance data
  • Configure dashboards
  • Set conditions for user-defined alerts (for instance, if call latency is greater than a certain value or the size of a payload is less than an expected amount)
  • Create back-to-back calls to simulate workflows by using part of the response of an earlier call in the input to a later one
  • Handle WebHooks and other mechanisms, such as exposing an API monitoring system API, for raising alarms in and integrating with higher level management systems

Using ad-hoc or bundled tools that come with an API management system might seem attractive. But even more so in the context of PSD2 APIs than general APIs, it is false economy not to use a dedicated product. As your business relies on your own APIs and those of others and others rely on your APIs, by using a best-of-breed, dedicated API performance and quality monitoring solution you are going to be able to understand how the APIs your organization depends on are really working from the end-user perspective. Using such an API performance and quality monitoring system will give you the evidence to prove to internal stakeholders, regulators and third party users that your APIs really are working according to spec (and those of other parties are not).

Some fintech companies have expressed concern that banks might limit or even block altogether access to their PSD2 APIs. Performance and quality monitoring ensures honesty on all sides. For instance, a fintech company can monitor a bank's PSD2 APIs. If the bank wants to make sure that what the fintech company is saying about its PSD2 APIs is true, the bank can carry out the exact same synthetic transactions by using the same or an equivalent tool. By doing this, everyone has access to the same API quality data and it is much harder to make false claims about API quality.

Conclusion

PSD2 is coming quickly. The banking sector needs to develop new systems to manage relationships that they would previously have considered to be outside of their scope. Accountability and mutual confidence in the services will be paramount in ensuring regulators and consumers alike are happy.

You will need to monitor the performance and quality of your PSD2 APIs for regulatory internal management. If you are a TPP, you will want to monitor the APIs of the platforms you use with synthetic transaction, as you won't have access to gateway transaction logs. This requires a comprehensive API management solution that includes independent tools for synthetic transaction to allow API performance and quality monitoring of internal and external tools.

A system for self-regulation of PSD2 APIs based on blended API quality league tables generated by an API performance and quality monitoring system would be ideal for ensuring that the SEPA ecosystem is meeting their obligations to provide the APIs that will drive innovation in payment services and banking in the Single Market into the next decade, creating values for banks, TPPs and consumers. PSD2 is in many ways a harbinger of the API-driven world of the 2020s. And that world is going to be one in which the only businesses that survive and thrive truly understand how the APIs they are exposing and consuming actually behave.

About APImetrics

Glossary

Terms the paper defines or explains, for readers new to PSD2 and API management.

Third-Party Payment Service Provider (TPP)
The paper's term for the actors that PSD2 splits the payment ecosystem into: AISPs, ASPSPs and PISPs.
Account Information Service Provider (AISP)
A provider that accesses the account information of bank customers, such as an account consolidator.
Account Servicing Payment Service Provider (ASPSP)
A provider that holds the customer's payment account, such as the customer's bank.
Payment Initiation Services Provider (PISP)
A provider that initiates a payment on behalf of the user, such as an ecommerce company.
Regulatory Technical Standards (RTS)
Standards defined by the European Banking Authority that specify the APIs TPPs use for payment services.
Single Euro Payments Area (SEPA)
An area the EU established during the mid- to late 2000s to help facilitate Single Market payment services. Its legal foundation is the Payment Services Directive (PSD).
API gateway
The component of an API management system that receives API requests, passes them to the back-end, and passes responses back to the requester.

About APIContext

APIContext eliminates blind spots for enterprises across the digital delivery chain with proactive synthetic monitoring, performance analytics, and automated conformance validation. Our platform delivers actionable insights so connected systems perform and conform—ensuring every interaction is trusted, secure, and compliant.

What are your APIs saying to AI? Contact us to find out.

PDF

Download the PDF

The complete white paper is also available as a PDF. Complete this form and we will send it to you.

  • Why PSD2 raised the bar for API performance and quality monitoring
  • How API management and monitoring fit together in a PSD2 programme
  • What the paper says about latency and consistency in production APIs
  • Where the regulatory and operational risks of PSD2 APIs sit
Agent View