Skip to content

N26 Open Banking Documentation for TPPs

Notifications You must be signed in to change notification settings

n26/psd2-tpp-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 

Repository files navigation

N26 PSD2 Interfaces - Open Banking for Third Party Providers

Access documentation

PSD2 Dedicated Interface
PSD2 Fallback Interface
PSD2 Sandbox Interface

Key announcements

PSD2 Dedicated Interface

2023
  • September 18, 2023 New account selection screen on payment initiation step for users that have multiple IBANs, from Oct 4th 2023. (please refer to our PIS access documentation)

  • August 18, 2023 A debtor name is now displayed after payment initiation on GET /v1/berlin-group/v1/payments/sepa-credit-transfers/{{paymentId}}, /v1/berlin-group/v1/payments/instant-sepa-credit-transfers/{{paymentId}}, and /v1/berlin-group/v1/periodic-payments/sepa-credit-transfers/{{paymentId}}. (please refer to our PIS access documentation)

  • July 24, 2023 An endpoint to get account transactions, from Oct 24th, 2023, will return the same date of a transaction provided in the response as the date of the same transaction in the N26 app. The endpoint also introduces pagination during the first 15 minutes of an AIS consent lifecycle. (please refer to our AIS access documentation)

  • April 21, 2023 To comply with EU Delegated Regulation 2022/2360, on Jun 22nd, 2023 we will make a change, so that newly issued tokens and consent required to access account information will be valid for up to 180 days. Existing tokens and consent, at the time of the change, will not be impacted (please contact us if you have further questions)

  • March 16, 2023 Additional transaction statuses ACFC and ACSC will be supported in the /v1/payments/sepa-credit-transfers/{{paymentId}}/status and /v1/payments/instant-sepa-credit-transfers/{{paymentId}}/status endpoints, from Mar 31st, 2023 (please refer to our PIS access documentation)

2022
  • November 24, 2022 Periodic payments are now supported, and can be intitiated without specifying the debtor account (please refer to our PIS access documentation)

  • August 26, 2022 SEPA and SEPA instant transfers can now be initiated without specifying the debtor account (please refer to our PIS access documentation)

  • July 29, 2022 Funds confirmation endpoints are now supported (please refer to our CBPII access documentation)

  • June 30, 2022 Initiation of SEPA instant transfers is now supported (please refer to our PIS access documentation)

  • April 25, 2022 The additional Information field has been included in the transaction information we provide, as an ID that links all card transactions related to a single purchase (please refer to our AIS access documentation)

  • Jan 24, 2022 The following parameters will be added to transaction information we provide, from Apr 25th, 2022: mandateID, creditorID, remittanceInformationUnstructured (please refer to our AIS access documentation)

2021
  • Dec 13, 2021 Transactions previously classified as “pending” will be classified as “booked” transactions, from Mar 14th, 2022 (please refer to our FAQs)

  • Feb 3, 2021 token.io interface (deprecated from Nov 4, 2020) will be fully disabled from Mar 1st, 2021

2020
  • Nov 4, 2020 The N26 PSD2 PISP Open Banking API has been released (Berlin Group 1.3.6 conformity). Token.io interface is deprecated.

  • Oct 22, 2020 We’ve just released the brand-new version of our PSD2 AISP Open Banking API, compliant with the Berlin Group 1.3.6 specification

PSD2 Fallback Interface

2024
  • March 5, 2024 Endpoints /api/me, /api/accounts, /api/v3/spaces, /api/v3/spaces/{ID} will be disabled from June 5th 2024. Following the disabling of aforementioned endpoints, 2 new endpoints /api/v2/accounts and /api/v2/accounts/{accountId} have been added. (please refer to our Fallback AISP)
