# Update Account

Update an existing Banking Connectivity account. Only include the fields you want to change.

**PATCH** `/banking/accounts/{account_id}`

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

Update Account (Banking Connectivity)

## Authorization

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

## Path parameters

- `account_id` (string, required)
  The unique identifier of the account. Found on the [WHITELABEL dashboard](https://dashboard.whitelabel.com/) (UUID, 36 chars).

## Body

Content type: `application/json`

- `account_id` (string, required)
  The unique identifier of the merchant's WHITELABEL account (UUID, 36 characters).
- `account_type` ("CHECKING" | "SAVINGS" | "INVESTMENT")
  The updated account type.

Example:

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

## Responses

### 200

OK

- `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)
  - `account_id` (string)
- `account_type` ("CHECKING" | "SAVINGS" | "INVESTMENT")
- `status` ("ACTIVE" | "PENDING" | "INACTIVE")
- `account_number` (string)
- `routing_number` (string)
- `iban` (string)
- `currency` (string)
- `balance` (object)
  - `available` (number)
  - `current` (number)
  - `pending` (number)
- `account_details` (object)
  - `account_name` (string)
  - `sort_code` (string)
  - `bsb` (string)
  - `swift` (string)
- `payment_rails` (object)
  - `incoming` (string[])
  - `outgoing` (string[])
- `supports_book_transfers` (boolean)
- `created_at` (string)
- `updated_at` (string)

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": 5000,
    "current": 5000,
    "pending": 0
  },
  "account_details": {
    "account_name": "John Doe - Primary Checking",
    "sort_code": null,
    "bsb": null,
    "swift": null
  },
  "payment_rails": {
    "incoming": [
      "ACH",
      "WIRE"
    ],
    "outgoing": [
      "ACH",
      "WIRE"
    ]
  },
  "supports_book_transfers": true,
  "created_at": "2026-02-01T10:10:00Z",
  "updated_at": "2026-02-01T12:00:00Z"
}
```

### 400

Bad Request

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

Example:

```json
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "Request validation failed"
  ],
  "http_code": 400
}
```

### 404

Not Found

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

Example:

```json
{
  "code": "ACCOUNT_NOT_FOUND",
  "messages": [
    "Account not found"
  ],
  "http_code": 404
}
```