Skip to content

PSD2 and open banking from the IT team's perspective

B2Bnetwork team · · 7 min

IT in banking

In brief

For a bank's IT team, PSD2 is above all an obligation to provide a secure interface through which licensed third-party providers, with the customer's consent, read account data and initiate payments. On top of that comes strong customer authentication in electronic channels. The interface must work at least as well as online banking, come with documentation and a test environment for providers, and the bank must identify providers by their eIDAS certificates and monitor API availability.

What PSD2 changed in a bank's architecture

Directive (EU) 2015/2366, known as PSD2, opened bank accounts to entities outside the bank. It introduced two services that directly concern IT systems:

  • the account information service (AIS): a provider, e.g. a personal finance app, retrieves the balance and transaction history with the customer's consent;
  • the payment initiation service (PIS): a provider orders a transfer from the customer's bank account, for example when buying in an online store.

The directive also provides for confirming the availability of funds in an account for card payments with a card issued by another provider.

A bank that holds the account must therefore handle traffic it does not control: requests come from outside companies, at their pace and according to their logic. Systems that so far served only the bank's own channels get a new, demanding client. In practice this means an API layer in front of the core banking system, consent management, provider identification, and new monitoring rules.

The interface for third-party providers

The technical details are set by Commission Delegated Regulation (EU) 2018/389, the regulatory technical standards on strong authentication and secure communication. From the IT team's point of view, three obligations in it matter most.

A dedicated interface or access through the customer channel

A bank can offer providers a dedicated interface (in practice an API) or allow them into the interface the customer uses. Most banks chose an API. The regulation requires the dedicated interface to have the same availability and performance as the customer channel, and for the case of failure it provides a contingency mechanism, from which the supervisory authority can exempt the bank.

Documentation and a test environment

The bank publishes the interface's technical specification and gives providers an environment for testing connectivity and functions. For the IT team this is a separate product to maintain: a sandbox with test data that has to keep pace with changes to the production API.

Provider identification

Providers identify themselves to the bank with qualified certificates within the meaning of the eIDAS regulation: a website authentication certificate to establish the connection and an electronic seal certificate to sign messages. The bank must verify the certificate, the provider's role, and its permissions.

Common standards for such interfaces are popular in Europe, for example Berlin Group NextGenPSD2, and in Poland the PolishAPI standard. A common standard shortens integration for providers, but it does not relieve the bank of testing its own implementation.

Availability monitoring

The regulation also requires the bank to monitor the availability and performance of the dedicated interface and to publish statistics that allow it to be compared with the customer channel. For the IT team this means the same measures on both sides: response time, error rate, and outages counted the same way for the API and for online banking. If the API and online banking use the same services in the core banking system, the failure of one service is usually visible in both channels at once, so it is worth having a shared dashboard and shared alert thresholds. How to set such thresholds is described in the article SLOs and error budgets.

Strong customer authentication in practice

Strong customer authentication (SCA) requires at least two independent elements from three categories: knowledge (e.g. a PIN), possession (e.g. a registered phone), and inherence (e.g. a fingerprint). For payments, the authentication must be linked to the amount and the payee, so changing either one invalidates the authorization.

Regulation 2018/389 provides exemptions from SCA, for example for low amounts, trusted payees, or low-risk transactions according to the bank's analysis. Each exemption is a rule in the authorization system that has to be tested at the boundaries: just below and just above the threshold, after the cumulative limit is exceeded, when the payee changes.

A separate group of cases is the paths in which the customer authenticates at the bank in the middle of the provider's process: a redirect to online banking, a switch to the bank's mobile app, and a return to the provider's app. Every transition can fail, and the customer should then return to the provider with a clear message rather than be left on a blank screen.

Customer consent and API security

The provider acts on the basis of the customer's consent, but technically the bank must see that consent and enforce it. A typical flow resembles OAuth 2.0: the provider redirects the customer to the bank, the customer authenticates and approves the scope of access, and the bank issues a token with limited scope and lifetime. How tokens and redirects work is described in the article OAuth 2.0 and OpenID Connect demystified.

The most common errors in such interfaces are the same ones we know from other APIs: access to someone else's account after swapping an identifier, a token valid longer than it should be, no request limits, and error messages that are too detailed. You will find a checklist in the article API security: the most common mistakes. An interface for providers is also an ICT service covered by the requirements of DORA: monitoring, incident handling, and resilience testing.

How to test an open banking interface

Testing a PSD2 interface has several layers, and each needs different data:

  1. Conformance with the specification. Every operation returns fields, error codes, and headers consistent with the published documentation. API contract tests help.
  2. Consent paths. Granting, reading, expiry, and revocation of consent, including when the customer revokes it in online banking during the provider's session.
  3. Certificates. A valid, expired, and revoked certificate, and a certificate with a role that does not allow a given operation.
  4. Security. Penetration tests with attempts to access other people's data, as in the API tests for third-party providers.
  5. Performance and availability. A comparison of API response times with the customer channel under load, because the regulation requires it.

Questions and answers

Does a bank have to have an API to comply with PSD2?

Not explicitly. Regulation 2018/389 allows a bank to offer providers a dedicated interface or to let them use the interface the customer uses. In practice most banks chose a dedicated API, because it gives control over traffic, provider identification, and consents. The interface must have documentation, a test environment, and availability no worse than the customer channel.

How does AIS differ from PIS?

AIS is access to account information: with the customer's consent, a provider reads the balance and transaction history but cannot order anything. PIS is payment initiation: a provider orders a transfer from the customer's account, and the customer confirms it with strong authentication at the bank. For the IT team these are two different sets of permissions, test scenarios, and risks.

What certificates does a third-party provider present?

Qualified certificates within the meaning of the eIDAS regulation: a website authentication certificate, with which the provider establishes the connection, and an electronic seal certificate, with which it signs messages. The certificate contains the provider's details and its roles, e.g. account information access or payment initiation. The bank verifies the validity of the certificate and whether the role permits the operation being called.

Will PSD2 be replaced by new rules?

In 2023 the European Commission proposed a package to replace PSD2: a new directive (PSD3) and a payment services regulation (PSR). Before you plan a major rebuild of the interface, check the current status of these rules and their deadlines on EUR-Lex, because they may change the requirements for the API and authentication.

What it looks like in a project

Working on banking systems? Talk to an engineer who knows their constraints.

Let's talk

Read more: IT in banking