Requirements
Before you can create business accounts for your users, check if you meet the requirements for business accounts. Additionally, make sure that your users have:- Legal entities for both your user and all entities associated with the user. For example, the ultimate beneficial owners (UBOs) for an organization.
- Business lines, which contain information about your user’s line of business. You need to create two business lines, one for your user to receive payments and one for business accounts.
- An account holder and a balance account.
- Completed the verification checks for business accounts and have the issueBankAccount capability allowed and enabled.
Create a payment instrument
After the issueBankAccount capability has been allowed and enabled on the account holder of your user, you can proceed with creating a payment instrument for them. Payment instruments—such as business accounts—are resources that account holders can use externally to transact with their balance account. Creating a business account payment instrument generates a business account number, such as an IBAN. To create a business account payment instrument, make a POST /paymentInstruments call specifying:| Parameter name | Required | Description |
|---|---|---|
| balanceAccountId | ![]() | The ID returned when you created the balance account. All financial transactions, such as receiving and sending funds, will be processed in this balance account. |
| issuingCountryCode | ![]() | The two-letter country code where the business account is issued from. We currently support NL and US. The currency of the specified country must match the currency of the balance account. |
| type | ![]() | Set to bankAccount. |
| description | Your description for the business account, which you can use to store useful information for your staff. | |
| reference | Your reference for the business account, which you can map to your internal systems. |
- IBAN
- US account number
Here is how you create an IBAN for a business account issued in the Netherlands.Create an IBANThe response returns the paymentInstrument resource, identified by its unique
curl https://balanceplatform-api-test.adyen.com/bcl/v2/paymentInstruments \
-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \
-H 'content-type: application/json' \
-X POST \
-d '{
"type": "bankAccount",
"description": "{hint:Your human-readable description for the business account}S.Hopper - Account in NL{/hint}",
"balanceAccountId": "BA00000000000000000000001",
"issuingCountryCode": "NL"
}'
// Adyen Java API Library v33.0.0
import com.adyen.Client;
import com.adyen.enums.Environment;
import com.adyen.model.balanceplatform.*;
import java.time.OffsetDateTime;
import java.util.*;
import com.adyen.service.balancePlatform.*;
Client client = new Client("ADYEN_BALANCE_PLATFORM_API_KEY", Environment.TEST);
// Create the request object(s)
PaymentInstrumentInfo paymentInstrumentInfo = new PaymentInstrumentInfo()
.balanceAccountId("BA00000000000000000000001")
.description("S.Hopper - Account in NL")
.type(PaymentInstrumentInfo.TypeEnum.BANKACCOUNT)
.issuingCountryCode("NL");
// Send the request
PaymentInstrumentsApi service = new PaymentInstrumentsApi(client);
PaymentInstrument response = service.createPaymentInstrument(paymentInstrumentInfo, null);
<?php
// Adyen PHP API Library v24.0.0
use Adyen\Client;
use Adyen\Environment;
use Adyen\Model\BalancePlatform\PaymentInstrumentInfo;
use Adyen\Service\BalancePlatform\PaymentInstrumentsApi;
$client = new Client();
$client->setXApiKey("ADYEN_BALANCE_PLATFORM_API_KEY");
$client->setEnvironment(Environment::TEST);
// Create the request object(s)
$paymentInstrumentInfo = new PaymentInstrumentInfo();
$paymentInstrumentInfo
->setBalanceAccountId("BA00000000000000000000001")
->setDescription("S.Hopper - Account in NL")
->setType("bankAccount")
->setIssuingCountryCode("NL");
// Send the request
$service = new PaymentInstrumentsApi($client);
$response = $service->createPaymentInstrument($paymentInstrumentInfo);
// Adyen .net API Library v28.0.0
using Adyen;
using Environment = Adyen.Model.Environment;
using Adyen.Model;
using Adyen.Model.BalancePlatform;
using Adyen.Service.BalancePlatform;
var config = new Config()
{
XApiKey = "ADYEN_BALANCE_PLATFORM_API_KEY",
Environment = Environment.Test
};
var client = new Client(config);
// Create the request object(s)
PaymentInstrumentInfo paymentInstrumentInfo = new PaymentInstrumentInfo
{
BalanceAccountId = "BA00000000000000000000001",
Description = "S.Hopper - Account in NL",
Type = PaymentInstrumentInfo.TypeEnum.BankAccount,
IssuingCountryCode = "NL"
};
// Send the request
var service = new PaymentInstrumentsService(client);
var response = service.CreatePaymentInstrument(paymentInstrumentInfo);
// Adyen Node API Library v23.3.0
const { Client, BalancePlatformAPI } = require('@adyen/api-library');
const client = new Client({ apiKey: "ADYEN_BALANCE_PLATFORM_API_KEY", environment: "TEST" });
// Create the request object(s)
const paymentInstrumentInfo = {
type: "bankAccount",
description: "S.Hopper - Account in NL",
balanceAccountId: "BA00000000000000000000001",
issuingCountryCode: "NL"
}
// Send the request
const balancePlatformAPI = new BalancePlatformAPI(client);
const response = balancePlatformAPI.PaymentInstrumentsApi.createPaymentInstrument(paymentInstrumentInfo);
// Adyen Go API Library v17.0.0
import (
"context"
"github.com/adyen/adyen-go-api-library/v17/src/common"
"github.com/adyen/adyen-go-api-library/v17/src/adyen"
"github.com/adyen/adyen-go-api-library/v17/src/balancePlatform"
)
client := adyen.NewClient(&common.Config{
ApiKey: "ADYEN_BALANCE_PLATFORM_API_KEY",
Environment: common.TestEnv,
})
// Create the request object(s)
paymentInstrumentInfo := balancePlatform.PaymentInstrumentInfo{
BalanceAccountId: "BA00000000000000000000001",
Description: common.PtrString("S.Hopper - Account in NL"),
Type: "bankAccount",
IssuingCountryCode: "NL",
}
// Send the request
service := client.BalancePlatform()
req := service.PaymentInstrumentsApi.CreatePaymentInstrumentInput().PaymentInstrumentInfo(paymentInstrumentInfo)
res, httpRes, err := service.PaymentInstrumentsApi.CreatePaymentInstrument(context.Background(), req)
# Adyen Python API Library v13.3.0
import Adyen
adyen = Adyen.Adyen()
adyen.client.xapikey = "ADYEN_BALANCE_PLATFORM_API_KEY"
adyen.client.platform = "test" # The environment to use library in.
# Create the request object(s)
json_request = {
"type": "bankAccount",
"description": "S.Hopper - Account in NL",
"balanceAccountId": "BA00000000000000000000001",
"issuingCountryCode": "NL"
}
# Send the request
result = adyen.balancePlatform.payment_instruments_api.create_payment_instrument(request=json_request)
# Adyen Ruby API Library v10.1.1
require "adyen-ruby-api-library"
adyen = Adyen::Client.new
adyen.api_key = 'ADYEN_BALANCE_PLATFORM_API_KEY'
adyen.env = :test # Set to "live" for live environment
# Create the request object(s)
request_body = {
:type => 'bankAccount',
:description => 'S.Hopper - Account in NL',
:balanceAccountId => 'BA00000000000000000000001',
:issuingCountryCode => 'NL'
}
# Send the request
result = adyen.balancePlatform.payment_instruments_api.create_payment_instrument(request_body)
// Adyen Node API Library v23.3.0
import { Client, BalancePlatformAPI, Types } from "@adyen/api-library";
const client = new Client({ apiKey: "ADYEN_BALANCE_PLATFORM_API_KEY", environment: "TEST" });
// Create the request object(s)
const paymentInstrumentInfo: Types.balancePlatform.PaymentInstrumentInfo = {
balanceAccountId: "BA00000000000000000000001",
description: "S.Hopper - Account in NL",
type: Types.balancePlatform.PaymentInstrumentInfo.TypeEnum.BankAccount,
issuingCountryCode: "NL"
};
// Send the request
const balancePlatformAPI = new BalancePlatformAPI(client);
const response = balancePlatformAPI.PaymentInstrumentsApi.createPaymentInstrument(paymentInstrumentInfo);
id. You also receive the iban which the account holder can use when sending funds to their business account.Response{
"balanceAccountId": "BA00000000000000000000001",
"issuingCountryCode": "NL",
"status": "Active",
"type": "bankAccount",
"bankAccount": {
"iban": "NL20ADYB2017000035"
},
"id": "PI322LJ223222B5DJS7CD9LWL"
}
Here is how you create an account number for a business account issued in the US.Create a US account numberThe response returns the paymentInstrument resource, identified by its unique
curl https://balanceplatform-api-test.adyen.com/bcl/v2/paymentInstruments \
-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \
-H 'content-type: application/json' \
-X POST \
-d '{
"type": "bankAccount",
"description": "{hint:Your human-readable description for the business account}S.Hopper - Account in the US{/hint}",
"balanceAccountId": "BA00000000000000000000001",
"issuingCountryCode": "US"
}'
// Adyen Java API Library v33.0.0
import com.adyen.Client;
import com.adyen.enums.Environment;
import com.adyen.model.balanceplatform.*;
import java.time.OffsetDateTime;
import java.util.*;
import com.adyen.service.balancePlatform.*;
Client client = new Client("ADYEN_BALANCE_PLATFORM_API_KEY", Environment.TEST);
// Create the request object(s)
PaymentInstrumentInfo paymentInstrumentInfo = new PaymentInstrumentInfo()
.balanceAccountId("BA00000000000000000000001")
.description("S.Hopper - Account in the US")
.type(PaymentInstrumentInfo.TypeEnum.BANKACCOUNT)
.issuingCountryCode("US");
// Send the request
PaymentInstrumentsApi service = new PaymentInstrumentsApi(client);
PaymentInstrument response = service.createPaymentInstrument(paymentInstrumentInfo, null);
<?php
// Adyen PHP API Library v24.0.0
use Adyen\Client;
use Adyen\Environment;
use Adyen\Model\BalancePlatform\PaymentInstrumentInfo;
use Adyen\Service\BalancePlatform\PaymentInstrumentsApi;
$client = new Client();
$client->setXApiKey("ADYEN_BALANCE_PLATFORM_API_KEY");
$client->setEnvironment(Environment::TEST);
// Create the request object(s)
$paymentInstrumentInfo = new PaymentInstrumentInfo();
$paymentInstrumentInfo
->setBalanceAccountId("BA00000000000000000000001")
->setDescription("S.Hopper - Account in the US")
->setType("bankAccount")
->setIssuingCountryCode("US");
// Send the request
$service = new PaymentInstrumentsApi($client);
$response = $service->createPaymentInstrument($paymentInstrumentInfo);
// Adyen .net API Library v28.0.0
using Adyen;
using Environment = Adyen.Model.Environment;
using Adyen.Model;
using Adyen.Model.BalancePlatform;
using Adyen.Service.BalancePlatform;
var config = new Config()
{
XApiKey = "ADYEN_BALANCE_PLATFORM_API_KEY",
Environment = Environment.Test
};
var client = new Client(config);
// Create the request object(s)
PaymentInstrumentInfo paymentInstrumentInfo = new PaymentInstrumentInfo
{
BalanceAccountId = "BA00000000000000000000001",
Description = "S.Hopper - Account in the US",
Type = PaymentInstrumentInfo.TypeEnum.BankAccount,
IssuingCountryCode = "US"
};
// Send the request
var service = new PaymentInstrumentsService(client);
var response = service.CreatePaymentInstrument(paymentInstrumentInfo);
// Adyen Node API Library v23.3.0
const { Client, BalancePlatformAPI } = require('@adyen/api-library');
const client = new Client({ apiKey: "ADYEN_BALANCE_PLATFORM_API_KEY", environment: "TEST" });
// Create the request object(s)
const paymentInstrumentInfo = {
type: "bankAccount",
description: "S.Hopper - Account in the US",
balanceAccountId: "BA00000000000000000000001",
issuingCountryCode: "US"
}
// Send the request
const balancePlatformAPI = new BalancePlatformAPI(client);
const response = balancePlatformAPI.PaymentInstrumentsApi.createPaymentInstrument(paymentInstrumentInfo);
// Adyen Go API Library v17.0.0
import (
"context"
"github.com/adyen/adyen-go-api-library/v17/src/common"
"github.com/adyen/adyen-go-api-library/v17/src/adyen"
"github.com/adyen/adyen-go-api-library/v17/src/balancePlatform"
)
client := adyen.NewClient(&common.Config{
ApiKey: "ADYEN_BALANCE_PLATFORM_API_KEY",
Environment: common.TestEnv,
})
// Create the request object(s)
paymentInstrumentInfo := balancePlatform.PaymentInstrumentInfo{
BalanceAccountId: "BA00000000000000000000001",
Description: common.PtrString("S.Hopper - Account in the US"),
Type: "bankAccount",
IssuingCountryCode: "US",
}
// Send the request
service := client.BalancePlatform()
req := service.PaymentInstrumentsApi.CreatePaymentInstrumentInput().PaymentInstrumentInfo(paymentInstrumentInfo)
res, httpRes, err := service.PaymentInstrumentsApi.CreatePaymentInstrument(context.Background(), req)
# Adyen Python API Library v13.3.0
import Adyen
adyen = Adyen.Adyen()
adyen.client.xapikey = "ADYEN_BALANCE_PLATFORM_API_KEY"
adyen.client.platform = "test" # The environment to use library in.
# Create the request object(s)
json_request = {
"type": "bankAccount",
"description": "S.Hopper - Account in the US",
"balanceAccountId": "BA00000000000000000000001",
"issuingCountryCode": "US"
}
# Send the request
result = adyen.balancePlatform.payment_instruments_api.create_payment_instrument(request=json_request)
# Adyen Ruby API Library v10.1.1
require "adyen-ruby-api-library"
adyen = Adyen::Client.new
adyen.api_key = 'ADYEN_BALANCE_PLATFORM_API_KEY'
adyen.env = :test # Set to "live" for live environment
# Create the request object(s)
request_body = {
:type => 'bankAccount',
:description => 'S.Hopper - Account in the US',
:balanceAccountId => 'BA00000000000000000000001',
:issuingCountryCode => 'US'
}
# Send the request
result = adyen.balancePlatform.payment_instruments_api.create_payment_instrument(request_body)
// Adyen Node API Library v23.3.0
import { Client, BalancePlatformAPI, Types } from "@adyen/api-library";
const client = new Client({ apiKey: "ADYEN_BALANCE_PLATFORM_API_KEY", environment: "TEST" });
// Create the request object(s)
const paymentInstrumentInfo: Types.balancePlatform.PaymentInstrumentInfo = {
balanceAccountId: "BA00000000000000000000001",
description: "S.Hopper - Account in the US",
type: Types.balancePlatform.PaymentInstrumentInfo.TypeEnum.BankAccount,
issuingCountryCode: "US"
};
// Send the request
const balancePlatformAPI = new BalancePlatformAPI(client);
const response = balancePlatformAPI.PaymentInstrumentsApi.createPaymentInstrument(paymentInstrumentInfo);
id. You also receive the bankAccount details that the account holder can use when sending funds to their business account.Response{
"balanceAccountId": "BA00000000000000000000001",
"issuingCountryCode": "US",
"status": "Active",
"type": "bankAccount",
"bankAccount": {
"accountNumber": "333720756",
"routingNumber": "21000021",
"accountType": "checking"
},
"id": "PI322LJ223222B5DJS7CD9LWL"
}
Get payment instruments
To find the existing business account number related to a specified balance account, make a GET /balanceAccounts/{id}/paymentInstruments request and specify the balance accountid in the path.