---
title: "Update bank account settings"
method: PATCH
path: "/bank-accounts/{bankAccountId}"
tags: ["Banking"]
---

# Update bank account settings

`PATCH /bank-accounts/{bankAccountId}`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/bank-accounts/{bankAccountId}`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Partial update of bank-account settings (name, number, institution, type, active flag, chart mapping, and lowBalanceThreshold — integer cents, null clears the low-balance alert). chartAccountId must belong to the company. Remapping is refused with 409 while the current chart account has posted entries, because they would stay behind.

## Path parameters

- `bankAccountId` string, uuid, required

## Request body

- object
  - `accountName` string
  - `accountNumber` string, nullable
  - `bankName` string, nullable
  - `accountType` 'checking' | 'savings' | 'credit_card' | 'cash' | 'loan' | 'investment' | 'other'
  - `chartAccountId` string, uuid, nullable
  - `isActive` boolean
  - `lowBalanceThreshold` integer, nullable: Low-balance alert threshold in cents; null clears it

## Response `200`

Updated bank account

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
