> ## Documentation Index
> Fetch the complete documentation index at: https://adyen-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Account-to-account (A2A) Payments with iDEAL

> Learn how to integrate A2A payment flow through Adyen.

Adyen supports making account-to-account (A2A) payments in the Netherlands through [iDEAL](https://ideal.nl/en). This feature allows your users to make online payments using their Adyen business account.

This page explains how to:

* Enable Account-to-Account (A2A) payments directly from Adyen business accounts.
* Retrieve payment details using the `/payments/details` endpoint.
* Confirm payments using the `/payments/confirm` endpoint
* Cancel payments using the `/payments/cancel` endpoint.

## Requirements

| Requirement | Description |
| - | - |
| **Integration type** | You must have the Adyen for Platforms integration that supports business accounts. |
| **[API credentials](https://adyen-preview.mintlify.site/development-resources/api-credentials.md)** | The API user making the request must have the following role assigned: **Role for A2A Issuer payments - API** |
| **Limitations** | Some limitations are: This documentation is only for platforms or marketplaces operating in the Netherlands. Payments are exclusively facilitated via the iDEAL network. |
| **Setup steps** | You must: Have an Adyen business account. [Implement Strong Customer Authentication (SCA)](https://adyen-preview.mintlify.site/business-accounts/implement-sca.md). Integrate one of two ways: redirect or QR code. The QR code method requires your app to have a built-in QR reader that sends the raw QR information directly to the endpoint. Ensure your platform's user interface and experience (UI/UX) follows iDEAL's UX and regulatory standards in the [Payment screen requirements](#payment-screen-requirements) section. Provide the specific URLs for the [required redirect URLs](#configure-required-redirect-urls) to Adyen contact. Provide your Adyen contact with a platform logo between (34–48) x 34 px. |

## iDEAL for A2A payments

After you have integrated iDEAL for A2A payments, business account users can select iDEAL as a payment method during checkout. The payment flow redirects users to your platform, where they select their Adyen business account, complete a Strong Customer Authentication (SCA) process, and then authorize the payment.

For platforms, this means faster payments, fewer dependencies on external banks, and a smoother user experience.

### How users complete SCA using your platform

To complete the checkout process, your user must use your platform to complete SCA. How your user completes SCA depends on the device that they are using:

### Redirection

Users are redirected from the checkout to your platform's app or website to authorize the payment. The user flow is as follows:

#### Mobile (App-to-app)

1. The user starts the checkout on their mobile device, the mobile browser displays a "Select your bank" screen.
2. The user must select **Adyen** from the list, followed by selecting your platform.
3. The mobile browser opens your platform's app.
4. The user authorizes the payment within your app and is then automatically redirected back to the checkout in their mobile browser.

#### Desktop computer

1. The user starts the checkout on their desktop computer, the desktop browser displays a "Select your bank" screen.
2. The user selects **Adyen** from the list of banks on their desktop browser, followed by selecting your platform.
3. The desktop browser opens your platform's web login page.
4. The user authorizes the payment on the web page and is then automatically redirected back to the checkout in their desktop browser.

### QR scan

Users scan an iDEAL QR code on their desktop to authorize the payment via your mobile app. The user flow is as follows:

#### Desktop computer

1. The user scans the iDEAL QR code displayed in the desktop browser using the QR reader within their mobile app.
2. This transfers the authorization session from the desktop computer to the mobile device.
3. After authorizing the payment, your mobile app must only show a success or confirmation screen.
4. Do not redirect the user from the mobile app to the checkout page. The desktop browser automatically detects the completed payment and handles the redirection to the checkout page.

## How it works

The typical iDEAL integration flow with Adyen is as follows:

1. **Checkout**: The user initiates an iDEAL payment at the checkout page.
2. **Select bank**: The user is presented with an iDEAL screen where they can choose to scan a QR code or select a bank. If they choose to select a bank, they must select **Adyen** from the list of banks.
3. **Select platform**: The user is redirected to a platform selection page, located at the `payment_redirect_url` you provided in the [configure required redirect URLs](#configure-required-redirect-urls) step. From there, they must choose your platform from a list of all supported options. To automate this process, you can have users scan a QR code from your app.
4. **Log in**: The user must authenticate themselves on your platform.
5. **Show details**: The user is shown the details of the payment, prompted to authorize the transaction, and potentially select a source balance account (if multiple exist).
6. **Authorize**: The user authorizes the payment using Strong Customer Authentication (SCA).
7. **Result**: Upon successful payment or cancellation, the user is redirected back to the platform's page. The specific URL for this final redirection is returned by the `/payments/confirm` endpoint for success cases and the `/payments/cancel` endpoint for cancellations. The platform then displays the payment outcome, such as "Payment successful" to the user.

The following tabs show example images of the screens that the user sees at each step of the flow.

> [tab] Checkout
>
> [![initial checkout](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-checkout.png)](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-checkout.png)

> [tab] Select bank
>
> [![select bank](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-select-bank.png)](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-select-bank.png)

> [tab] Select platform
>
> [![select platform](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-select-platform.png)](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-select-platform.png)

> [tab] Log in
>
> [![login to platform](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-login-platform.png)](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-login-platform.png)

> [tab] Show details
>
> [![show details of payment](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-show-details-payment.png)](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-show-details-payment.png)

> [tab] Authorize
>
> [![authorize payment](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-authorize-payment.png)](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-authorize-payment.png)

> [tab] Result
>
> [![payment result](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-payment-result.png)](https://docs.adyen.com/user/pages/reuse/pfs-business-accounts/ideal-integration-issuing/ideal-payment-result.png)
>
> ### Integration steps
>
> Follow these steps to implement an iDEAL integration:
>
> 1. [Configure required redirect URLs](#configure-required-redirect-urls)
> 2. [Retrieve payment information](#retrieve-payment-information)
> 3. [Check SCA eligibility](#check-sca-eligibility)
> 4. [Initiate SCA payment confirmation](#initiate-sca-payment-confirmation)
> 5. [Authenticate user](#authenticate-user)
> 6. [Complete SCA payment confirmation](#complete-sca-payment-confirmation)
> 7. [Cancel a payment](#cancel-a-payment)
> 8. [iDEAL profile endpoints](#ideal-profile-endpoints)
>
> ## Configure required redirect URLs
>
> To enable redirection for A2A payment and authentication to your platform, you must configure redirect URLs on your platform.
>
> 1. Configure the following redirect URLs on your platform:
>
>    * `payment_redirect_url`: This is where Adyen sends users after they select your platform from Adyen's platform selection page. This URL should be configured to:
>
>      * Require the user to log in with their credentials.
>      * Accept a `payload` query parameter, which is then used in the `/payments/details` endpoint.
>      * Redirect the user to a payment page that displays the transaction details for authorization.
>    * `authenticate_redirect_url`: Adyen will use this URL to redirect the user to your platform if iDEAL requests user authentication. For details, see the [iDEAL profile authenticate endpoint](#authenticate) section.
> 2. Provide the specific URLs for these endpoints to Adyen as part of your integration setup.
>
>    Both redirect URLs must support HTTPS and be capable of handling query parameters containing transaction context.
>
> ## Retrieve payment information
>
> Retrieve the iDEAL transaction information before authorization begins. This is done in two situations: after the user scans the payment QR code, or after they are redirected to your `payment_redirect_url` and have logged in.
>
> 1. From your server, make a POST `/payments/details` request specifying the following parameters:
>
>    | Parameter | Location | Required | Applies to | Description |
>    | - | - | - | - | - |
>    | `method` | Body | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | All | The payment method this payment is from. Set to `ideal`. |
>    | `source` | Body | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | `method: ideal` | The source that was used to obtain the payload. Possible values include `redirect` or `qr`. |
>    | `payload` | Body | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | `method: ideal` | The payment payload is an identifier for the payment. It's generated by iDEAL and provided in two ways: as the content of a QR code or as a query parameter during a redirect. |
>
>    The following example shows a request for retrieving transaction information.
>
>    **Retrieve transaction information**
>
>    ```bash theme={null}
>    curl --location --request POST 'https://balanceplatform-api-test.adyen.com/a2aissuer-api/v1/payments/details' \
>    --header 'Content-Type: application/json' \
>    --header 'x-api-key: ADYEN-API-KEY' \
>    --data '{
>        "method": "ideal",
>        "source": "redirect",
>        "payload": "https://ext.tx.ideal.nl/2/A7AFBMA3QHGB5HFNU7SAGEBYFYI?sig=BGBCQEIAE3ECSXSQQMPPFFSG3YNHOS2WOHG7IP67A3LNOGIRN2JIPD455NABCCAGZZSV5OJMARVPO3TIDDU63USPSKU7VRKOKA6VQK2BTXOGJRAY5QM"
>    }'
>    ```
>
> 2. In the response, note the `token` and other transaction details. You will need this `token` in the [confirm a payment](#initiate-sca-payment-confirmation) or [cancel a payment](#cancel-a-payment) step. The response also contains the specific details of the transaction. See the details in the following fields:
>
>    | Parameter | Description |
>    | - | - |
>    | `token` | A unique, short-lived identifier for a pending transaction. Its validity period depends on the payment provider; for iDEAL, it's typically around 15 minutes. It is used to reference the specific payment in subsequent `/payments/confirm` or `/payments/cancel` endpoint requests. |
>    | `value` | The numerical value of the amount. |
>    | `currency` | Currency of a monetary amount. |
>    | `counterparty` | An object containing information about the counterparty that will receive the funds. |
>    | `counterparty.accountHolder` | Details about the account holder who will receive the funds. |
>    | `fullName` | The full name of the `counterparty`'s account holder. |
>    | `type` | The type of account identification. |
>    | `iban` | The IBAN of the bank account. |
>    | `description` | A description of the transaction. |
>    | `expiresAt` | The timestamp when the transaction token expires. |
>
>    **Response**
>
>    ```json theme={null}
>    {
>      "token": "eyJ0b2tlbiI6InNvbWVUb2tlbiJ9",
>      "details": {
>        "amount": {
>          "value": 10,
>          "currency": "EUR"
>        },
>        "counterparty": {
>          "accountHolder": {
>            "fullName": "The Dutch CookieShop Company N.V."
>          },
>          "accountIdentification": {
>            "type": "iban",
>            "iban": "NL44RABO0123456789"
>          }
>        },
>        "description": "26d1f6ca-a55a-4923-b189-e9558b4fb7cd",
>        "expiresAt": "2026-04-17T15:36:22.77Z"
>      }
>    }
>    ```
>
> If you encounter any errors, see [error codes and messages](#error-codes-and-messages).
>
> ## Check SCA eligibility
>
> Before confirming the payment, first check device eligibility. The following tabs explain how to check for SCA eligibility and initiate authentication using Kotlin, Swift, or JavaScript.

> [tab] Android (Kotlin)
>
> To check if the Android device is eligible for SCA:
>
> 1. Initiate the `AdyenAuthentication` class in your Activity or Fragment.
>
>    **Initiate authentication**
>
>    ```kotlin theme={null}
>    private lateinit var adyenAuthentication: AdyenAuthentication
>
>    override fun onCreate(savedInstanceState: Bundle?) {
>        super.onCreate(savedInstanceState)
>        adyenAuthentication = AdyenAuthentication(this)
>    }
>    ```
>
> 2. Check if SCA is available on the device.
>
>    **Check SCA eligibility**
>
>    ```kotlin theme={null}
>    lifecycleScope.launch {
>        val availabilityResult: AvailabilityResult = adyenAuthentication.checkAvailability()
>        if (availabilityResult is AvailabilityResult.Available) {
>            availabilityResult.sdkOutput
>        }
>    }
>    ```
>
>    The function returns an `sdkOutput`.
>
> 3. Pass the `sdkOutput` to your server.

> [tab] iOS (Swift)
>
> To check if the iOS device is eligible for SCA:
>
> 1. Initialize the `AuthenticationService` class.
>
>    **Initialize authentication service**
>
>    ```swift theme={null}
>    let configuration = AuthenticationService.Configuration(
>        localizedRegistrationReason: registrationReason,
>        localizedAuthenticationReason: authenticationReason,
>        appleTeamIdendtifier: appleTeamIdentifier
>    )
>    let authenticationService = AuthenticationService(configuration: configuration)
>    ```
>
> 2. Check if SCA is available on the device.
>
>    **Check SCA eligibility**
>
>    ```swift theme={null}
>    let sdkOutput = try authenticationService.checkSupport()
>    /// send the sdkOutput to your backend
>    ```
>
>    The function returns an `sdkOutput`.
>
> 3. Pass the `sdkOutput` to your server.

> [tab] Web (JavaScript)
>
> To check if the web browser on your web-enabled device is eligible for SCA:
>
> 1. Import the node package in your application.
>
>    `RelyingPartyName` is the name the user will be presented with when creating or validating a `WebAuthn` operation. We recommend that the value of the `RelyingPartyName` be the merchant name or the URL domain.
>
>    **Import web sdk and initiate authentication**
>
>    ```javascript theme={null}
>    import ScaWebauthn from '@adyen/bpscaweb';
>
>    const scaWebauthn = ScaWebauthn.create({ 
>        relyingPartyName: 'merchant',
>    });
>
>    const sdkOutput = await scaWebauthn.checkAvailability().catch((error) => /* SCA_UNAVAILABLE error*/);
>    ```
>
>    If the user's browser supports SCA, the function returns `sdkOutput` to exchange in requests to the server. If SCA is not supported, the method throws an `SCA_UNAVAILABLE` error.
>
> 2. Pass the `sdkOutput` to your server.
>
> You will use the `sdkOutput` when [confirming the payment](#initiate-sca-payment-confirmation).
>
> ## Initiate SCA payment confirmation
>
> Confirm a payment using the `token` that you obtained when you [retrieved the payment information](#retrieve-payment-information). The operation is secured by Strong Customer Authentication (SCA).
>
> You must complete the second `/payments/confirm` request within 10 minutes of the initial request in order to complete authentication.
>
> 1. Make an initial POST `/payments/confirm` request specifying the following parameters:
>
>    | Parameter | Location | Required | Description |
>    | - | - | - | - |
>    | `WWW-Authenticate` | Header | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | `SCA realm`: **A2APayment**. `auth-param1`: Value of **sdkOutput** from the [Check SCA eligibility](#check-sca-eligibility) step. |
>    | `token` | Body | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A unique, short-lived identifier for a pending transaction. Its validity period depends on the payment provider; for iDEAL, it's typically around 15 minutes. It is used to reference the specific payment in subsequent `/payments/confirm` or `/payments/cancel` endpoint requests. |
>    | `balanceAccountId` | Body | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Balance account ID of the account where the funds should be substracted. For example, `BA00000000000000000000000`. |
>
>    **Confirm a payment - initial request**
>
>    ```bash theme={null}
>    curl --location --request POST 'https://balanceplatform-api-test.adyen.com/a2aissuer-api/v1/payments/confirm' \
>    --header 'WWW-Authenticate: SCA realm="A2APayment" auth-param1="eyJkZXZpY2UiOiJpT1MiLCJAdHlwZSI6ImNvbS5hZHllbi53ZWJhdXRobi5lbnRpdGllcy5BdXRoZW50aWNhdGlvbkFwcERhdGEifQ=="' \
>    --header 'Content-Type: application/json' \
>    --header 'x-api-key: ADYEN-API-KEY' \
>    --data '{
>        "token":"BQABAQA2th6I0RbAQLWVNC9Q2bycAGxVf11/HT9pDXPpvVX1QwjYdvOAGLUj4lE0b9LEXLYUJ14zRzr+ETknWhWZ1Y7RF3L6ckElVX+CmQ8mYI9cJ7ADvqiLDMV2daxtmsAeT7BjV7GwX1rwGPsY6FXeEI9MH6PI6nSklPbbsA8adF8Y1EUJqeXWMqWDW+ddqDylfWF8uy5zQPBsRsU64zsP+COeWxJEpYSodPIGTSbpACi8+81Xx5sTBROpnNrslnQBlUEFk9hlnCc3XE5ZMTEyor3XVzjfgjsKEHN9PzewMo7dC+loHL5FEk0r5iYZJoPwT47+Vsj8FFLAA//ywhuDjT8GDMfFb3X5pwXSMPtsEgAAnEnm+6Y/LClpYZ/CBNW1JE1h6LWYvUn+V3zueak/Qwk0EcJWDo5kC0QSRhaP+LeRgWwOMCpVGx6hD/tfa4EM3Q4uwoo7+4jiuw7BdPkvFyljYtV6UJqbZguCmYMSJQ09hXVvc8L3gz+PvL3xP6berp8oiKMmC5NjzfQdbdLA9u/0pyOIbmkx9LGr3wVRgZqsfx9Bp3H/mqZOA4JdrKEL8iA/yamOWxlYdwj0SpDZWPjvJoyBPxIIq3YgLuAHSBwU0lHgPEyXHJUrh6SCVA==",
>        "balanceAccountId": "BA32272223222K5JF79DL53KQ"
>
>    }'
>    ```
>
> 2. The API returns a `HTTP 401 - Unauthorized response` with the message "User needs to perform SCA." The response headers include the following parameters:
>
>    | Parameter | Description |
>    | - | - |
>    | `WWW-Authenticate` | The header containing the SCA challenge. |
>    | `auth-param1` | An attribute within the `WWW-Authenticate` header that holds the `sdkInput` value. |
>    | `sdkInput` | The SCA challenge that you must pass to the user's device for authentication. |
>
>    Here is an example of the response header:
>
>    **Response header**
>
>    ```json theme={null}
>    "WWW-Authenticate: SCA realm="A2APayment" auth-param1="eyJ2YWx1ZSI6InNvbWUgb3BhcXVlIGpzb24gd2l0aCB0aGUgU0NBIGNoYWxsZW5nZSJ9""
>    ```
>
> 3. Pass `auth-param1` to the SDK as `sdkInput`.
>
> ## Authenticate user
>
> To authenticate your user with the Authentication SDK:
>
> 1. Trigger the SDK to start user authentication and pass the `auth-param1` value from [the previous step](#initiate-sca-payment-confirmation) as `sdkInput`.

> [tab] Android (Kotlin)
>
> **Authenticate with SCA SDK**
>
> ```kotlin theme={null}
> lifecycleScope.launch {
>         if (adyenAuthentication.hasCredential("sdkInput")) {
>             // Authenticate existing credential
>             val authenticationResult: AuthenticationResult = adyenAuthentication.authenticate("sdkInput")
>             when (authenticationResult) {
>                 is AuthenticationResult.AuthenticationSuccessful -> {
>                     authenticationResult.sdkOutput
>                 }
>                 is AuthenticationResult.Canceled -> {
>                     // User cancelled the authentication flow
>                 }
>                 is AuthenticationResult.Error -> {
>                     // Unexpected error
>                     authenticationResult.errorMessage
>                 }
>                 is AuthenticationResult.AuthenticationError -> {
>                     // FIDO API Error
>                     authenticationResult.authenticationError
>                 }
>             }
>         } else {
>             // None of the existing credentials exist in this device
>         }
>     }
> ```
>
> If successful, the SDK generates a Base64-encoded `sdkOutput` data blob.

> [tab] iOS (Swift)
>
> **Authenticate with SCA SDK**
>
> ```swift theme={null}
> delegatedAuthenticationSession.authenticate(withBase64URLString: sdkInput) { [weak self] result in
>         switch result {
>         case let .success(sdkOutput):
>             /// send the sdkOutput to the backend
>         case let .failure(error):
>             /// authentication failed
>         }
>     }
> ```
>
> The SDK uses the [Apple DeviceCheck framework](https://developer.apple.com/documentation/devicecheck) to generate a Base64-encoded `sdkOutput` data blob. To do this, the SDK authenticates the user using Touch ID, Face ID, or the device passcode. To enable Face ID support, add `NSFaceIDUsageDescription` to `Info.plist`.

> [tab] Web (JavaScript)
>
> **Authenticate with SCA SDK**
>
> ```javascript theme={null}
> const sdkOutput = await scaWebauthn.authenticate(sdkInput);
> ```
>
> If successful, the SDK generates a Base64-encoded `sdkOutput` data blob.
>
> 2. Pass `sdkOutput` to your server.
>
> You will use the sdkOutput when [completing the payment confirmation](#complete-sca-payment-confirmation).
>
> ## Complete SCA payment confirmation
>
> After completing the SCA challenge, you can finalize the payment by sending a POST request to the `/payments/confirm` endpoint. This request submits the `sdkOutput` from the solved challenge confirming the transaction.
>
> 1. Make a second POST `/payments/confirm` request specifying the following parameters:
>
>    | Parameter | Location | Required | Description |
>    | - | - | - | - |
>    | `WWW-Authenticate` | Header | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | `SCA realm`: **A2APayment**. `auth-param1`: Value of **sdkOutput** from the [Authenticate user](#authenticate-user) step. |
>    | `token` | Body | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A unique, short-lived identifier for a pending transaction. Its validity period depends on the payment provider; for iDEAL, it's typically around 15 minutes. It is used to reference the specific payment in subsequent `/payments/confirm` or `/payments/cancel` endpoint requests. |
>    | `balanceAccountId` | Body | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Balance account ID of the account where the funds should be substracted. For example, `BA00000000000000000000000`. |
>
>    **Confirm a payment - final request**
>
>    ```bash theme={null}
>    curl --location --request POST 'https://balanceplatform-api-test.adyen.com/a2aissuer-api/v1/payments/confirm' \
>    --header 'WWW-Authenticate: SCA realm="A2APayment" auth-param1="eyJhc3NlcnRpb25PYmplY3QiOiJ2Mmx6YVdkdVlYUjFjbVZZUnpCRkFpQnJsWTlqUHBraWI3OG1hd2RRUDdKei9oSlI4QWVCYnVsQzBHNExTcStrTGdJaEFNWEF5anVlbDJPQ1JQZ1lybktZbklwZS9STkJ3dFRTV2dXOGd0c0I5S1pIY1dGMWRHaGxiblJwWTJGMGIzSkVZWFJoV0NVZ1cwOTd6b2lidDNTK3VVcm5iWHZROW82VlhFOWR0amdVTVpCMUtkZDFJVVVBQUFBQS93PT0iLCJjcmVkZW50aWFsSWQiOiJUZGwyOEZaY3lhblBuRVJHRkFmSytUcGJoc2tWSnh6YzFDZys3Tzd2aDRBPSIsInJwSWQiOiJCMk5ZU1M1OTMyLmNvbS5hZHllbi5BZHllbjNEUzJEZW1vIiwicHNwUmVmZXJlbmNlIjoiQlNDUjQyOTY4MjIzMjIzUDVNVDdCNTM1TTM0RlBUX18wMC0yM2ViYTgzN2Y5ZDM2OGE3OWU4ODBmM2JlNGQxNTAzZC00YWI1MWE0ZGNmYjc0NzM1LTAxIiwidHJhY2luZyI6IjAwLTIzZWJhODM3ZjlkMzY4YTc5ZTg4MGYzYmU0ZDE1MDNkLTRhYjUxYTRkY2ZiNzQ3MzUtMDEiLCJkZXZpY2UiOiJpT1MifQ=="' \
>    --header 'Content-Type: application/json' \
>    --header 'x-api-key: ADYEN-API-KEY' \
>    --data '{
>        "token":"BQABAQA2th6I0RbAQLWVNC9Q2bycAGxVf11/HT9pDXPpvVX1QwjYdvOAGLUj4lE0b9LEXLYUJ14zRzr+ETknWhWZ1Y7RF3L6ckElVX+CmQ8mYI9cJ7ADvqiLDMV2daxtmsAeT7BjV7GwX1rwGPsY6FXeEI9MH6PI6nSklPbbsA8adF8Y1EUJqeXWMqWDW+ddqDylfWF8uy5zQPBsRsU64zsP+COeWxJEpYSodPIGTSbpACi8+81Xx5sTBROpnNrslnQBlUEFk9hlnCc3XE5ZMTEyor3XVzjfgjsKEHN9PzewMo7dC+loHL5FEk0r5iYZJoPwT47+Vsj8FFLAA//ywhuDjT8GDMfFb3X5pwXSMPtsEgAAnEnm+6Y/LClpYZ/CBNW1JE1h6LWYvUn+V3zueak/Qwk0EcJWDo5kC0QSRhaP+LeRgWwOMCpVGx6hD/tfa4EM3Q4uwoo7+4jiuw7BdPkvFyljYtV6UJqbZguCmYMSJQ09hXVvc8L3gz+PvL3xP6berp8oiKMmC5NjzfQdbdLA9u/0pyOIbmkx9LGr3wVRgZqsfx9Bp3H/mqZOA4JdrKEL8iA/yamOWxlYdwj0SpDZWPjvJoyBPxIIq3YgLuAHSBwU0lHgPEyXHJUrh6SCVA==",
>        "balanceAccountId": "BA32272223222K5JF79DL53KQ"
>
>    }'
>    ```
>
> 2. Verify that the response contains a `success` object indicating the transaction was successful, which contains the related links. See the details in the following fields:
>
>    | Parameter | Description |
>    | - | - |
>    | `links` | An object containing one or more links related to the next steps in the payment flow. |
>    | `success` | An object containing the URL that the user should be redirected to in order to complete the "success" path of the payment confirmation. |
>    | `href` | The URL string to which the user should be redirected. |
>
>    **Response**
>
>    ```json theme={null}
>    {
>        "links": {
>            "success": {
>                "href": "https://checkoutshopper-test.adyen.com/checkoutshopper/checkoutPaymentReturn?gpid=GPEB06E7D8AC9D9AB5&pspEchoData=ZLLRBHX6KWMWSD75%3A821204%3Aj7igk8cQHA5rQ1fetWe8Yyn0%2BOc%3D"
>            }
>        }
>    }
>    ```
>
>    For QR code flows initiated on a desktop computer, do not redirect the user from the mobile app back to the platform. The desktop browser automatically detects the completed payment and handles the redirection to the checkout page.
>
> If you encounter any errors, see [error codes and messages](#error-codes-and-messages).
>
> ## Cancel a payment
>
> Use the `/payments/cancel` endpoint to cancel a pending payment that has not yet expired or been confirmed. A payment is considered canceled when the `redirectUrl` in the API response is opened.
>
> 1. Make a POST `/payments/cancel` request specifying the following parameters:
>
>    | Parameter | Location | Required | Description |
>    | - | - | - | - |
>    | `token` | Body | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A unique, short-lived identifier for a pending transaction. Its validity period depends on the payment provider; for iDEAL, it's typically around 15 minutes. It is used to reference the specific payment in subsequent `/payments/confirm` or `/payments/cancel` endpoint requests. |
>
>    **Cancel a payment**
>
>    ```bash theme={null}
>    curl --location --request POST 'https://balanceplatform-api-test.adyen.com/a2aissuer-api/v1/payments/cancel' \
>    --header 'Content-Type: application/json' \
>    --header 'x-api-key: ADYEN-API-KEY' \
>    --data '{
>        "token":"BQABAQA2th6I0RbAQLWVNC9Q2bycAGxVf11/HT9pDXPpvVX1QwjYdvOAGLUj4lE0b9LEXLYUJ14zRzr+ETknWhWZ1Y7RF3L6ckElVX+CmQ8mYI9cJ7ADvqiLDMV2daxtmsAeT7BjV7GwX1rwGPsY6FXeEI9MH6PI6nSklPbbsA8adF8Y1EUJqeXWMqWDW+ddqDylfWF8uy5zQPBsRsU64zsP+COeWxJEpYSodPIGTSbpACi8+81Xx5sTBROpnNrslnQBlUEFk9hlnCc3XE5ZMTEyor3XVzjfgjsKEHN9PzewMo7dC+loHL5FEk0r5iYZJoPwT47+Vsj8FFLAA//ywhuDjT8GDMfFb3X5pwXSMPtsEgAAnEnm+6Y/LClpYZ/CBNW1JE1h6LWYvUn+V3zueak/Qwk0EcJWDo5kC0QSRhaP+LeRgWwOMCpVGx6hD/tfa4EM3Q4uwoo7+4jiuw7BdPkvFyljYtV6UJqbZguCmYMSJQ09hXVvc8L3gz+PvL3xP6berp8oiKMmC5NjzfQdbdLA9u/0pyOIbmkx9LGr3wVRgZqsfx9Bp3H/mqZOA4JdrKEL8iA/yamOWxlYdwj0SpDZWPjvJoyBPxIIq3YgLuAHSBwU0lHgPEyXHJUrh6SCVA=="
>    }'
>    ```
>
> 2. The response for a successful cancellation contains a `links` object. This object has a `cancel` field, which includes a `href` property that specifies a redirect URL. See the details in the following fields:
>
>    | Parameter | Description |
>    | - | - |
>    | `links` | An object containing one or more links related to the next steps in the payment flow. |
>    | `cancel` | An object containing the URL that the user should be redirected to in order to complete the "cancel" path of the payment. |
>    | `href` | The URL string to which the user should be redirected. |
>
>    **Response**
>
>    ```json theme={null}
>    {
>        "links": {
>            "cancel": {
>                "href": "https://ext.pay.ideal.nl/transactions/HTTPS%3A%2F%2FEXT.TX.IDEAL.NL%2F2%2FA2JXWE33UOOXZXPMJBMV46AR7U4/cancellation-and-merchant-redirection?sig=BGBCAEIDYUXOMFC3ETVAYBKLQYCELNFFXJXYP5HI6CR7VNFEKDPYH6K7XMQBCA3WTS2IIH5UT7C5BQDIMLDO4CANJ2YY3VEE422LUFUNIQRGLDGZU"
>            }
>        }
>    }
>    ```
>
> If you encounter any errors, see [error codes and messages](#error-codes-and-messages).
>
> ## Payment screen requirements
>
> All screens related to the iDEAL flow (payment, profile, and authentication) must comply with iDEAL's UX and regulatory standards. To comply with these standards, your screens must display the following:
>
> * **iDEAL/WERO logo**: show the iDEAL logo clearly on all screens to indicate the transaction is using iDEAL as the payment method.
> * **Amount and currency**: the full payment amount and currency.
> * **Payee (recipient)**: clearly identify who is recieving the payment.
> * **Payment description**: include a brief, user-friendly description of the transaction.
> * **Account switch option**: let users switch balance accounts if needed.
> * **Confirmation screen with result**: For example, in case of success, display a confirmation screen should display with all the transaction details again. These details must include the selected bank account (in IBAN format), the iDEAL payment method, amount and currency, and description.
>
> ### Design
>
> Adyen requires early access to the wireframes for the iDEAL flow screens within your app or web application. Share these with your Adyen contact as soon as they are available and before you go live, so that they can be validated and you can be informed of any necessary changes early in your development process.
>
> ## iDEAL profile endpoints
>
> As an optional feature, you can allow users to create and manage their iDEAL profiles. This lets them securely store payment and delivery information, enabling them to make future payments with a single click.
>
> These endpoints are not required for standard iDEAL payment processing but provide a way to interact with the profile management features, offering a faster and more convenient checkout experience for your users. For more details, see the [iDEAL Profile FAQ](https://ideal.nl/en/products/faq-ideal-profiel).
>
> ### Create an iDEAL profile
>
> To create a new iDEAL profile:
>
> 1. Make a POST `/ideal/profile/register` request specifying the following parameters:
>
>    | Parameter | Required | Description |
>    | - | - | - |
>    | `accountHolderId` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The unique identifier for an account holder. |
>    | `paymentInstrumentIds` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The IDs for the payment instruments to be associated with the iDEAL profile. |
>
>    **Create a new profile**
>
>    ```bash theme={null}
>    curl --location --request POST 'https://balanceplatform-api-test.adyen.com/a2aissuer-api/v1/ideal/profile/register' \
>    --header 'Content-Type: application/json' \
>    --header 'x-api-key: YOUR_API_KEY' \
>    --data '{
>        "accountHolderId": "AH00000000000000000000001",
>        "paymentInstrumentIds": ["PI00000000000000000000001", "PI00000000000000000000002"]
>    }'
>    ```
>
> 2. The response includes a `redirectUrl` object with `href` property. This `href` specifies a redirect URL. See the details in the following fields:
>
>    | Parameter | Description |
>    | - | - |
>    | `redirectUrl` | A short-lived URL that redirects the user to the iDEAL profile registration page. You must redirect the user to this URL within 5 seconds of receiving the response. |
>    | `href` | The URL string to which the user should be redirected. |
>
>    **Response**
>
>    ```json theme={null}
>    {
>      "redirectUrl": {
>        "href": "https://ext.profile.ideal.nl/session/eyJraWQiOiJpcHIxIiwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJzdWIiOiJQUk9GSUxFOnpEU0JyMmlxVjVjekxyb3BuaUNZVDRUVVRaeVpGM21vIiwic3ViX2luZm8iOiJBRFlCTkwyQSIsImV4cCI6MTc1NTg1OTEzOCwicmVzb3VyY2UiOiJQQUdFOlBST0ZJTEVfUkVHSVNUUkFUSU9OX1BBR0VfVjIiLCJqdGkiOiJjODBhYTA3MS0zMzMwLTRkNTctYWNmMy0xNjkxMDk0ZTE1MjMifQ.XYL8uGHe6yRVL1AMxzH-BhecY3W2nuJZa6-bnc-WjQ8So8PCMm7NQ2_cWGvLa8hkiEiT66Nq_pRKpZL-aJgAiA"
>      }
>    }
>    ```
>
> 3. Select the `href` URL and follow the steps to create your iDEAL profile.
>
> ### Generate a profile management URL
>
> The iDEAL profile management page allows your users to edit their iDEAL profile. For example, they can manage personal details, linked accounts, and delivery addresses, or view trusted webshops. They can also use this page to delete their profile entirely.
>
> To generate a URL for your user's iDEAL profile management page:
>
> 1. Make a POST `/ideal/profile/auth-link` request specifying the following parameters:
>
>    | Parameter | Required | Description |
>    | - | - | - |
>    | `accountHolderId` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The unique identifier for an account holder. |
>
>    **Generate a profile management URL**
>
>    ```bash theme={null}
>    curl --location --request POST 'https://balanceplatform-api-test.adyen.com/a2aissuer-api/v1/ideal/profile/auth-link' \
>    --header 'Content-Type: application/json' \
>    --header 'x-api-key: YOUR_API_KEY' \
>    --data '{ "accountHolderId": "AH00000000000000000000001" }'
>    ```
>
> 2. The response includes a `redirectUrl` object with `href` property. This `href` specifies a redirect URL. See the details in the following fields:
>
>    | Parameter | Description |
>    | - | - |
>    | `redirectUrl` | A short-lived URL that redirects the user to the iDEAL profile registration page. You must redirect the user to this URL within 5 seconds of receiving the response. |
>    | `href` | The URL string to which the user should be redirected. |
>
>    **Response**
>
>    ```json theme={null}
>    {
>      "redirectUrl": {
>        "href": "https://ext.profile.ideal.nl/session/eyJraWQiOiJpcHIxIiwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJzdWIiOiJQUk9GSUxFOkI2NDR6Z0RzalU5bWNaWmdwaE53Y3JLeXRmMDh5aVZHIiwic3ViX2luZm8iOiJBRFlCTkwyQSIsImV4cCI6MTc1NTg1ODk0NSwicmVzb3VyY2UiOiJQQUdFOlBST0ZJTEVfTUFOQUdFTUVOVF9QQUdFIiwianRpIjoiOWQyYmM4YTItZmZjMS00NzkyLTljNTQtNmEzNGQ1NzAyNGU2In0.b6jvGX0IXtMMe3Vjn3cCVSkikTKeZzEBsaG-7_ZG9xqvFANS4_IulZ57vR-6Lvd1fZ8PCTHOw1-ZH2gtsmHfZQ"
>      }
>    }
>    ```
>
> ### Authenticate
>
> To generate a URL after a user has been authenticated, typically via Multi-Factor Authentication (MFA) use the `/ideal/profile/authenticate` endpoint. This is used for actions such as changing profile details or to unmask sensitive payment information.
>
> 1. Make a POST `/ideal/profile/authenticate` request specifying the following parameters:
>
>    | Parameter | Required | Description |
>    | - | - | - |
>    | `accountHolderId` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The unique identifier for an account holder. |
>    | `payload` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A payload initiated by iDEAL to complete the authentication process. It's generated by iDEAL and provided in two ways: as the content of a QR code or as a query parameter during a redirect. |
>
>    **Create a new profile**
>
>    ```bash theme={null}
>    curl --location --request POST 'https://balanceplatform-api-test.adyen.com/a2aissuer-api/v1/ideal/profile/authenticate' \
>    --header 'Content-Type: application/json' \
>    --header 'x-api-key: {ADYEN_API_KEY}' \
>    --data '{
>        "accountHolderId": "AH00000000000000000000001",
>        "payload": "https://AU.IDEAL.NL/2/RECOGNIZE_PROFILE_BY_CIT/I45ECVKSKI4TANRUIRCFIMSXGFJFOORVJNFEMQ2VIRATUMJXGU2DQOJYGY4TS?sig=BGBDAEIIAUVQ5SYITU4JVDF3URUJ6AQSHXYDDBRLEP3EN5DFNK3TPDHFA75XQEIIAYMT7AZMHUDZKRNQS4OMSRCJ5NOCX4JG2GFN5U44AIC6EADUOEDFA"
>    }'
>    ```
>
> 2. The response includes a `redirectUrl` object with `href` property. This `href` specifies a redirect URL. See the details in the following fields:
>
>    | Parameter | Description |
>    | - | - |
>    | `redirectUrl` | A short-lived URL that redirects the user to the iDEAL profile registration page. You must redirect the user to this URL within 5 seconds of receiving the response. |
>    | `href` | The URL string to which the user should be redirected. |
>
>    **Response**
>
>    ```json theme={null}
>    {
>      "redirectUrl": {
>        "href": "https://ext.profile.ideal.nl/auth/session/eyJraWQiOiJpcGEtZXh0IiwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJzdWIiOiJTRVNTSU9OX1BBR0U6Tk9ORSIsImV4cCI6MTc1NTg1OTE0OCwicmVzb3VyY2UiOiJBVVRIX1JFUVVFU1Q6SFRUUFM6Ly9BVS5JREVBTC5OTC8yL1JFQ09HTklaRV9QUk9GSUxFX0JZX0NJVC9JNDVFNE1aWkpSRlVFVVNOSlU0VlVTMlFHNU5GTU9TWUpWS1RBVFNMS0kyVFVNSlhHVTJUUU5KWkdNM1RHIiwianRpIjoiODY0MDEwOWEtOGEyMS00OWEwLWE0YTUtZTlmNmJiMDdjYzdhIiwiYXV0aG9yaXRpZXMiOlsiU0VUVVBfUFJPRklMRV9BVVRIX0NPT0tJRSJdfQ.dM8DM1RUaa0o9rdvOyBLi2S1y1-nDOXlUdGUgIbPH0AJUrMI9Lnc4Cmz1_30NcwN0cJzlWyX5l_ni3NmFrLBfg"
>      }
>    }
>    ```
>
> ## Error codes and messages
>
> These are the common error codes. See the descriptions below for details.
>
> #### A2A payment errors
>
> | Error code | HTTP status | Description |
> | - | - | - |
> | `1069_003` | 400 Bad Request | The received token is invalid, malformed, or expired. |
> | `1069_010` | 400 Bad Request | The received payload is invalid, malformed, or expired. |
> | `1069_004` | 422 Unprocessable Entity | Payment has expired and is no longer available. |
> | `1069_005` | 422 Unprocessable Entity | The payment has been locked by another request and can no longer be processed. This may happen if the payment has already been confirmed, canceled, or is currently being processed by another simultaneous request. |
> | `1069_006` | 422 Unprocessable Entity | An unprocessable error occurred related to iDEAL. |
> | `1069_002` | 500 Internal Server Error | An unexpected error occurred related to iDEAL. |
> | `1069_001` | 500 Internal Server Error | A generic server-side error occurred. |
>
> #### iDEAL profile errors
>
> | Error code | HTTP status | Description |
> | - | - | - |
> | `1069_007` | 422 Unprocessable Entity | The provided account already has a registered iDEAL profile. |
> | `1069_008` | 422 Unprocessable Entity | The provided account does not have a registered iDEAL profile. |
> | `1069_009` | 422 Unprocessable Entity | The authenticate payload has expired and is no longer available. |
>
> ## See also
>
> * [Track transactions](https://adyen-preview.mintlify.site/business-accounts/transactions)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.