
Pay by Bank: the six API calls behind one checkout tap
Your Pay by Bank checkout is one API call to your provider and one redirect for the customer. At the customer's bank it is six calls, two OAuth tokens, a detached JWS signature, a mutual TLS handshake, and a payment status that can still read Pending after the customer has landed on your thank-you page. And you did not choose that bank. Your customer did, so its worst night is your checkout's worst night.
That is the foundational point about pay by bank (open banking payment initiation, in UK regulatory terms). The rail is cheap and fast, but it shows you every bank as it actually is. Cards hide issuer differences behind a scheme and an acquirer. Account-to-account payments do not. Below is the flow under the UK Open Banking Read/Write API, the states your order system has to model, and what Open Banking Limited's October 2026 statistics say about the banks behind it.
What Pay by Bank actually is
Pay by Bank moves money straight from the payer's bank account to the merchant's account, with no card number and no card network in the path. A payment initiation service provider (PISP) asks the payer's bank (an ASPSP, in the spec's vocabulary) to send a payment on the payer's behalf. The payer approves it in their banking app, and the bank pushes the money out, for a typical single immediate payment over Faster Payments.
Three things happen before the first per-payment API call:
- Authorisation. Calling bank APIs directly requires FCA permission as a payment initiation provider. Most merchants should not want this, which is why providers such as TrueLayer, Tink, Yapily, GoCardless and Atoa exist.
- Certificates. PISPs enrol in the Open Banking Directory and hold transport and signing certificates. Every call runs over mutual TLS, and payment requests are signed.
- Registration with every bank. Dynamic client registration happens once per bank. Then again for the next bank, and there are a lot of banks.
So a Pay by Bank provider is not a gateway in the card sense. It is a fleet of individual bank integrations behind one API, and the quality of that fleet is what you are paying for.
The six calls behind one tap
On 18 November an engineering lead at UK provider Atoa laid out the six calls behind a single Pay by Bank payment. The endpoint names come from version 3.1 of the Open Banking Read/Write API, which is still what most banks expose.
One Pay by Bank payment, as the bank sees it
Step 1 of 61. Client token
The PISP requests a client-credentials access token from the bank's token endpoint over mutual TLS. It can stage consents and do nothing else.
Step 2 on the wire looks like this, trimmed (dummy account details):
POST /open-banking/v3.1/pisp/domestic-payment-consents
Authorization: Bearer <client-credentials token>
x-idempotency-key: ord-10492-consent-1
x-jws-signature: <detached JWS over the body>
Content-Type: application/json
{
"Data": {
"Initiation": {
"InstructionIdentification": "ORD-10492",
"EndToEndIdentification": "ORD-10492",
"InstructedAmount": { "Amount": "42.50", "Currency": "GBP" },
"CreditorAccount": {
"SchemeName": "UK.OBIE.SortCodeAccountNumber",
"Identification": "04000412345678",
"Name": "Example Coffee Ltd"
}
}
},
"Risk": { "PaymentContextCode": "EcommerceGoods" }
}
Two details in the Read/Write API profile decide whether this is safe to retry. The idempotency key is at most 40 characters, and the bank treats a repeat from the same provider within the preceding 24 hours as the same request, returning the current resource with a 201 instead of creating a new one. The caller must not change the body under the same key, must wait at least one second before resending a payment initiation that got no response, and must not use idempotent POSTs as a way to poll. That is the general idempotency key discipline for payment APIs, written into a national standard.
The rule that bites first is in step 5. The domestic payments spec requires the Initiation and Risk sections to match the consent the customer approved. If your code rebuilds that payload from the order at initiation time, a recalculated basket, a rounding change or a reformatted reference turns an authorised payment into a rejection. Persist the exact consent body you sent and replay it.
Two state machines, not one
Your order system needs to track two resources with separate lifecycles. The consent moves from AwaitingAuthorisation to Authorised to Consumed, or to Rejected if the customer declines or the bank's validation fails. The payment, once created, carries one of six statuses defined by the spec:
| Status | What the spec says it means | What your order should do |
|---|---|---|
Pending | Pending, further checks to come | Show a processing state, keep checking |
Rejected | Initiation rejected | Fail the attempt, offer a fresh consent |
AcceptedSettlementInProcess | Checks passed, accepted for execution | Still waiting, do not ship |
AcceptedSettlementCompleted | Settlement on the debtor's account completed | Payer debited, fulfilment is a risk decision |
AcceptedWithoutPosting | Accepted, not posted to the creditor's account | Route to manual review |
AcceptedCreditSettlementCompleted | Settlement on the creditor's account completed | Merchant credited |
Read those names literally. "Completed" in AcceptedSettlementCompleted refers to the payer's side. Credit to your account is a different status, and the place you confirm it is your bank statement, which is why these statuses belong in the same store your payment reconciliation engine matches against. The EndToEndIdentification you set in step 2 is the field that ties the incoming Faster Payments credit back to the order.
The bank your customer picked is your uptime
Open Banking Limited's API performance statistics for October 2026 show an ecosystem at scale: 3.13 billion successful API calls, 182 million of them payment initiation calls, and 35.8 million single domestic payments plus 9.2 million variable recurring payments. Average response time was 324 ms. In July the body announced that UK open banking had passed one billion payments since launch. This is not a pilot.
The headline availability was 99.86%. That figure is weighted by traffic, so the big banks that carry most of the calls dominate it. Open Banking Limited also publishes an unweighted figure, which takes the endpoint with the most downtime at each bank, each day, regardless of traffic. Unweighted availability in October was 99.31%. Between midnight and 6am it was 98.96%.
The weighted number describes the ecosystem. The unweighted number is closer to what a merchant sees when a customer banks somewhere smaller. Per brand, the overnight figures for October were 93.85% at Bank of Ireland UK, 94.76% at Coutts and 96.12% at Nationwide. The Atoa post guessed maintenance windows were behind the overnight dip. The October breakdown bears that out: almost all of those gaps are recorded as planned downtime.
Overnight (00:00 to 06:00) API downtime by brand, October 2026, unweighted
That changes the design response. Recorded unplanned overnight downtime stayed under one percentage point at every reporting brand. The big gaps are scheduled, which means a provider can know about them in advance and your bank picker can say "your bank is down for planned maintenance until 6am" instead of showing a spinner.
One caveat matters more than any single number. Since August 2026 these statistics cover 9 providers and 19 brands. Banks outside that reporting set are not in the data at all, so the true long tail is longer than this chart.
The slow tail
Averages hide latency spread too. The domestic payment endpoint (the step 5 call) averaged 118 ms at AIB Group (UK) and 179 ms at Barclays in October, against 578 ms at Coutts and 790 ms at Bank of Ireland UK. Some account information endpoints were far slower: AIB Group (UK) averaged 3,876 ms on beneficiaries, and Bank of Ireland UK 4,015 ms on one confirmation of funds endpoint.
A single global timeout either kills requests to slow banks that would have succeeded or makes customers of fast banks wait for nothing. Timeouts have to be per bank, per endpoint, and tuned from observed latency. If you use a provider, ask how they do it.
Most failures are the bank saying no
In October 0.56% of calls failed: 0.42% for business reasons (4xx responses) and 0.14% for technical ones. In September the split was 0.41% to 0.08%, roughly five to one. October's ratio fell nearer three to one because technical failures nearly doubled, from 2.30 million to 4.42 million, and Nationwide alone logged 1.53 million of them. One bank's bad month moved the national figure.
The two classes need different handling. A business failure means the bank is up and refusing: the consent expired, the authorization code was already used, the request did not validate. Retrying returns the same error, and the real fix is usually a new consent, which means sending the customer back to their bank. A technical failure on step 5 is the case for the idempotency rules above: check status with a GET, wait at least a second, then resend with the same key and body.
What to build into the checkout
None of this is exotic. It is the work that separates a Pay by Bank button from a Pay by Bank checkout:
- Store the consent body verbatim and replay it at initiation. Never rebuild it from the order.
- Model both state machines in your order table, with
PendingandAcceptedSettlementInProcessas real states that have a screen, a timeout and a notification when they resolve. - Fulfil on server-side status or a provider webhook, and confirm the credit against your statement.
- Split retries by failure class. Technical failures retry under the same idempotency key. Business failures need a fresh consent and a customer action.
- Make the bank picker honest. Keep flaky banks listed, but surface planned maintenance and offer another way to pay while it runs.
- Test the bad night in sandbox: an expired consent, a slow bank, a payment stuck in
Pending, a redirect that never comes back.
Other markets answer the same problem differently. India's UPI puts a central switch between every app and every bank, which is part of why the UPI rail can standardise behaviour that UK open banking leaves to each bank. In the UK you get direct bank APIs and the variance that comes with them.
The trade is still a good one. Pay by bank settles in seconds, keeps card numbers out of your systems, and the Atoa post puts the cost at roughly half that of cards. Just go in having read the unweighted numbers, because those are the ones your customers will feel.
If you are adding Pay by Bank to a checkout and want the order state machine and retry rules pressure-tested before launch, that is the kind of payment rails engineering our team does, and you can get in touch.
New posts, in your inbox
Get an email when we publish a new deep-dive. No spam, unsubscribe anytime.