An application programming interface (API) is a defined set of rules that allows one software system to ask another for data or to carry out an action, without either needing to know how the other is built inside. The provider publishes what requests it accepts, what each request must contain and what it will send back. In financial services, APIs link banks, card networks, payment service providers, fintech firms and their customers, and they now carry a large share of the world's payment instructions and account data.
APIs have existed as long as software has been split into parts, but web APIs, which send requests over the internet, became common in the 2000s. In banking they replaced file transfers, screen scraping and proprietary links. Regulation then turned them into public infrastructure: open banking rules in the UK and Europe require banks to give licensed third parties API access to customer accounts with the customer's consent.
APIs in plain terms
An API works like a restaurant menu and waiter. You do not walk into the kitchen and cook. You read the menu, which lists what can be ordered, and the waiter carries your order to the kitchen and brings back the dish. If you ask for something that is not on the menu, the waiter says no.
When a budgeting app shows your bank balance, it is ordering from the bank's menu. The app sends a request to the bank's API, the bank checks that you have allowed it, and the balance comes back. The app never sees the bank's internal systems, and the bank decides exactly what is on offer.
How a web API works
Most financial APIs follow the REST style. A client sends a request over HTTPS to a web address, called an endpoint, using a method such as GET to read data or POST to create something, like a payment. The server replies with a status code and a body, usually in JSON format. A typical payment flow looks like this:
- The client authenticates, often with an access token issued under the OAuth 2.0 standard.
- It sends a request to create a payment, including amount, currency and beneficiary details.
- The provider validates the request, runs checks and returns a payment ID and status.
- Later status changes are pushed to the client through a webhook, a call back to an address the client registered, similar to an instant payment notification (IPN). A webhook notification spares the client from repeatedly polling the API for updates, and providers usually sign each one so the receiver can confirm it is genuine.
Message content increasingly follows ISO 20022, the international standard for payment data, so that fields such as remitter and purpose code mean the same thing across systems.
Types of API in finance
- Private or internal APIs. These connect a firm's own systems, such as a mobile app talking to the core banking platform.
- Partner APIs. These are shared under contract, for example a sponsor bank exposing accounts and card issuing to fintech clients in a Banking-as-a-Service (BaaS) model.
- Open or regulated APIs. These are published for any authorised third party, as required by open banking rules.
- Aggregated APIs. A single super API wraps many providers behind one interface, so a merchant or remittance firm can reach many payout networks with one integration.
Card networks use APIs to open their rails to push payments, as with Visa Direct and Mastercard Send. A payment gateway exposes APIs so online shops can accept cards without handling raw card data.
APIs and open banking regulation
In the UK, a 2017 order by the Competition and Markets Authority required the nine largest banks to build standard open banking APIs, launched in January 2018. Across the EU, the Second Payment Services Directive (PSD2) obliged banks to give access to account information and payment initiation providers, backed by strong customer authentication (SCA). In the United States, the Consumer Financial Protection Bureau finalised a personal financial data rights rule in October 2024 and reopened it for reconsideration in 2025, so the US framework remains unsettled as of 2026.
Security and risks
Because an API is a door into a financial system, it is a frequent target. Standard defences include mutual TLS certificates, short-lived tokens, rate limits, request signing, encryption of data in transit and at rest, and multi-factor authentication (MFA) for users. Card APIs often return a network token instead of the real card number.
Common failures include broken authorisation, where one customer can read another's data by changing an ID in the request, and leaked API keys in public code. Operational risks matter too: when a provider's API goes down, every app built on it fails. Firms therefore build in retries, idempotency keys that stop a repeated request from creating two payments, and fallback providers, and treat API governance as part of data security.