# Create Account

Create a bank account for an onboarded entity. The onboarding referenced by `onboarding_id` must have `status: SUCCEEDED`.

The response includes region-specific banking identifiers. See [Account identifiers by region](/reference/banking-connectivity#account-identifiers-by-region) for which fields are returned per region.

**POST** `/banking/accounts`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Create Account (Banking Connectivity)

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `x-idempotency-key` (string, required)
  Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is retried due to network issues or timeouts. See [authentication](/reference/authentication#idempotency) for details (UUID).

## Body

Content type: `application/json`

- `account_id` (string, required)
  The unique identifier of the merchant's WHITELABEL account. Found on the [WHITELABEL dashboard](https://dashboard.whitelabel.com/) (UUID, 36 characters).
- `onboarding_id` (string, required)
  The `id` of a successful onboarding obtained from [Create Entity Onboarding](/reference/create-entity-onboarding). The onboarding must have `status: SUCCEEDED`.
- `account_type` ("CHECKING" | "SAVINGS" | "INVESTMENT", required)
  The type of bank account to create.
- `currency` (string, required)
  The currency for the account ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217), 3 characters). Supported values depend on the provider region: `USD` (US), `GBP` (UK), `AUD` (Australia), `EUR` (EU).

Example:

```json
{
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "onboarding_id": "onb_990e8400-e29b-41d4-a716-446655440000",
  "account_type": "CHECKING",
  "currency": "USD"
}
```

## Responses

### 200

### 201

Created

- `id` (string)
  The unique identifier of the Banking Connectivity account (prefixed `acct_`).
- `entity_id` (string)
  The `id` of the entity associated with this account.
- `onboarding_id` (string)
  The `id` of the onboarding used to create this account.
- `account_id` (string)
  The merchant's WHITELABEL account identifier.
- `provider` (object)
  Provider-side identifiers for the account.
  - `account_id` (string)
    The provider's internal account identifier.
- `account_type` ("CHECKING" | "SAVINGS" | "INVESTMENT")
  The type of bank account.
- `status` ("ACTIVE" | "PENDING" | "INACTIVE")
  The current status of the account.
- `account_number` (string)
  The bank account number.
- `routing_number` (string)
  The US routing number. Present for US-based accounts.
- `iban` (string)
  The International Bank Account Number. Present for UK and EU accounts.
- `currency` (string)
  The account currency ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)).
- `balance` (object)
  The current balance information for the account.
  - `available` (number)
    The available balance that can be used for transfers.
  - `current` (number)
    The current total balance including pending transactions.
  - `pending` (number)
    The amount currently in pending transactions.
- `account_details` (object)
  Additional account details and region-specific identifiers.
  - `account_name` (string)
    The display name for the account.
  - `sort_code` (string)
    The UK sort code. Present for UK-based accounts.
  - `bsb` (string)
    The Australian BSB number. Present for Australia-based accounts.
  - `swift` (string)
    The SWIFT/BIC code for international transfers.
- `payment_rails` (object)
  The payment rails supported by this account.
  - `incoming` (string[])
    Payment rails available for receiving funds.
  - `outgoing` (string[])
    Payment rails available for sending funds.
- `supports_book_transfers` (boolean)
  Whether the account supports internal (book) transfers between accounts on the same provider.
- `created_at` (string)
  The timestamp when the account was created (ISO 8601).
- `updated_at` (string)
  The timestamp when the account was last updated (ISO 8601).

Example:

```json
{
  "id": "acct_aa0e8400-e29b-41d4-a716-446655440000",
  "entity_id": "ent_660e8400-e29b-41d4-a716-446655440000",
  "onboarding_id": "onb_990e8400-e29b-41d4-a716-446655440000",
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "provider": {
    "account_id": "col_bank_account_789"
  },
  "account_type": "CHECKING",
  "status": "ACTIVE",
  "account_number": "1234567890",
  "routing_number": "123456789",
  "iban": null,
  "currency": "USD",
  "balance": {
    "available": 0,
    "current": 0,
    "pending": 0
  },
  "account_details": {
    "account_name": "John Doe - Checking",
    "sort_code": null,
    "bsb": null,
    "swift": null
  },
  "payment_rails": {
    "incoming": [
      "ACH_STANDARD",
      "WIRE"
    ],
    "outgoing": [
      "ACH_STANDARD",
      "WIRE"
    ]
  },
  "supports_book_transfers": true,
  "created_at": "2026-02-01T10:10:00Z",
  "updated_at": "2026-02-01T10:10:00Z"
}
```

### 400

Bad Request

- `code` (string)
- `messages` (string[])
- `http_code` (integer)

Example:

```json
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "Onboarding status must be SUCCEEDED to create an account"
  ],
  "http_code": 400
}
```

### 404

Not Found

- `code` (string)
- `messages` (string[])
- `http_code` (integer)

Example:

```json
{
  "code": "ONBOARDING_NOT_FOUND",
  "messages": [
    "Onboarding not found"
  ],
  "http_code": 404
}
```