Financial software and Open BankingN-0628 Nov 202611 min read

One payment, four Open Banking standards: what a single internal contract has to carry

A payer has just approved a payment in her banking app. Whether any money will move now depends on which specification her bank implemented. Under the UK standard no payment exists yet, and none will unless the payment provider sends one more request. Under the French STET standard a payment exists, and the bank is required to wait for the provider to confirm it. Under the Berlin Group framework the bank may already be executing, or may be waiting for a code. Under PolishAPI there is an access token and nothing else.

A team that integrates banks across these four standards wants one internal API in front of them, so that checkout, ledger and support tools need not know which bank is behind a payment. The usual first attempt is a field mapping, and the field names are the easy part. My claim is that the differences sit around strong customer authentication (SCA), the two-factor step the bank performs with the payer, and that the contract has to carry a state machine that is the union of the four plus an explicit statement of who must act next.

The four specifications, in the versions I read

The third-party provider (TPP) is the regulated firm calling the bank’s API; in the payment role it is a payment initiation service provider (PISP).

Standard Version read Shape of the payment API
UK Open Banking Read/Write API v4.0, 28 June 2024 A consent resource, then a payment resource
Berlin Group NextGenPSD2 Implementation Guidelines 1.3.16, 27 November 2025 A payment resource with authorization sub-resources
STET PSD2 API (France) 1.6.3, 6 October 2022 A payment-request resource, then a confirmation
PolishAPI 3.0, 12 December 2019; 3.0.1 of 17 June 2025 An OAuth2 authorization that carries the payment, then a transfer call

All four are frameworks that banks implement with options, and each bank narrows what the document allows.

One payment, sent four times

The case is constructed for this article. A customer pays invoice INV-2026-0417 for 248.60 to a supplier, Nordwind Supplies, by a single immediate credit transfer. The internal system calls the payment pay_3K9T. The listings are illustrative: paths, headers and field names come from the specifications, and each body is cut to the fields that matter.

The PISP first registers, as a consent resource, what the payer is about to approve. The mandatory Risk object is left out.

UK, step 1: create the consent
POST /domestic-payment-consents HTTP/1.1
Authorization: Bearer <client credentials token>
x-idempotency-key: pay_3K9T-consent
x-jws-signature: <detached JWS over the body>
Content-Type: application/json

{
  "Data": {
    "Initiation": {
      "InstructionIdentification": "pay_3K9T",
      "EndToEndIdentification": "INV-2026-0417",
      "InstructedAmount": { "Amount": "248.60", "Currency": "GBP" },
      "CreditorAccount": {
        "SchemeName": "UK.OBIE.SortCodeAccountNumber",
        "Identification": "08080021325698",
        "Name": "Nordwind Supplies Ltd"
      }
    }
  }
}

The bank answers with a ConsentId and the status AWAU, awaiting authorization. The payer authenticates at the bank and the consent becomes AUTH. Nothing has been paid. The payment resource page is explicit: “A domestic-payment can only be created if its corresponding domestic-payment-consent resource has the Status of ‘AUTH’.” The PISP must then POST /domestic-payments with an Initiation identical to the consent, or the bank “must not process the request”, and with a token obtained from the authorization code that arrives on the redirect back. Figure 1 shows the order.

sequenceDiagram
  participant U as Payer
  participant P as PISP
  participant B as Bank
  P->>B: POST domestic-payment-consents
  B-->>P: 201, ConsentId, status AWAU
  P->>U: redirect to the bank
  U->>B: authenticates and approves
  Note over B: consent is AUTH, no payment exists
  U->>P: returns with authorization code
  P->>B: POST domestic-payments with token
  B-->>P: 201, payment RCVD
Figure 1 In the UK flow the payer approves a consent, and the payment is created only if the PISP makes a further call with the code from the redirect.

Berlin Group: the payment first

Here the first call creates the payment itself, and the bank’s answer, following section 5.3.1 of the guidelines, already carries an identifier and a status.

Berlin Group: the bank's answer to POST /v1/payments/sepa-credit-transfers
HTTP/1.1 201 Created
ASPSP-SCA-Approach: REDIRECT
Location: /v1/payments/sepa-credit-transfers/1234-wertiq-983

{
  "transactionStatus": "RCVD",
  "paymentId": "1234-wertiq-983",
  "_links": {
    "scaRedirect": { "href": "https://www.testbank.com/asdfasdfasdf" },
    "status": { "href": "/v1/payments/sepa-credit-transfers/1234-wertiq-983/status" },
    "scaStatus": { "href": "/v1/payments/sepa-credit-transfers/1234-wertiq-983/authorisations/123auth456" }
  }
}

