After you create account holders, you need to create a balance account resource to hold their funds. The balance account is to which funds from payments are settled and from which funds are paid out.
To use their balance account, the account holder must have the capabilities to use it.
In most cases, one balance account for an account holder is sufficient, but there are some scenarios when you might need to create multiple balance accounts. For example, if an account holder has different businesses and would like to keep funds and accounting history separate for each line.
Before you begin
Make sure that:
- You have API credentials for the Configuration API.
- You have created account holders.
Create a balance account
All of the account holder's transactions such as payouts and settled payments are processed against their balance account.
To create a balance account, make a POST /balanceAccounts request specifying the accountHolderId to be associated with the balance account. In your request, you can also include a human-readable description to help you differentiate between multiple balance accounts under one account holder.
This example shows how you can create a balance account for an account holder with id
AH00000000000000000000001.
curl https://balanceplatform-api-test.adyen.com/bcl/v2/balanceAccounts \
-H "x-api-key: YOUR_BALANCE_PLATFORM_API_KEY" \
-H "content-type: application/json" \
-d '{
"accountHolderId":"AH00000000000000000000001",
"{hint:Free-text field}description{/hint}":"S.Hopper - Main balance account"
}'
The response returns the balanceAccount resource, identified by its unique id
. The response also includes the balances array that contains information about the account's funds. By default, the first balance account that you create for an account holder is assigned as their primary balance account. To change their primary balance account, you can update the account holder.
{
"accountHolderId":"AH00000000000000000000001",
"defaultCurrencyCode": "EUR",
"timeZone": "Europe/Amsterdam",
"description":"S.Hopper - Main balance account",
"balances": [
{
"available": 0,
"balance": 0,
"currency": "EUR",
"reserved": 0
}
],
"id":"BA00000000000000000000001",
"status":"Active"
}
After you create a balance account, get updates about whether the account holder has the required capabilities to process payments and payouts. The account holder can start using the balance account to process payments and payouts if they have the required capabilities.