---
title: "Create or update a bank account balance"
method: POST
path: "/bank_account_balances"
---

# Create or update a bank account balance

`POST /bank_account_balances`

Creates a balance for the specified bank account. If a balance already exists for the same date and balance type, it will be updated with the new amount (upsert behavior).

## Request body

- object
  - `bank_account_id` string, required — ID of the bank account
  - `date` string, date, required — The date of the balance
  - `balance_type` 'opening_ledger' | 'closing_ledger' | 'current_ledger' | 'opening_available' | 'opening_available_next_business_day' | 'closing_available' | 'current_available' | 'previously_closed_book' | 'other', required — The type of balance
  - `amount_cents` integer, required — The balance amount in cents (e.g., 1234 = $12.34)

## Response `201`

Balance created or updated

- BankAccountBalance
  - `id` integer — Unique numeric identifier
  - `bank_account_id` integer, required — ID of the bank account this balance belongs to
  - `date` string, date, required — The date of the balance
  - `balance_type` 'opening_ledger' | 'closing_ledger' | 'current_ledger' | 'opening_available' | 'opening_available_next_business_day' | 'closing_available' | 'current_available' | 'previously_closed_book' | 'other', required — The type of balance
  - `amount_cents` integer, required — The balance amount in cents (e.g., 1234 = $12.34)
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized
- `422` — Validation error

---

[API](https://skmtc.net/endclose/apis/end-close-api.md) · [All operations](https://skmtc.net/endclose/apis/end-close-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/endclose/end-close-api/revisions/613ceff68dc7/schema)