The payment exists, at RCVD, before the payer has seen the bank, and ASPSP-SCA-Approach says which of four authentication approaches the bank picked. From now on there are two status fields: transactionStatus for the payment and scaStatus for the authorization sub-resource, the object that tracks one authentication. A bank may also demand an authorization confirmation: the redirect back carries a confirmationCode, and the TPP must return it with a PUT. Until it does, scaStatus is unconfirmed, “SCA is technically successfully finalised by the PSU, but the authorisation resource needs a confirmation command by the TPP yet.”

STET: a confirmation the bank must wait for

STET also creates the resource before authentication, with a request modelled on the ISO 20022 credit transfer message, and the PISP lists the approaches it accepts in acceptedAuthenticationApproach. After the payer has authenticated, the PISP owes one more call. The OpenAPI file reads: “it is the due to the PISP to confirm the Request to the ASPSP in order to complete the process flow. The ASPSP must wait for confirmation before executing the subsequent Credit Tranfer.”

STET: confirm, after authentication
POST /v1/payment-requests/MyPmtInfRscId/confirmation HTTP/1.1
Authorization: Bearer <token from the authorization code>
X-Request-ID: 2e9d4c1a-8b7f-4e6d-a5c3-1f0b9e8d7c66
Idempotency-Key: 6c3f1a2b-9d8e-4f70-b1a2-5e4d3c2b1a99
Content-Type: application/json

{}

The empty body is required: “Even though there is no parameter, a Json (void) body structure must be provided.”

PolishAPI: the payment inside the authorization

PolishAPI has no resource at the bank before authentication. The PISP calls authorize with a scope_details structure whose pis:domestic privilege contains the transfer itself. The payer approves, the PISP exchanges the code for a token, and only then posts the transfer to the path in the OpenAPI file, /v3_0.1/payments/v3_0.1/domestic. The TPP also picks the settlement system (Elixir, ExpressElixir and others), and status callbacks are an “optional possibility” for the bank (specification, section 3.1.3), so polling getPayment is the dependable route.

Where they differ

The four flows fall into two orders. In the UK and Poland the payer authenticates first and the payment is created afterwards, as in Figure 1. In the Berlin Group and STET flows the payment is created first and authenticated afterwards, and the bank may still wait for the PISP once the payer has approved.

Question UK v4.0 Berlin Group 1.3.16 STET 1.6.3 PolishAPI 3.0
What exists at the bank before SCA A consent The payment The payment-request Nothing
TPP call required after SCA POST domestic-payments PUT confirmation code, if the bank asks POST confirmation POST domestic
What the redirect back carries Authorization code Nothing, or a confirmation code Authorization code Authorization code
Idempotency x-idempotency-key, 24 hours No header defined Idempotency-Key, required None; tppTransactionId in the body

The idempotency row decides what a retry may do. The UK Read/Write profile requires the bank to treat a request as idempotent if it received one “with the same x-idempotency-key from the same TPP in the preceding 24 hours”. The word idempotency does not occur in the Berlin Group guidelines or the PolishAPI specification. A second POST after a lost response is therefore safe by specification in two of the four, and a matter for each bank’s documentation in the other two; a timeout is not a decline covers what to do then.

Status vocabularies split too. Three lists draw on the ISO 20022 code set, which suggests more agreement than there is: STET adds ACCO, Berlin Group adds verification-of-payee codes, the UK has BLCK, and PolishAPI has six lowercase words plus free text. And the last status differs by bank. Section 4.14.1 of the Berlin Group guidelines allows an interface “only providing the status information immediately after the initiation of the payment”, and gives ACTC as a typical end status for a bank that books in batches. ACTC means authentication and validation succeeded, nothing about funds. Waiting for ACSC waits for ever at such a bank; treating ACTC as paid releases goods against a validated order. The contract has to say the information is absent instead of guessing.

The contract

The internal contract needs fewer states than any of these lists, because its consumers ask fewer questions: is someone still expected to act, is the order with the bank, is it finished, did it fail. Figure 2 shows the state machine I would use.

stateDiagram-v2
  state "Awaiting payer" as payer
  state "Awaiting TPP" as tpp
  state "Accepted" as accepted
  state "Settled" as settled
  state "Rejected" as rejected
  state "Cancelled" as cancelled
  [*] --> payer
  payer --> tpp: payer authenticated
  payer --> accepted: bank proceeds without a TPP call
  payer --> rejected: refused or timed out
  tpp --> accepted: payment submitted or confirmed
  tpp --> rejected: step not completed in time
  accepted --> settled: debit reported complete
  accepted --> rejected: bank refuses
  accepted --> cancelled: cancelled before execution