2023
  • October 27, 2023 Following the disabling of /api/smrt/transactions, also used to confirm the initiation of a payment, 3 new payment status endpoints have been added. (please refer to our Fallback PISP

  • October 19, 2023 Endpoints /api/me, /api/accounts, /api/v3/spaces, /api/v3/spaces/{ID} are deprecated but will remain enabled until further notice. New endpoints will be added to get accounts, which will replace aforementioned endpoints. (please refer to our AIS access documentation)

  • October 2, 2023 Endpoints /api/me, /api/accounts are deprecated and will be disabled from Jan 2nd 2024. (please refer to our AIS access documentation)

  • July 17, 2023 New endpoints to get account transactions /api/fallback/accounts/{accountId}/transactions and account transaction details /api/fallback/accounts/{accountId}/transactions/{transactionId} have been added to the fallback interface. Old endpoints /api/smrt/transactions, /api/smrt/transactions/{transactionId} and /api/v3/spaces/{ID}/transactions are deprecated and will be disabled from October 18th, 2023. (please refer to our Fallback AISP documentation)

  • April 21, 2023 To comply with EU Delegated Regulation 2022/2360, on Jun 22nd, 2023 we will make a change, so that newly issued tokens required to access account information will be valid for up to 180 days. Existing tokens, at the time of the change, will not be impacted (please contact us if you have further questions)

2022
  • November 28, 2022 New SEPA CT payment initiation endpoint /api/openbanking/fallback/sepa-ct is live; /api/encryption/key and /api/transactions will be disabled from Feb 27th, 2023 (please refer to our PIS access documentation)

  • August 01, 2022 Initiation of SEPA instant transfers is now supported (please refer to our PIS access documentation)

  • May 17, 2022 New Spaces endpoint /api/v3/spaces is live; old Spaces endpoint /api/spaces will be disabled from Aug 17th, 2022 (please refer to our AIS access documentation)

2021
  • Nov 17, 2021 /api/v2/spaces endpoint has been disabled

Additional documentation & files

Frequently asked questions

General FAQs

Which markets are covered by the PSD2 APIs?

The APIs cover all European markets that N26 is present in.

Do the PSD2 APIs differ for retail and business accounts?

The same API implementation is used for retail and business accounts, and the APIs work the same for both.

Which type of certificate is needed to access the PSD2 APIs?

The PSD2 APIs can be accessed with a valid eIDAS QWAC certificate.

How can TPPs renew their certificates?

TPPs can renew their certificates by making a normal API call with the new certificate, in which the certificate will be onboarded automatically. Both the new and old certificate will be supported concurrently, and both can be used, until the old certificate expires. Please note that if the organization identifier / client ID will be different in the new certificate, TPPs will need to re-obtain authorisation tokens and consent from PSUs for the new certificate.

How long is consent valid for?

For AIS requests, consent is valid for a maximum of 180 days, unless a shorter period is specified using the “validUntil“ parameter. Please note that a PSU has up to 5 minutes to confirm consent in the N26 app. For PIS requests, access is only valid for 15 minutes and for one transaction. Please note that a PSU has up to 12 minutes to certify the payment in the N26 app.

Do the PSD2 APIs support one-time consents?

The PSD2 APIs support both one-time ("recurringIndicator": false) and recurring ("recurringIndicator": true) consents.

What is the maximum amount of transaction data that can be retrieved through the API?

Generally, transactions requests are limited to a period of 90 days from the time the request is made. The only exception to this limitation, applies during the first 15 minutes of an AIS consent lifecycle. In this time period, any transactions request made will not be limited. Moreover, requests made without specifying dateFrom and dateTo will return all transactions made since the account was created. After this time period, the above limitation will apply, and any requests trying to retrieve transactions older than 90 days will be rejected. Please note our services use UTC timing, and keep this in mind when setting dateFrom and dateTo parameters.

Which currencies are supported for payments?

The Euro.

Are there minimum or maximum limits for payments?

Transaction limits are set by the customer.

What happens when an account is closed?

Response should be a 404 error, which indicates that the account could not be found (either because it has been closed, or because it does not exist).

What type of accounts are accessible through the API?

N26 customers have a main account and, depending on their membership, up to 10 additional sub-accounts which are called Spaces. Furthermore, N26 customers can enable a unique IBAN number for each sub-account, which is different to the IBAN number of the main account. Please note that the main account and sub-accounts each have their own individual balances. More specifically, the main account balance does not include the balance(s) of the sub-account(s). There is currently, unfortunately, no way to retrieve a customer’s single total account balance through our API. To achieve this, we recommend retrieving the balance of the main account and each sub-account individually, and then aggregating them. The balance of Space(s) will be returned even in cases where N26 customers have chosen to “lock“ a Space or “hide“ the Space’s balance in the N26 app.

Are AIS and PIS certificates interchangeable?

Please note that the endpoints that can be accessed are dependent on the role stated in the QWAC certificate. A PIS certificate is required to access the PIS endpoints, and an AIS certificate is required to access AIS endpoints. This is true for all our interfaces; whether you wish to access the dedicated, fallback or sandbox interface. TPPs can possess an AIS certificate, a PIS certificate or both. Access and refresh tokens are also different depending on whether the call to the API is AISP or PISP.

Technical FAQs

I’m trying to connect to your APIs, but I receive a 401 “Unauthorized“ error

This could happen for a few reasons, such as: Incorrect or expired certificate used (as our APIs can only be accessed with a valid eIDAS QWAC certificate) No certificated included in the authorization call (our oAuth/authorize end point includes certificate validation) client_id parameter does not match the organizationId field in your certificate If you continue to face this error, and it is not caused by any of the above reasons, please reach out to us.

I received a 401 “Invalid token error“

This could indicate that the access token used in the call has been invalidated, which could be due to multiple refresh token calls, as each refresh token call invalidates the previous access token. Please be sure you are using the newest generated access token. If this is not the cause of your error, please reach out to us.

I received a 401 “Refresh token not found“ error

This indicates that the refresh token has been invalidated, which could happen for one of the following reasons: It expired after 180 days The PSU made a change to their core data (e.g. password, email, phone number) The PSU’s KYC status was reset In this scenario, the PSU is required to re-log in. If this is something you would like us to look into, please reach out to us with the following information: Confirmation of how many PSUs are affected by the issue Confirmation of whether you received direct complaints from affected PSUs Any information you might have on whether the affected PSUs made any changes to their account If possible, request IDs of both failed attempts to refresh the access token (with this error) and previous successful attempts for the same affected PSU

I received a 429 “Too many requests“ error

It is likely that you have exceeded our rate limiting rules. While we do not publish our rate limiting policy, we have limits and quotas on our APIs, and rate limit according to user IP address, external IP address or certificate. Any changes to the rules may only be considered if we are confident that the activity does not negatively impact N26 or our customers. If this negatively affects your integration with us, please reach out to us and share more details on your needs, such as: External IPs used Requests per application per second or per hour etc

Payment did not reach the final status ACSC

⚠️ Please keep in mind that, as per page 42 of the Berlin Group standards v 1.3.6, we are only required to provide status information immediately after the initiation of the payment. We are thus not required to ensure that all statuses are reached within the life of the access token.

For successfully executed SEPA CT and instant SEPA CT payments , the payment statuses follow the order: RCVD -> ACCP -> ACFC -> ACSC. In some cases, the final status may not be reached within the life of the access token, or the status may be changed to RJCT. This may be due to various reasons, some of which are outlined in the table below (this list is not exhaustive):

Last available status Possible cause(s)
RCVD User has not completed certification
RJCT (after RCVD) Certification expired, was cancelled by user or failed due to technical issues
RJCT (after ACCP) User has insufficient funds for payment, or funds check failed due to technical issues
ACFC Delay in compliance checks; (SEPA CT only) still pending reconciliation from BundesBank
I’ve noticed a transaction is “missing“

In some cases you may notice that a transaction is present in our response up to a certain date, after which it is “missing“. This usually pertains to card transactions, and it is likely that the transaction has been hidden and replaced by another one. Please note that this takes place within the N26 app, and is not unique to our Open Banking implementation. When a card purchase is made, typically:

  1. The funds are initially reserved → authorisation transaction (bank code: PMNT-MCRD-UPCT)
    1. Balance is impacted, although the funds have not yet left the customer’s account
  2. The merchant settles the claim and collects the funds → authorisation transaction is hidden, and replaced by
    1. presentment transaction (bank code: PMNT-CCRD-POSD)
    2. Merchant has up to ~12 days to settle the claim
    3. No further balance impact
In some cases:
  1. The authorisation is cancelled by the merchant or it expires → authorisation reversal or authorisation expiry transaction (bank code: PMNT-MCRD-DAJT for both)
    1. Balance is impacted, and it appears as a “refund“ in the transaction list
  2. The authorisation is higher than the actual purchase amount → authorisation reversal transaction for the excess amount
Below are some examples with numbers:
Example 1: Customer purchases 12€ book from book store, and merchant settles claim
What takes place 1. Funds are reserved 2. Merchant settles claim
Transaction list impact -12€ authorisation transaction -12€ authorisation transaction (hidden)
-12€ presentment transaction
Balance impact -12€ 0€

Example 2: Customer purchases 12€ book from book store, but merchant does NOT settle claim
What takes place 1. Funds are reserved 2. Authorisation is reversed
Transaction list impact -12€ authorisation transaction +12€ authorisation reversal/expiry transaction
Balance impact -12€ +12€

Example 3: Customer rents electric scooter for 12€, but in the end the cost is only 8€
What takes place 1. Funds are reserved 2. Authorisation is partially reversed (the excess) 3. Merchant settles claim (the actual cost)
Transaction list impact -12€ authorisation transaction +4€ authorisation reversal transaction -12€ authorisation transaction (hidden)
+4€ authorisation reversal transaction (hidden)
-8€ presentment transaction
Balance impact -12€ +4€ 0€
I'd like to know what are the bankTransactionCode means

We've created Additional API Specification page with specific section related to request & response parameters, including Bank Transaction Code

I’ve noticed duplicate transactions with different details

Since our change to bookingStatus made on 14 March 2022, you may notice duplicate transactions with different transactionIDs, booking and value dates. This usually pertains to card transactions.
As described in technical FAQ #5, when a card purchase is made, the first transaction is an authorisation transaction (e.g. which took place on 1st March 2022). This is then hidden and replaced by a presentment transaction which takes place at a later date (e.g. 3rd March 2022). These are treated as two separate transactions, and thus have different transactionIDs as well as bookingDate and valueDates. Thus, if you are seeing duplicate transactions with different details, you are most likely seeing both the authorisation and presentment.
Please note that once the authorisation transaction is hidden, it is no longer included in our API response and only the presentment transaction is shared.

I’ve noticed the date of a transaction provided in the response, is different to the date of the same transaction in the N26 app

In some cases you may notice that the date of a particular transaction in our response, appears different to the date of the same transaction in the N26 app. This usually pertains to card transactions.
As described in technical FAQ #5 , when a card purchase is made, the first transaction is an authorisation transaction (e.g. which took place on 1st March 2022). This is then hidden and replaced by a presentment transaction which takes place at a later date (e.g. 3rd March 2022). Although, from 3rd March 2022, the transaction the customer sees in their transaction list is the presentment transaction, the associated date of the transaction does not change from 1st March 2022 to 3rd March 2022. This is to avoid confusing the customer, who is most likely more interested in the date the purchase was made, rather than the date the merchant settled the claim.
Please note that once the authorisation transaction is hidden, it is no longer included in our API response and only the presentment transaction is shared. Therefore, the transaction you observe in the response our APIs provide, with a different date, is most likely the presentment transaction - this can be confirmed by checking the transaction’s bank code. Additionally, as our implementation provides transaction data as it is stored, our APIs will always return the accurate date of the transaction.

View as PDF

About

N26 Open Banking Documentation for TPPs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published