Create an account holder
You can create account holders using the Configuration API. To create an account holder, you need to create a legal entity first.-
Make a POST /accountHolders request using a legal entity ID. For sole proprietorships, this is the individual legal entity ID of the owner.
Create an account holder
curl
curl https://balanceplatform-api-test.adyen.com/bcl/v2/accountHolders \ -H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \ -H 'content-type: application/json' \ -X POST \ -d '{ "description": "New Seller", "reference": "S.Eller-001", "legalEntityId": "LE00000000000000000000001" }'Java
// 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) AccountHolderInfo accountHolderInfo = new AccountHolderInfo() .reference("S.Eller-001") .legalEntityId("LE00000000000000000000001") .description("New Seller"); // Send the request AccountHoldersApi service = new AccountHoldersApi(client); AccountHolder response = service.createAccountHolder(accountHolderInfo, null);PHP
<?php // Adyen PHP API Library v24.0.0 use Adyen\Client; use Adyen\Environment; use Adyen\Model\BalancePlatform\AccountHolderInfo; use Adyen\Service\BalancePlatform\AccountHoldersApi; $client = new Client(); $client->setXApiKey("ADYEN_BALANCE_PLATFORM_API_KEY"); $client->setEnvironment(Environment::TEST); // Create the request object(s) $accountHolderInfo = new AccountHolderInfo(); $accountHolderInfo ->setReference("S.Eller-001") ->setLegalEntityId("LE00000000000000000000001") ->setDescription("New Seller"); // Send the request $service = new AccountHoldersApi($client); $response = $service->createAccountHolder($accountHolderInfo);C#
// 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) AccountHolderInfo accountHolderInfo = new AccountHolderInfo { Reference = "S.Eller-001", LegalEntityId = "LE00000000000000000000001", Description = "New Seller" }; // Send the request var service = new AccountHoldersService(client); var response = service.CreateAccountHolder(accountHolderInfo);NodeJS (JavaScript)
// 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 accountHolderInfo = { description: "New Seller", reference: "S.Eller-001", legalEntityId: "LE00000000000000000000001" } // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.createAccountHolder(accountHolderInfo);Go
// 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) accountHolderInfo := balancePlatform.AccountHolderInfo{ Reference: common.PtrString("S.Eller-001"), LegalEntityId: "LE00000000000000000000001", Description: common.PtrString("New Seller"), } // Send the request service := client.BalancePlatform() req := service.AccountHoldersApi.CreateAccountHolderInput().AccountHolderInfo(accountHolderInfo) res, httpRes, err := service.AccountHoldersApi.CreateAccountHolder(context.Background(), req)Python
# 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 = { "description": "New Seller", "reference": "S.Eller-001", "legalEntityId": "LE00000000000000000000001" } # Send the request result = adyen.balancePlatform.account_holders_api.create_account_holder(request=json_request)Ruby
# 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 = { :description => 'New Seller', :reference => 'S.Eller-001', :legalEntityId => 'LE00000000000000000000001' } # Send the request result = adyen.balancePlatform.account_holders_api.create_account_holder(request_body)NodeJS (TypeScript)
// 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 accountHolderInfo: Types.balancePlatform.AccountHolderInfo = { reference: "S.Eller-001", legalEntityId: "LE00000000000000000000001", description: "New Seller" }; // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.createAccountHolder(accountHolderInfo); -
In the response, note the unique
idof the newaccountHolderresource as well as a capabilities object with the default capabilities. Save the response because you need it to:- Match the incoming webhooks using the
id. - Create a balance account for the account holder.
- Update the account holder.
{ "balancePlatform": "YOUR_BALANCE_PLATFORM", "description": "New Seller", "legalEntityId": "LE00000000000000000000001", "reference": "S.Eller-001", "capabilities": { "receiveFromPlatformPayments": { "enabled": true, "requested": true, "allowed": false, "verificationStatus": "pending" }, "receiveFromBalanceAccount": { "enabled": true, "requested": true, "allowed": false, "verificationStatus": "pending" }, "sendToBalanceAccount": { "enabled": true, "requested": true, "allowed": false, "verificationStatus": "pending" }, "sendToTransferInstrument": { "enabled": true, "requested": true, "allowed": false, "requestedSettings": { "interval": "daily", "maxAmount": { "currency": "EUR", "value": 0 } }, "verificationStatus": "pending" } }, "id": "AH00000000000000000000001", "status": "active" } - Match the incoming webhooks using the
- Listen to balancePlatform.accountHolder.updated webhooks. After Adyen has verified the new account holder, webhooks inform your integration of the resulting verification statuses of the account holder’s capabilities. Webhooks contain the updated capability object with verification codes.
View account holders
To view account holder details, you can either use your Customer Area or make an API request. The following tabs explain both methods.- Customer Area
- API
- Customer Area
- API
- Customer Area
- API
- Customer Area
- API
To view the account holders in your Customer Area:
- Go to Accounts & balances > Account holders.
- In the Account holders table, select an Account holder ID to open the Account holder details page.
- The status of the account holder
- Their balance accounts and available balances
- Their associated legal entities
- The ID and type of their uploaded documents
- Their capabilities and verification deadlines
Filter and search
On the Account holders page, you can find specific account holders by using the filter and search features.Set a filter by using the buttons on the filter bar, located on top of the account holder table. For example, you can filter account holders based on their capabilities and the capability statuses.Also, you can search for an account holder by using their ID, reference, name or email.To search for an account holder:- On the Account holders page, select Search.
- On the dropdown menu, select Account holder.
-
In the text field, enter account holder’s data, such as:
- Account holder details: ID or reference
- Main legal entity details: ID, name, or email
If the main legal entity is an individual, you need theView account holders PIIrole to search for the legal entity’s name or email.
Liable account holder
The liable account holder is the account holder related to your company’s legal entity. To view the details of the liable account holder, on the Account holders page, select View liable account holder.-
Make a GET /accountHolders/{id} with the account holder’s
idas a path parameter. Get an account holdercurl
curl https://balanceplatform-api-test.adyen.com/bcl/v2/accountHolders/AH00000000000000000000001 \ -H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \ -H 'content-type: application/json' \ -X GET \Java
// 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); // Send the request AccountHoldersApi service = new AccountHoldersApi(client); AccountHolder response = service.getAccountHolder("id", null);PHP
<?php // Adyen PHP API Library v24.0.0 use Adyen\Client; use Adyen\Environment; use Adyen\Service\BalancePlatform\AccountHoldersApi; $client = new Client(); $client->setXApiKey("ADYEN_BALANCE_PLATFORM_API_KEY"); $client->setEnvironment(Environment::TEST); // Send the request $service = new AccountHoldersApi($client); $response = $service->getAccountHolder('id');C#
// 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); // Send the request var service = new AccountHoldersService(client); var response = service.GetAccountHolder("id");NodeJS (JavaScript)
// 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" }); // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.getAccountHolder("id");Go
// 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, }) // Send the request service := client.BalancePlatform() req := service.AccountHoldersApi.GetAccountHolderInput("id") res, httpRes, err := service.AccountHoldersApi.GetAccountHolder(context.Background(), req)Python
# 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. # Send the request result = adyen.balancePlatform.account_holders_api.get_account_holder(id="id")Ruby
# 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 # Send the request result = adyen.balancePlatform.account_holders_api.get_account_holder('id')NodeJS (TypeScript)
// 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" }); // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.getAccountHolder("id"); -
Receive the details about the account holder including their capabilities in the API response.
Get account holder response
{ "balancePlatform": "YOUR_BALANCE_PLATFORM", "description": "Liable account holder used for international payments and payouts", "legalEntityId": "LE00000000000000000000001", "reference": "S.Eller-001", "capabilities": { "receiveFromPlatformPayments": { "enabled": true, "requested": true, "allowed": false, "verificationStatus": "pending" }, "receiveFromBalanceAccount": { "enabled": true, "requested": true, "allowed": false, "verificationStatus": "pending" }, "sendToBalanceAccount": { "enabled": true, "requested": true, "allowed": false, "verificationStatus": "pending" }, "sendToTransferInstrument": { "enabled": true, "requested": true, "allowed": false, "transferInstruments": [ { "enabled": true, "requested": true, "allowed": false, "id": "SE322KH223222F5GXZFNM3BGP", "verificationStatus": "pending" } ], "verificationStatus": "pending" } }, "id": "AH00000000000000000000001", "status": "active" }
- GET /balancePlatforms/{id}/accountHolders: Get a list of the account holders in your balance platform. This endpoint returns a paginated list of account holders.
- GET /accountHolders/{id}/balanceAccounts: Get a list of the balance accounts of an account holder. This endpoint returns a paginated list of balance accounts.
Update an account holder
After you create an account holder resource, you may need to update it at a later time. For example, when an account holder with multiple balance accounts wants to change their primary balance account. To update an account holder:-
Make a PATCH /accountHolders/{id} request. The example below shows how you can change the primary balance account of an account holder by sending the
primaryBalanceAccountfield. Change the primary balance accountcurl
curl https://balanceplatform-api-test.adyen.com/bcl/v2/accountHolders/AH00000000000000000000001 \ -H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \ -H 'content-type: application/json' \ -X PATCH \ -d '{ "primaryBalanceAccount":"BA00000000000000000000002" }'Java
// 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) AccountHolderUpdateRequest accountHolderUpdateRequest = new AccountHolderUpdateRequest() .primaryBalanceAccount("BA00000000000000000000002"); // Send the request AccountHoldersApi service = new AccountHoldersApi(client); AccountHolder response = service.updateAccountHolder("id", accountHolderUpdateRequest, null);PHP
<?php // Adyen PHP API Library v24.0.0 use Adyen\Client; use Adyen\Environment; use Adyen\Model\BalancePlatform\AccountHolderUpdateRequest; use Adyen\Service\BalancePlatform\AccountHoldersApi; $client = new Client(); $client->setXApiKey("ADYEN_BALANCE_PLATFORM_API_KEY"); $client->setEnvironment(Environment::TEST); // Create the request object(s) $accountHolderUpdateRequest = new AccountHolderUpdateRequest(); $accountHolderUpdateRequest ->setPrimaryBalanceAccount("BA00000000000000000000002"); // Send the request $service = new AccountHoldersApi($client); $response = $service->updateAccountHolder('id', $accountHolderUpdateRequest);C#
// 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) AccountHolderUpdateRequest accountHolderUpdateRequest = new AccountHolderUpdateRequest { PrimaryBalanceAccount = "BA00000000000000000000002" }; // Send the request var service = new AccountHoldersService(client); var response = service.UpdateAccountHolder("id", accountHolderUpdateRequest);NodeJS (JavaScript)
// 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 accountHolderUpdateRequest = { primaryBalanceAccount: "BA00000000000000000000002" } // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.updateAccountHolder("id", accountHolderUpdateRequest);Go
// 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) accountHolderUpdateRequest := balancePlatform.AccountHolderUpdateRequest{ PrimaryBalanceAccount: common.PtrString("BA00000000000000000000002"), } // Send the request service := client.BalancePlatform() req := service.AccountHoldersApi.UpdateAccountHolderInput("id").AccountHolderUpdateRequest(accountHolderUpdateRequest) res, httpRes, err := service.AccountHoldersApi.UpdateAccountHolder(context.Background(), req)Python
# 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 = { "primaryBalanceAccount": "BA00000000000000000000002" } # Send the request result = adyen.balancePlatform.account_holders_api.update_account_holder(request=json_request, id="id")Ruby
# 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 = { :primaryBalanceAccount => 'BA00000000000000000000002' } # Send the request result = adyen.balancePlatform.account_holders_api.update_account_holder(request_body, 'id')NodeJS (TypeScript)
// 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 accountHolderUpdateRequest: Types.balancePlatform.AccountHolderUpdateRequest = { primaryBalanceAccount: "BA00000000000000000000002" }; // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.updateAccountHolder("id", accountHolderUpdateRequest); -
Receive the response with the updated account holder object.
Update account holder response
{ "balancePlatform": "YOUR_BALANCE_PLATFORM", "description": "Content", "legalEntityId": "LE00000000000000000000001", "id": "AH00000000000000000000001", "primaryBalanceAccount": "BA00000000000000000000002", "status": "active" }
Deactivate account holders
When an account holder discontinues their business, you can permanently close them and their balance accounts from your balance platform.In some scenarios, you might also want to close a balance account but keep the account holder active. For example, an account holder that has separate balance accounts for their businesses might want to only close one of their businesses.To close balance accounts and account holders:- Check if they have zero balance in their balance accounts. You can only close empty balance accounts, so if there are funds left, transfer any remaining balance.
- Close balance accounts by updating each balance account and setting the
statusto Closed. Start with those that are not the primary balance account. You can only close a primary balance account if the account holder’s other balance accounts are already closed. - Finally, permanently close the account holder by updating the account holder and setting the
statusto Closed.
View capabilities
You can view an account holder’s capabilities and their verification status in your Customer Area or by making a GET /accountHolders/{id} request. The following tabs explain both methods.To view capabilities of an account holder in your Customer Area:
-
Do one of the following:
- Go to Accounts & balances > Account holders and select an account holder ID from the table.
- Search for an account holder by selecting Search. You can use the account holder ID, account holder reference, or the ID of the linked legal entity.
- On the Account holder details page, select the Capabilities tab. You can view the capabilities that are enabled, allowed and their verification status.
To view the capabilities of an account holder using the Configuration API:
- Make a GET /accountHolders/{id} request.
-
In the capabilities object of the response, note the following parameters and values that are listed for each capability:
- allowed: Boolean that indicates whether the capability is allowed. The possible values are true or false.
- enabled: Boolean that indicates whether the user can use the capability. The possible values are true or false.
- verificationStatus: The status of the checks. The possible values are invalid, pending, rejected, or valid.
- problems array: When this array is not empty, this means that there are errors that you need to address. Refer to verification error codes for a list of verification errors.
Request a capability
Some capabilities are automatically requested when you create an account holder. However, your account holders may need additional capabilities. For example, if you want to allow your users to send and receive funds from third parties. In these cases, you must request the additional capabilities.The following tabs show how to request a capability.To complete the following steps, you must have the Manage account holder capabilities user role.To request a capability for an account holder in your Customer Area:
-
Do one of the following:
- Go to Accounts & balances > Account holders and select an account holder ID from the table.
- Search for an account holder by selecting Search. You can use the account holder ID, account holder reference, or the ID of the linked legal entity.
- On the Account holder details page, select the Capabilities tab and select + Request new capability.
- From the dropdown menu, select a capability and, if applicable, its level.
- Select Submit.
- On the confirmation window, select Submit request.
To request a capability for an account holder using the Configuration API:
-
Make a PATCH /accountHolders/{id} request, specifying the key-value pairs for each capability in the capabilities object. Set the requested parameter to true.
Here is an example of how to request the
receivePaymentcapability for an existing user. If you are requesting multiple capabilities, add another set of key-value pairs. Request a capabilitycurl
curl https://balanceplatform-api-test.adyen.com/bcl/v2/accountHolders/AH00000000000000000000001 \ -H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \ -H 'content-type: application/json' \ -X PATCH \ -d '{ "capabilities" : { "withdrawFromAtm" : { "requested" : true, "requestedLevel" : "medium" } } }'Java
// Adyen Java API Library v34.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) AccountHolderCapability accountHolderCapability = new AccountHolderCapability() .requested(true); AccountHolderUpdateRequest accountHolderUpdateRequest = new AccountHolderUpdateRequest() .capabilities(new HashMap<String, AccountHolderCapability>(Map.of( "receivePayments", accountHolderCapability ))); // Send the request AccountHoldersApi service = new AccountHoldersApi(client); AccountHolder response = service.updateAccountHolder("id", accountHolderUpdateRequest, null);PHP
<?php // Adyen PHP API Library v26.0.0 use Adyen\Client; use Adyen\Environment; use Adyen\Model\BalancePlatform\AccountHolderCapability; use Adyen\Model\BalancePlatform\AccountHolderUpdateRequest; use Adyen\Service\BalancePlatform\AccountHoldersApi; $client = new Client(); $client->setXApiKey("ADYEN_BALANCE_PLATFORM_API_KEY"); $client->setEnvironment(Environment::TEST); // Create the request object(s) $accountHolderCapability = new AccountHolderCapability(); $accountHolderCapability ->setRequested(true); $accountHolderUpdateRequest = new AccountHolderUpdateRequest(); $accountHolderUpdateRequest ->setCapabilities( array( "receivePayments" => $accountHolderCapability ) ); // Send the request $service = new AccountHoldersApi($client); $response = $service->updateAccountHolder('id', $accountHolderUpdateRequest);C#
// Adyen .net API Library v29.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) AccountHolderCapability accountHolderCapability = new AccountHolderCapability { Requested = true }; AccountHolderUpdateRequest accountHolderUpdateRequest = new AccountHolderUpdateRequest { Capabilities = new Dictionary<string, AccountHolderCapability> { { "receivePayments", accountHolderCapability } } }; // Send the request var service = new AccountHoldersService(client); var response = service.UpdateAccountHolder("id", accountHolderUpdateRequest);NodeJS (JavaScript)
// Adyen Node API Library v25.0.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 accountHolderUpdateRequest = { capabilities: { receivePayments: { requested: true } } } // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.updateAccountHolder("id", accountHolderUpdateRequest);Go
// Adyen Go API Library v18.0.0 import ( "context" "github.com/adyen/adyen-go-api-library/v18/src/common" "github.com/adyen/adyen-go-api-library/v18/src/adyen" "github.com/adyen/adyen-go-api-library/v18/src/balancePlatform" ) client := adyen.NewClient(&common.Config{ ApiKey: "ADYEN_BALANCE_PLATFORM_API_KEY", Environment: common.TestEnv, }) // Create the request object(s) accountHolderCapability := balancePlatform.AccountHolderCapability{ Requested: common.PtrBool(true), } accountHolderUpdateRequest := balancePlatform.AccountHolderUpdateRequest{ Capabilities: &map[string]balancePlatform.AccountHolderCapability{ "receivePayments": accountHolderCapability, }, } // Send the request service := client.BalancePlatform() req := service.AccountHoldersApi.UpdateAccountHolderInput("id").AccountHolderUpdateRequest(accountHolderUpdateRequest) res, httpRes, err := service.AccountHoldersApi.UpdateAccountHolder(context.Background(), req)Python
# Adyen Python API Library v13.4.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 = { "capabilities": { "receivePayments": { "requested": True } } } # Send the request result = adyen.balancePlatform.account_holders_api.update_account_holder(request=json_request, id="id")Ruby
# Adyen Ruby API Library v10.1.2 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 = { :capabilities => { :receivePayments => { :requested => true } } } # Send the request result = adyen.balancePlatform.account_holders_api.update_account_holder(request_body, 'id')NodeJS (TypeScript)
// Adyen Node API Library v16.2.0 // Require the parts of the module you want to use import { Client, BalancePlatformAPI, Types } from "@adyen/api-library"; // Initialize the client object const client = new Client({apiKey: "ADYEN_API_KEY", environment: "TEST"}); // Create the request object(s) const accountHolderCapability: Types.balancePlatform.AccountHolderCapability = { requested: true, requestedLevel: Types.balancePlatform.AccountHolderCapability.RequestedLevelEnum.Medium }; const accountHolderUpdateRequest: Types.balancePlatform.AccountHolderUpdateRequest = { capabilities: { "withdrawFromAtm": accountHolderCapability } }; // Make the API call const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.updateAccountHolder("id", accountHolderUpdateRequest); -
In the response, note the following parameters and their respective values for the capability:
requested: trueallowed: falseverification status: pending
{ "balancePlatform": "YOUR_BALANCE_PLATFORM", "id": "AH00000000000000000000001", "legalEntityId": "LE00000000000000000000001", "description": "S.Hopper", "capabilities": { "sendToThirdParty": { "requested": true, "allowed": false, "verificationStatus": "pending" } } }
Enable or disable a capability
To allow or prevent an account holder from using a capability, update the capability in your Customer Area or make an API request. The following tabs explain both methods.To complete the following steps, you must have the Manage account holder capabilities user role.To enable or disable a capability for an account holder in your Customer Area:
-
Do one of the following:
- Go to Accounts & balances > Account holders and select an account holder ID from the table.
- Search for an account holder by selecting Search. You can use the account holder ID, account holder reference, or the ID of the linked legal entity.
- On the Account holder details page, select the Capabilities tab and select Edit.
-
In the Enabled column:
- Select the corresponding checkbox to enable the capability.
- Clear the corresponding checkbox to disable the capability.
- Select Save.
- On the confirmation window, select Save changes.
To enable or disable a capability for an account holder using the Configuration API:
To view more detailed information about the order of the KYC checks and events that affected the verification process, look at the KYC timeline. You can filter events by the type of check, legal entity ID, and legal entity name. The timeline also includes any verification errors and the corresponding remediating action codes.
-
Make a PATCH /accountHolders/{id} request specifying the following parameter for a capability:
- enabled: Set this to true or false to enable or disable the capability, respectively.
curl
curl https://balanceplatform-api-test.adyen.com/bcl/v2/accountHolders/AH00000000000000000000001 \ -H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \ -H 'content-type: application/json' \ -X PATCH \ -d '{ "capabilities": { "sendToThirdParty": { "enabled": false } } }'Java
// Adyen Java API Library v34.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) AccountHolderCapability accountHolderCapability = new AccountHolderCapability() .enabled(false); AccountHolderUpdateRequest accountHolderUpdateRequest = new AccountHolderUpdateRequest() .capabilities(new HashMap<String, AccountHolderCapability>(Map.of( "sendToThirdParty", accountHolderCapability ))); // Send the request AccountHoldersApi service = new AccountHoldersApi(client); AccountHolder response = service.updateAccountHolder("id", accountHolderUpdateRequest, null);PHP
<?php // Adyen PHP API Library v26.0.0 use Adyen\Client; use Adyen\Environment; use Adyen\Model\BalancePlatform\AccountHolderCapability; use Adyen\Model\BalancePlatform\AccountHolderUpdateRequest; use Adyen\Service\BalancePlatform\AccountHoldersApi; $client = new Client(); $client->setXApiKey("ADYEN_BALANCE_PLATFORM_API_KEY"); $client->setEnvironment(Environment::TEST); // Create the request object(s) $accountHolderCapability = new AccountHolderCapability(); $accountHolderCapability ->setEnabled(false); $accountHolderUpdateRequest = new AccountHolderUpdateRequest(); $accountHolderUpdateRequest ->setCapabilities( array( "sendToThirdParty" => $accountHolderCapability ) ); // Send the request $service = new AccountHoldersApi($client); $response = $service->updateAccountHolder('id', $accountHolderUpdateRequest);C#
// Adyen .net API Library v29.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) AccountHolderCapability accountHolderCapability = new AccountHolderCapability { Enabled = false }; AccountHolderUpdateRequest accountHolderUpdateRequest = new AccountHolderUpdateRequest { Capabilities = new Dictionary<string, AccountHolderCapability> { { "sendToThirdParty", accountHolderCapability } } }; // Send the request var service = new AccountHoldersService(client); var response = service.UpdateAccountHolder("id", accountHolderUpdateRequest);NodeJS (JavaScript)
// Adyen Node API Library v25.0.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 accountHolderUpdateRequest = { capabilities: { sendToThirdParty: { enabled: false } } } // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.updateAccountHolder("id", accountHolderUpdateRequest);Go
// Adyen Go API Library v18.0.0 import ( "context" "github.com/adyen/adyen-go-api-library/v18/src/common" "github.com/adyen/adyen-go-api-library/v18/src/adyen" "github.com/adyen/adyen-go-api-library/v18/src/balancePlatform" ) client := adyen.NewClient(&common.Config{ ApiKey: "ADYEN_BALANCE_PLATFORM_API_KEY", Environment: common.TestEnv, }) // Create the request object(s) accountHolderCapability := balancePlatform.AccountHolderCapability{ Enabled: common.PtrBool(false), } accountHolderUpdateRequest := balancePlatform.AccountHolderUpdateRequest{ Capabilities: &map[string]balancePlatform.AccountHolderCapability{ "sendToThirdParty": accountHolderCapability, }, } // Send the request service := client.BalancePlatform() req := service.AccountHoldersApi.UpdateAccountHolderInput("id").AccountHolderUpdateRequest(accountHolderUpdateRequest) res, httpRes, err := service.AccountHoldersApi.UpdateAccountHolder(context.Background(), req)Python
# Adyen Python API Library v13.4.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 = { "capabilities": { "sendToThirdParty": { "enabled": False } } } # Send the request result = adyen.balancePlatform.account_holders_api.update_account_holder(request=json_request, id="id")Ruby
# Adyen Ruby API Library v10.1.2 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 = { :capabilities => { :sendToThirdParty => { :enabled => false } } } # Send the request result = adyen.balancePlatform.account_holders_api.update_account_holder(request_body, 'id')NodeJS (TypeScript)
// Adyen Node API Library v25.0.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 accountHolderCapability: Types.balancePlatform.AccountHolderCapability = { enabled: false }; const accountHolderUpdateRequest: Types.balancePlatform.AccountHolderUpdateRequest = { capabilities: { "sendToThirdParty": accountHolderCapability } }; // Send the request const balancePlatformAPI = new BalancePlatformAPI(client); const response = balancePlatformAPI.AccountHoldersApi.updateAccountHolder("id", accountHolderUpdateRequest); -
In the response, note the following parameters and their respective values for each capability:
enabled: falseallowed: trueverification status: valid
{ "balancePlatform": "YOUR_BALANCE_PLATFORM", "id": "AH32272223222B5D3755J3C3C", "legalEntityId": "LE00000000000000000000001", "description": "S.Hopper", "capabilities": { "sendToThirdParty": { "enabled": false, "allowed": true, "verificationStatus": "valid" } } }
Manage KYC
The Know Your Customer (KYC) checks are part of the verification process that Adyen performs to make sure that account holders have provided accurate information about their businesses.In your Customer Area, you can access a KYC summary and a detailed timeline of the entire verification process. You can also view and download any documents that account holders have uploaded.View KYC summary and timeline
You can view information about the verification process for account holders in your balance platform. This includes an overview of the current verification status for associated legal entities and a timeline of KYC-related events. You can use this information to help your users troubleshoot issues they experience during the onboarding process.To view KYC summary and timeline information in your Customer Area:-
Do one of the following:
- Go to Accounts & balances > Account holders and select an account holder ID from the table.
- Search for an account holder by selecting Search. You can use the account holder ID, account holder reference, or the ID of the linked legal entity.
- On the Account holder details page, select KYC timeline.
Possible KYC verification statuses for a legal entity
| Verification status | Description |
|---|---|
| Awaiting data | The KYC information for the legal entity has not yet been submitted. |
| In review | The KYC information for the legal entity is being reviewed by Adyen. |
| Verified | The KYC verification checks for the legal entity have passed. |
| Unsuccessful | The KYC verification checks for the legal entity have failed. For example, because of an invalid document or ID number. Review the KYC Timeline for more information about the verification errors and recommended remediating actions. To be verified, all the errors must be resolved. |
| Rejected | The legal entity has been rejected by Adyen. For example, because the organization is in a sanctions list. This status is final and any errors cannot be resolved by updating data or uploading documents. |
View KYC documents
To access the KYC documents tab, you must have the View KYC documents and Download KYC documents roles. Consider the privacy implications before granting these roles to any user.Based on your role, you may view only or view and download the documents that account holders have uploaded during their onboarding process for verification checks.In your Customer Area:-
Do one of the following:
- Go to Accounts & balances > Account holders and select an account holder ID from the table.
- Search for an account holder by selecting Search. You can use the account holder ID, account holder reference, or the ID of the linked legal entity.
- On the Account holder details page, select KYC documents.