Figure 2 Six internal states cover all four standards, provided that waiting for the payer and waiting for the PISP are kept apart.

AWAITING_TPP is the state an intersection of the four would lose. It is a UK consent at AUTH with no payment, a Berlin Group authorization at unconfirmed, a STET request the payer has confirmed and the PISP has not, and a PolishAPI token not yet used. In all four the payer believes she has paid and the bank will not execute. It is also the only stall the integrator fully controls, so it should be visible, time-boxed and alerted on. The listing shows the types the rest of the system depends on; it is my design, not taken from any of the documents.

Internal payment contract (excerpt)
type PaymentState =
  | "AWAITING_PAYER"  // the payer must authenticate or approve
  | "AWAITING_TPP"    // the payer is done; the bank waits for a call from us
  | "ACCEPTED"        // the bank holds the order and has not refused it
  | "SETTLED"         // the bank reports the debit as completed
  | "REJECTED"
  | "CANCELLED";

type NextAction =
  | { actor: "payer"; type: "redirect" | "decoupled_wait" | "embedded_challenge"; expiresAt: string }
  | { actor: "tpp"; type: "submit" | "confirm"; expiresAt: string }
  | { actor: "bank"; type: "poll"; notBefore: string }
  | { actor: "none"; type: "none" };

interface ProviderView {
  standard: "UK_OB_4_0" | "BERLIN_GROUP_1_3" | "STET_1_6" | "POLISHAPI_3_0";
  paymentResourceId: string | null;   // null while no payment exists at the bank
  rawStatus: string | null;           // exactly as the bank sent it
  rawSecondaryStatus: string | null;  // consent status, scaStatus or detailedStatus
  rawReason: string | null;
  furtherUpdates: "expected" | "none_known" | "unknown";
}

nextAction answers “who is blocking, and until when”. paymentResourceId is nullable on purpose: assuming a bank identifier from the start is assuming the Berlin Group or STET order. The raw fields are kept beside the normalized ones, so a mapping can be corrected without losing history. furtherUpdates is recorded per bank: none_known where the bank is known to stop at an acceptance status. A consumer that meets a nextAction it does not recognize should wait and alert, never assume success.

The status mapping from each standard into the six states

This is my reading of the status definitions. For STET the status diagram is published as an image, so RCVD and PDNG are placed from their definitions alone.

Internal state UK v4.0 Berlin Group 1.3.16 STET 1.6.3 PolishAPI 3.0
AWAITING_PAYER Consent AWAU; payment PATC RCVD or PATC with scaStatus before unconfirmed; RVCM RCVD, PDNG before authentication No payment; authorization in progress
AWAITING_TPP Consent AUTH, no payment scaStatus unconfirmed ACCO in the redirect approach Token issued, transfer not posted
ACCEPTED RCVD, PDNG, ACTC, ACCP, ACFC, ACSP, ACWC, ACWP ACTC, ACCP, ACFC, ACWC, ACSP, ACWP, PDNG ACTC, ACCP, ACSP, ACWC, ACWP submitted, pending, scheduled
SETTLED ACSC, ACCC ACSC, ACCC ACSC done
REJECTED Consent or payment RJCT RJCT; scaStatus failed RJCT, with a reason such as NOAS rejected
CANCELLED (none in the list) CANC CANC cancelled

ACWP sits under ACCEPTED because SETTLED is defined narrowly, as the bank reporting the debit complete. BLCK (UK only) should not be mapped automatically: it should stop the payment and alert a person. STET’s NOAS, “The PSU has neither accepted nor rejected the Payment Request and a time-out has occurred”, is the only code in the four documents for a payer’s silence.

A lost redirect, followed through each standard

The failure that shows why the union matters is ordinary. The payer approves at her bank, and the browser never arrives back at the PISP. The PISP holds pay_3K9T in AWAITING_PAYER with an expiry, and the expiry passes.

UK. A consent read with the client credentials token shows AUTH. The payer did her part. But the payment endpoint needs a token from the authorization code, and the code was on the lost redirect. The consent cannot be revived: the payment initiation profile says payment consents “are short-lived and cannot be re-authenticated by the PSU”. No money moves. The correct result is REJECTED with a reason that says the authorization was lost.

PolishAPI. The same outcome with less to look at: no code, no token, no transfer, and nothing at the bank to read.

Berlin Group. The payment exists and can be read. If the bank does not use confirmation codes, scaStatus is finalised and the payment is moving: the payer has paid, although the PISP never saw her come back. If it does, the code was on the lost redirect, scaStatus stays unconfirmed, and the PISP has nothing to confirm with. It can try a cancellation (DELETE on the payment) where the bank supports it.

