Search

Are you looking for test card numbers?

Would you like to contact support?

Issuin icon

Account holders and balance accounts

Create account holders and balance accounts.

Before you can issue a card, you have to create the following resources:
  • An accountHolder that is linked to their legalEntity, and owns balance accounts.
  • A balanceAccount, which holds the funds of an account holder. The balance account is from which a card deducts funds.

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:

  • A user requests additional cards to keep separate balances for their checking and savings accounts.
  • A user requests additional cards with separate balances for their spouse or other family members.

Create an account holder

To create an account holder, make a POST /accountHolders request specifying:

  • The legalEntityId, the unique identifier of the account holder's corresponding legal entity.
  • The balancePlatform identifier. Required only if your API credentials has access to multiple balance platforms.

In your request, you can also include a human-readable description which can be useful for your staff and support agents when identifying account holders.

Here is an example of how you can create an account holder.

Create an account holder
curl https://balanceplatform-api-test.adyen.com/bcl/v1/accountHolders \
-u "ws@BalancePlatform.YOUR_BALANCE_PLATFORM":"YOUR_WS_PASSWORD" \
-H "content-type: application/json" \
-d '{
  "{hint:Required if you have multiple balance platforms}balancePlatform{/hint}": "YOUR_BALANCE_PLATFORM_ACCOUNT",
  "{hint:Free-text field}description{/hint}":"S.Hopper - Staff 123",
  "{hint:Unique legal entity ID}legalEntityId{/hint}":"LE1249248458283"
}'

The response returns the new accountHolder resource, identified by its unique id. The response also includes a capabilities array. You'll find out more about this array later when you check the account holder's capabilities.

Response
{
    "balancePlatform": "YOUR_BALANCE_PLATFORM_ACCOUNT",
    "description": "S.Hopper - Staff 123",
    "id": "AHA1B2C3D4E5F6G7H8I9J0",
    "status": "Active",
    "legalEntityId":"LE959JV223222D5DL3T7HGJ86",
    "capabilities":{
      "issueCard":{
        "enabled":"true",
        "requested":"true",
        "allowed":"false",
        "verificationStatus":"pending"
     }
   }
}

Next, you need to create a corresponding balance account to hold the account holder's funds.

Create a balance account

All card transactions are processed against the associated 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 your staff differentiate between multiple balance accounts under one account holder.

Here is an example for creating a new balance account for account holder with id AHA1B2C3D4E5F6G7H8I9J0.

Create balance account
curl https://balanceplatform-api-test.adyen.com/bcl/v1/balanceAccounts \
-H 'x-api-key: YOUR_BALANCE_PLATFORM_API_KEY'
-H "content-type: application/json" \
-d '{
  "accountHolderId":"AHA1B2C3D4E5F6G7H8I9J0",
  "{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 which contains information about the account's funds.

Response
{
  "accountHolderId":"AHA1B2C3D4E5F6G7H8I9J0",
  "defaultCurrencyCode": "EUR",
  "description":"S.Hopper - Main balance account",
  "balances": [
        {
            "available": 0,
            "balance": 0,
            "currency": "EUR",
            "reserved": 0
        }
  ],
  "id":"BAB8B2C3D4E5F6G7H8D9J6GD4",
  "status":"Active"
}
The balance account will have a zero initial balance. Before a user can use their card, you have to add funds to their balance account.

Next steps

After you've created the account holder, create cards for them and add funds to their balance account.