- METHOD TYPEReal-Time Bank Transfer
- PAYMENTS
- PAYOUTS
- REFUNDS
- RECURRING
Introduction
The Open Banking and Instant Open Banking APMs enable customers of participating banks in the EU and certain other European countries to make payments using their bank accounts.
Supported Countries
- Austria
- Belgium
- Denmark
- Estonia
- Finland
- France
- Germany
- Hungary
- Ireland
- Italy
- Latvia
- Lithuania
- Luxembourg
- Netherlands
- Norway
- Poland
- Portugal
- Romania
- Spain
- Sweden
- United Kingdom
Supported Currencies
- EUR
- GBP
- PLN
Integrations
REST API 1.0
Collecting Payment Details
To retrieve a dynamic list of banks and APMs linked to the merchant account for a country:
- The customer enters the amount the customer wants to pay on the merchant payment page, selects ‘Online Bank Transfer‘ or ‘Instant Bank Transfer’, and then selects ‘Pay’ or the equivalent option.
- Send a ‘/getSessionToken‘ request to generate a
'sessionToken'. - Send a
/getMerchantPaymentMethods'request, including the relevant'countryCode'to narrow the results.
Example '/getMerchantPaymentMethods' Request
{
"sessionToken": "<sessionToken from getSessionToken>",
"merchantId": "<your merchantId>",
"merchantSiteId": "<your merchantSiteId>",
"clientRequestId": "<unique request ID in merchant system>",
"currencyCode": "USD",
"countryCode": "BE",
"type": "DEPOSIT",
"languageCode": "eng",
"timeStamp": "<YYYYMMDDHHmmss>",
"checksum": "<calculated checksum>"
}
A successful request returns the APMs and banks linked to the merchant account for the specified country.
Example '/getMerchantPaymentMethods' Response
{
"paymentMethod": "apmgw_Instant_Open_Banking",
"paymentMethodDisplayName": [],
"isDirect": "false",
"countries": [
"BE"
],
"currencies": [
"USD"
],
"fields": [
{
"name": "ob_account_number",
"type": "text",
"caption": [
{
"language": "en",
"message": "Account Number"
}
]
},
{
"name": "ob_sort_code",
"type": "text",
"caption": [
{
"language": "en",
"message": "Sort Code"
}
]
},
{
"name": "ob_iban",
"type": "text",
"caption": [
{
"language": "en",
"message": "IBAN"
}
]
},
{
"name": "instantOb_bankId",
"type": "text",
"caption": [
{
"language": "en",
"message": "Bank ID"
}
],
"listValues": [
{
"code": "ngp-bbru",
"caption": "NextGenPSD2",
"mandatoryFields": [
"ob_iban"
]
},
{
"code": "ngp-ingba",
"caption": "ING Austria",
"mandatoryFields": []
}
]
}
]
}
- Extract the banks returned for:
'apmgw_Open_Banking''apmgw_Instant_Open_Banking'
- Display the list of banks for the customer to select the bank that holds the account from which they want to pay.
The bank names are returned in'fields.listValues.caption'. - After the customer selects a bank, retrieve the fields that the customer must provide.
The required fields are returned in'fields.listValues.mandatoryFields'. The values in this array correspond to the values in'fields.name'. - After the customer enters the information required by the bank, display the amount, currency, and the following message for the customer to approve:
By pressing the deposit button, you agree to the Privacy Policy and the Terms of Nuvei’s bank connectivity provider. You will be asked by your bank to share your account details. These details will be used only when necessary, such as when processing a refund.
Output Parameters
'/getMerchantPaymentMethods' Output Parameters
| Parameter | Description | Examples |
|---|---|---|
| paymentMethod | Identifier of a Payment Method. | apmgw_Open_Banking |
| fields | A list of possible input fields required by a payment method provider for this Payment Method, as well as a list of mandatory input fields per fields.listValues value (in the form of a key-value pairs to be used to populate a dropdown input field). | - |
| fields.name | Identifier of the field. | ob_account_number ob_sort_code ob_iban ob_bank_id |
| fields.listValues | A list of values of the fields.name (to be used to populate a dropdown input field). | - |
| fields.listValues .code | Bank code used for sending the payment request. Note:For the "apmgw_online_bank_transfer" APM, the bank id parameter must be: "ob_bank_id" | ngp-bbru ngp-ingba |
| fields.listValues .caption | Bank name for display on the UI. | NextGenPSD2 ING Austria |
| fields.listValues .mandatoryFields | A list of fields.names, which are mandatory for this fields.listValues value (to be used to populate a dropdown input field). | ob_account_number ob_sort_code ob_iban |
Example 'fields' Array Structure with 'mandatoryFields'
"fields": [
"name" (String, 45),
"type" (String, 45),
"validationMessage":
["language" (String, 2), "message" (String, 400)],
"caption":
["language" (String, 2), "message" (String, 400)],
"listValues": [
"code" (String, 255),
"caption" (String),
"mandatoryFields":
[(String, 45)]
]
]
Sending a Payment Request
- Use the data entered by the customer to send a ‘/payment‘ request. Include the
'alternativePaymentMethod'class containing the relevant Open Banking parameters.- For
'paymentMethod'set to'apmgw_Instant_Open_Banking', the bank ID parameter must be'instantOb_bankId'. - For
'paymentMethod'set to'apmgw_Open_Banking', the bank ID parameter must be'ob_bank_id'.
- For
Example '/payment' Request for 'apmgw_Instant_Open_Banking' with Mandatory Parameters
{
"sessionToken": "<sessionToken from getSessionToken>",
"merchantId": "<your merchantId>",
"merchantSiteId": "<your merchantSiteId>",
"userTokenId": "<unique customer identifier in merchant system>",
"clientRequestId": "<unique request ID in merchant system>",
"clientUniqueId": "<unique transaction ID in merchant system>",
"currency": "USD",
"amount": "1",
"paymentOption": {
"alternativePaymentMethod": {
"paymentMethod": "apmgw_Instant_Open_Banking",
"instantOb_bankId": "ngp-bbru",
"ob_iban": "BE96315678901234"
}
},
"deviceDetails": {
"ipAddress": "<customer's IP address>"
},
"billingAddress": {
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]",
"country": "BE"
},
"userDetails": {
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]",
"country": "BE"
},
"timeStamp": "<YYYYMMDDHHmmss>",
"checksum": "<calculated checksum>"
}
A successful request returns a 'paymentOption.redirectUrl' for the selected bank.
Example '/payment' Response
{
"reason": "",
"orderId": "36298881",
"transactionStatus": "REDIRECT",
"clientRequestId": "GF1XTXTBM",
"internalRequestId": 17817111,
"version": "1.0",
"merchantSiteId": "126006",
"merchantId": "2502136204546424962",
"clientUniqueId": "695701003",
"errCode": 0,
"paymentOption": {
"redirectUrl": "<bank redirect URL>",
"userPaymentOptionId": "8061731",
"card": {}
},
"sessionToken": "<sessionToken>",
"userTokenId": "2J6QZH3UF9E2",
"status": "SUCCESS"
}
- Redirect the customer to the returned
'redirectUrl'so the customer can enter their credentials and complete the payment. - Allow the APM provider to process the request.
- After the transaction is processed, receive a Direct Merchant Notification (DMN) containing the transaction result at
'urlDetails.notificationUrl'. Nuvei recommends including this parameter in the'/payment'request.
Sending a Payout Request
To perform a payout, use one of the following options:
- Send a https://docs.nuvei.com/api/main/indexMain_v1_0.html?json#payout
'/payout'request. Include the'userPaymentOptionId'returned by the payment transaction. See Payouts Using an Existing UPO for an example. - Collect the account details from the deposit and use them with another payment method, such as SEPA Payouts. For example, take the IBAN from the DMN and create a SEPA Payouts
'/payout'request.
After the transaction is processed, Nuvei sends a Direct Merchant Notification (DMN) containing the transaction result to
'urlDetails.notificationUrl'. Nuvei recommends including this parameter in the '/payout' request.REST API 2.0
Payment
Payment Request
- Call ‘
GET /payment-options‘. - In ‘
paymentOptions‘, locate ‘openBanking‘ or ‘instantOpenBanking‘ - From the ‘
bank‘ value array, retrieve the supported banks. - Allow the customer to select a bank.
- For the ‘
paymentOption.alternativePaymentMethod.data.bank'value, include the selected bank’s ‘displayName‘ value. - From the selected bank’s
'mandatoryFields‘, collect only the additional fields that are required. - Submit ‘
POST /payments‘.
The received ‘result.status‘ is set to ‘redirect‘ and includes a ‘redirectUrl‘ . - To complete authentication and payment authorization, redirect the customer to the selected bank.
The final transaction result is received asynchronously in ‘urlDetails.webhookUrl‘.
Example openBanking in GET /payment-options Response
{
"name": "openBanking",
"isDirect": false,
"supportsFieldsRecovery": true,
"fields": [
{
"name": "bank",
"dataType": "LIST",
"isMandatory": true,
"values": [
{
"code": "sk-fidu-genoded1aac",
"displayName": "Aachener Bank eG",
"countryCode": "DE",
"preferred": false,
"mandatoryFields": ["iban"]
},
{
"code": "ngp-abna",
"displayName": "ABN AMRO",
"countryCode": "NL",
"preferred": true
},
{
"code": "ngp-cgdi",
"displayName": "Caixa Bank",
"countryCode": "ES",
"preferred": true
}
]
}
]
}
Example instantOpenBanking in GET /payment-options Response
{
"name": "instantOpenBanking",
"isDirect": false,
"supportsFieldsRecovery": true,
"fields": [
{
"name": "bank",
"dataType": "LIST",
"isMandatory": true,
"values": [
{
"code": "sk-fidu-genoded1aac",
"displayName": "Aachener Bank eG",
"countryCode": "DE",
"preferred": false,
"mandatoryFields": ["iban"]
},
{
"code": "ngp-abna",
"displayName": "ABN AMRO",
"countryCode": "NL",
"preferred": true
},
{
"code": "ngp-cgdi",
"displayName": "Caixa Bank",
"countryCode": "ES",
"preferred": true
}
]
}
]
}
Example '/payments' Request with Bank-specific IBAN
{
"processingEntityId": "<your processing entity ID>",
"amount": 10,
"currency": "EUR",
"paymentOption": {
"alternativePaymentMethod": {
"name": "openBanking",
"data": {
"bank": "Aachener Bank eG",
"iban": "<customer IBAN>"
}
}
},
"deviceDetails": {
"ipAddress": "<customer IP address>"
},
"urlDetails": {
"successUrl": "https://www.example.com/payment-success",
"failureUrl": "https://www.example.com/payment-failure",
"pendingUrl": "https://www.example.com/payment-pending",
"cancelUrl": "https://www.example.com/payment-cancelled",
"webhookUrl": "https://www.example.com/webhooks/payments"
},
"buyerDetails": {
"buyerId": "<customer ID>",
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]",
"phone": "+441234567890",
"billingAddress": {
"address": "1 Main Street",
"city": "London",
"zip": "AB12 3CD",
"countryCode": "GB"
}
}
}
Example ‘/payments‘ Request without IBAN
{
"processingEntityId":"<processingEntityId>",
"amount":10,
"currency":"EUR",
"paymentOption":{
"alternativePaymentMethod":{
"name":"instantOpenBanking",
"data":{
"bank":"Caixa Bank"
}
}
},
"deviceDetails":{
"ipAddress":"<customer IP address>"
},
"urlDetails":{
"successUrl":"https://www.example.com/payment-success",
"failureUrl":"https://www.example.com/payment-failure",
"pendingUrl":"https://www.example.com/payment-pending",
"cancelUrl":"https://www.example.com/payment-cancelled",
"webhookUrl":"https://www.example.com/webhooks/payments"
},
"buyerDetails":{
"buyerId":"<customer ID>",
"firstName":"John",
"lastName":"Smith",
"email":"[email protected]"
}
}
Example ‘/payments‘ Response for ‘instantOpenBanking‘
A successful Instant Open Banking payment initiation returns a 'paymentId', 'result.status' set to 'redirect', and a 'redirectUrl'.
{
"paymentId": "95a40bb5c1d24f38a7060dc59ee4fb71",
"amount": 10,
"currency": "EUR",
"transactionType": "Sale",
"result": {
"status": "redirect"
},
"redirectUrl": "<redirectUrl>",
"paymentOption": {
"alternativePaymentMethod": {
"name": "instantOpenBanking",
"data": {
"bank": "Caixa Bank"
}
}
},
"paymentTokenId": "<payment token id>"
}
Redirect Processing
A successful '/payments' request returns a 'redirectUrl' for the selected bank.
Redirect the customer to the returned URL so the customer can authenticate with the bank and complete the payment authorization process.
After the customer completes the bank authentication flow, the APM provider processes the payment request.
Payment Webhook Processing
After the transaction is processed, Nuvei sends a webhook notification containing the transaction result to the URL specified in 'urlDetails.webhookUrl'.
Payout
Initiate an Open Banking payout in one of the following ways:
- In the payout request, provide the customer bank details through
'paymentOption.alternativePaymentMethod'. - In the payout request, provide the
'paymentTokenId'value of a previously stored Open Banking payment method via'paymentOption.paymentToken'.
Initiate Payout Request with 'alternativePaymentMethod'
Use this option to provide the customer bank details directly in the payout request.
Example Payout Request Using 'alternativePaymentMethod'
{
"processingEntityId": "<your processing entity ID>",
"amount": 10,
"currency": "EUR",
"paymentOption": {
"alternativePaymentMethod": {
"name": "instantOpenBanking",
"data": {
"bank": "Aachener Bank",
"holderName": "asd",
"accountNumber": "235442",
"sortCode": "421341",
"iban": "133413"
}
}
},
"deviceDetails": {
"ipAddress": "<customer IP address>"
},
"urlDetails": {
"webhookUrl": "https://www.example.com/webhooks/payouts"
},
"buyerDetails": {
"buyerId": "<customer ID>",
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]",
"phone": "+441234567890",
"billingAddress": {
"address": "1 Main Street",
"city": "London",
"zip": "AB12 3CD",
"countryCode": "GB"
}
}
}
Update Payout Request with ‘alternativePaymentMethod‘
- Call ‘
GET /payment-options‘ and retrieve the current bank values. - Allow the customer to select the destination bank.
- Use the selected bank’s ‘
displayName‘ value as ‘paymentOption.alternativePaymentMethod.data.bank‘ value. - From ‘
mandatoryFields‘, collect only the required bank details.
- Submit ‘
POST /payouts‘ with ‘paymentOption.alternativePaymentMethod‘.
Aynchronous payout status updates are received at ‘urlDetails.webhookUrl‘.
Initiate Payout with 'paymentTokenId'
To use this option to initiate payout to a previously stored Open Banking payment method:
- Include the stored token in ‘
paymentOption.paymentToken.paymentTokenId‘.
- Include the stored token in ‘
paymentOption.paymentToken.paymentTokenId‘. - The customer enters the amount the customer wants to pay on the payment page, selects ‘Online Bank Transfer’ or ‘Instant Bank Transfer’, and then selects ‘Pay’ or the equivalent option.
- Send an ‘/openOrder‘ request to generate a
'sessionToken'. - Instantiate a Web SDK session by sending a ‘SafeCharge()’ request that includes the
'sessionToken'. - Call the ‘getAPMs()‘ method, including the relevant
'countryCode'to narrow the results. - Extract the banks returned for:
'apmgw_Open_Banking''apmgw_Instant_Open_Banking'
- Display the available banks so the customer can select the bank that holds the account from which they want to pay.
- Collect the fields identified in
'fields.listValues.mandatoryFields'for the selected bank. - Display the amount, currency, and the following message before allowing the customer to continue:
By pressing the deposit button, you agree to the Privacy Policy and the Terms of Nuvei’s bank connectivity provider. You will be asked by your bank to share your account details. These details will be used only when necessary, such as when processing a refund.
- Use the data entered by the customer to send a ‘createPayment()‘ request. Include the
'alternativePaymentMethod'object containing the relevant Open Banking parameters.- If
'paymentMethod'has a value of'apmgw_Instant_Open_Banking', the bank ID parameter must be'instantOb_bankId'. - If
'paymentMethod'has a value of'apmgw_Open_Banking', the bank ID parameter must be'ob_bank_id'.
- If
- If the
'createPayment()'request is successful, the system opens a new tab or an IFrame and redirects the customer to the selected bank site. - Allow the customer to enter credentials and complete the payment.
- Verify the response as described in Web SDK Response Verification.
- Initiate a Session by sending an https://docs.nuvei.com/api/main/indexMain_v1_0.html?json#openOrder
'/openOrder'request. This authenticates the merchant, creates an order in the Nuvei system, and returns a'sessionToken'. - Create an HTML Placeholder to instantiate the Web SDK with the
'sessionToken'returned by'/openOrder'. - Display a window in which the customer selects a bank, enters the IBAN if required by the bank, accepts the terms and conditions, and enters an amount.
To use this option to initiate payout to a previously stored Alternative Payment Method account:
Example Payout Request with 'paymentTokenId'
{
"processingEntityId": "<your processing entity ID>",
"amount": 10,
"currency": "EUR",
"paymentOption": {
"paymentToken": {
"paymentTokenId": "abc123def456ghi789jkl012mno345pq"
}
},
"deviceDetails": {
"ipAddress": "<customer IP address>"
},
"urlDetails": {
"webhookUrl": "https://www.example.com/webhooks/payouts"
},
"buyerDetails": {
"buyerId": "<customer ID>",
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]"
}
}
Payout Webhook Processing
After the payout transaction is processed, Nuvei sends a webhook notification containing the transaction result to the URL specified in 'urlDetails.webhookUrl'.
Summary of Key Integration Rules
• Retrieve the current bank list through GET /payment-options; do not hardcode the bank list.
• Send the selected bank’s displayName as the data.bank value; do not send a code as the value.
• Consider mandatoryFields as bank-specific and dynamic.
• Send ‘iban‘ only if ‘iban‘ is listed in ‘mandatoryFields‘ for the selected bank.
• Use ‘redirectUrl‘ to continue the customer payment flow.
• Use ‘webhookUrl‘ for asynchronous payment and payout status updates.
• If executing a payout using ‘paymentTokenId‘, do not resend bank details.
Web SDK
Collecting Payment Details
To retrieve a dynamic list of banks and APMs linked to the merchant account for a country:
Example 'getAPMs()' Request
sfc.getApms({
"currencyCode": "USD",
"countryCode": "BE",
"languageCode": "en"
},
function (res) {
console.log(res);
});
The response returns the APMs linked to the merchant account for the specific 'countryCode'.
Example 'getAPMs()' Response
{
"paymentMethod": "apmgw_Instant_Open_Banking",
"paymentMethodDisplayName": [],
"isDirect": "false",
"countries": [
"BE"
],
"currencies": [
"USD"
],
"fields": [
{
"name": "ob_account_number",
"type": "text",
"caption": [
{
"language": "en",
"message": "Account Number"
}
]
},
{
"name": "ob_sort_code",
"type": "text",
"caption": [
{
"language": "en",
"message": "Sort Code"
}
]
},
{
"name": "ob_iban",
"type": "text",
"caption": [
{
"language": "en",
"message": "IBAN"
}
]
},
{
"name": "instantOb_bankId",
"type": "text",
"caption": [
{
"language": "en",
"message": "Bank ID"
}
],
"listValues": [
{
"code": "ngp-bbru",
"caption": "NextGenPSD2",
"mandatoryFields": [
"ob_iban"
]
},
{
"code": "ngp-ingba",
"caption": "ING Austria",
"mandatoryFields": []
}
]
}
]
}
Output Parameters
'getAPMs()' Output Parameters
| Parameter | Description | Examples |
|---|---|---|
| paymentMethod | Identifier of a Payment Method. | apmgw_Open_Banking |
| fields | A list of possible input fields required by a payment method provider for this Payment Method, as well as a list of mandatory input fields per fields.listValues value (in the form of a key-value pairs to be used to populate a dropdown input field). | - |
| fields.name | Identifier of the field. | ob_account_number ob_sort_code ob_iban ob_bank_id |
| fields.listValues | A list of values of the fields.name (to be used to populate a dropdown input field). | - |
| fields.listValues .code | Bank code used for sending the payment request. Note:For the "apmgw_online_bank_transfer" APM, the bank id parameter must be: "ob_bank_id" | ngp-bbru ngp-ingba |
| fields.listValues .caption | Bank name for display on the UI. | NextGenPSD2 ING Austria |
| fields.listValues .mandatoryFields | A list of fields.names, which are mandatory for this fields.listValues value (to be used to populate a dropdown input field). | ob_account_number ob_sort_code ob_iban |
Example 'fields' Array Structure with 'mandatoryFields'
"fields": [
"name" (String, 45),
"type" (String, 45),
"validationMessage":
["language" (String, 2), "message" (String, 400)],
"caption":
["language" (String, 2), "message" (String, 400)],
"listValues": [
"code" (String, 255),
"caption" (String),
"mandatoryFields":
[(String, 45)]
]
]
Sending a Payment Request
Example 'createPayment()' Request for 'apmgw_Instant_Open_Banking' with a Mandatory Parameter
sfc.createPayment({
sessionToken: "<sessionToken>",
paymentOption: {
alternativePaymentMethod: {
paymentMethod: "apmgw_Instant_Open_Banking",
instantOb_bankId: "ngp-bbru",
ob_iban: "BE96315678901234"
}
},
deviceDetails: {
ipAddress: "<customer's IP address>"
},
billingAddress: {
firstName: "John",
lastName: "Smith",
email: "[email protected]",
country: "BE"
},
userDetails: {
firstName: "John",
lastName: "Smith",
email: "[email protected]",
country: "BE"
}
}, function(res) {
console.log(res);
});
Example 'createPayment()' Request for 'apmgw_Open_Banking' with No Mandatory Parameter
sfc.createPayment({
sessionToken: "<sessionToken>",
paymentOption: {
alternativePaymentMethod: {
paymentMethod: "apmgw_Open_Banking",
ob_bank_id: "ngp-ingba"
}
},
deviceDetails: {
ipAddress: "<customer's IP address>"
},
billingAddress: {
firstName: "John",
lastName: "Smith",
email: "[email protected]",
country: "BE"
},
userDetails: {
firstName: "John",
lastName: "Smith",
email: "[email protected]",
country: "BE"
}
}, function(res) {
console.log(res);
});
Withdrawal Flow
For information about the Web SDK withdrawal flow, see Withdrawal.
Simply Connect
Collecting Payment Details
Sending a Payment Request
Use an IFrame to redirect the customer to the selected bank. The customer can then enter credentials and complete the payment transaction.
Testing
A merchant can test specific APMs using the following bank and test data.
Commerzbank (DE)
- SEPA and SEPA Instant
- Does not return a refund account
KD Bank (DE – Embedded Flow)
- Credentials:
'psuId':'VRK1234567890ALL''password':'password''SCA':'942: mobile TAN''pin':'123456'
NatWest (UK)
- FPS
- Returns the refund account and name
- Credentials:
'123456789012'
Alior (PL)
- Elixir and SEPA
- Does not return a refund account
- Credentials:
'60370698''12345678'
BBVA (ES)
- Credentials:
'user1''1234''123456'