STET. The payment-request exists. The confirmation call lists the token from the authorization code among its prerequisites, so by that text the PISP cannot confirm, while the bank “must wait for confirmation”. The OpenAPI file sets no time limit for that wait.

The same event ends three ways: nothing happened and nothing can (UK, Poland), the payment went through unnoticed (Berlin Group without a code), or a payment is parked with an approval nobody can complete (Berlin Group with a code, STET). Figure 3 gives the handling as a decision.

flowchart TD
  A["Return not received by the deadline"] --> B{"What exists at the bank?"}
  B -->|"Nothing, PolishAPI"| C["Close the attempt as rejected"]
  B -->|"A consent, UK"| D["Read the consent, then close"]
  B -->|"A payment, Berlin Group or STET"| E["Read payment and SCA status"]
  E --> F{"Has the bank moved past authentication?"}
  F -->|"Yes"| G["Follow the status to its end"]
  F -->|"No, it waits for a code"| H["Mark stalled, try to cancel"]
Figure 3 After a lost redirect the bank resource decides the outcome, so the PISP reads it wherever one exists before it closes the attempt.

The return of the browser is a hint and the bank resource is the record. A design that waits for the redirect reports failures that are successes at Berlin Group banks; one that reads the resource on a schedule, using the expiry in nextAction and paymentResourceId to know whether there is anything to read, gets all four right.

The alternatives fail here. An intersection contract (pending, paid, failed) cannot express AWAITING_TPP or a payment with no bank identifier, so each becomes special-case code in the consumers. A pass-through contract moves this whole comparison into every consumer. The union costs more, but it is paid once, in the adapter layer.

Identification and message signing

All four use mutual TLS. The three EU standards identify the TPP by qualified certificates under eIDAS; the UK profile requires certificates “issued by Open Banking” and a software statement from its directory. Signing is closer to two camps than four. The UK and PolishAPI use a detached JSON Web Signature (JWS) in x-jws-signature. Berlin Group 1.3.16 and STET use HTTP signatures in a Signature header with Digest. Both are moving towards JWS: STET 1.6.3 defines an optional X-JWS-Signature header, and the Berlin Group’s openFinance Protocol Functions and Security Measures V2.4.1 of 31 July 2026 specifies x-jws-signature with a detached payload. One detached-JWS signer with configurable header claims is the component to invest in.

What the Payment Services Regulation changes

The EU Payment Services Regulation (PSR) replaces the open banking provisions of PSD2. The Council adopted its first-reading position on 29 October 2026, and the European Banking Authority said on 16 October 2026 that publication “is estimated to take place in December 2026 or January 2027” (speech). The publication date is not confirmed by a primary source at the time of writing. Article 124 of the Council text sets application 21 months after entry into force, so late 2028 at the earliest.

Articles 38(3) and 41(b) contradict the Berlin Group sentence quoted above: updates, “including to the payment status”, must be available “on an ongoing basis until the payment transaction is executed or rejected”. If published as adopted, the ACTC-for-ever bank becomes a compliance question, and furtherUpdates: none_known should become rare in the EU. Article 37(4)(h) lets the PISP “choose which authentication procedure is to be presented to the payer”, so more nextAction variants will be in use per bank.

What the regulation leaves alone is most of this article. Article 36(3) asks for recognised standards and names no API. It does not decide whether a consent or a payment comes first, whether the TPP owes a call after SCA, which status codes exist, or how idempotency works. The UK is outside it altogether, and its long-term framework is still being set up.

Limits, and what to record per bank

The contract is per bank, not per standard: every option in the specifications is settled in a bank’s documentation and sometimes only in its behaviour. The mapping contains judgement, so it should be versioned data with a test per bank. SETTLED means the payer’s debit, not the payee’s credit. Bulk and future-dated payments, multi-signatory authorization and refunds add states I have left out. And verification of payee, mandatory for euro credit transfers since 9 October 2025, will likely need a nextAction of its own.

I would not connect a bank until each of these has an answer in configuration, with the evidence beside it:

  1. Which resource exists before SCA, and whether it can be read with a client credentials token.
  2. Whether the TPP owes a call after SCA, which credential it needs, and how long the bank waits.
  3. Which SCA approaches the bank offers, and who chooses.
  4. The last status the bank reports for a successful payment, observed and not assumed.
  5. Whether a repeated create request is idempotent, on which key, and for how long.
  6. Whether status is pushed, and whether the push can be relied on without polling.
  7. Which reason codes it sends for a refusal, a payer who did nothing, and insufficient funds.

Whether to release the goods is then each merchant’s policy over state and furtherUpdates, not a status code.

Sources

Work with me

Working on this problem? I’m glad to compare notes.

Tell me about the problem