---
title: "Upsert bank account balance"
method: PUT
path: "/v1/bank-accounts/{bankAccountId}/balance"
tags: ["v1 - Bank Accounts"]
---

# Upsert bank account balance

`PUT /v1/bank-accounts/{bankAccountId}/balance`

## Request

- Base URL: `https://light.inc` (the document declares no server; this is the origin it was published from)
- URL: `https://light.inc/v1/bank-accounts/{bankAccountId}/balance`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Creates or updates the opening balance for a bank account. Only one balance per bank account is allowed — subsequent calls update the existing balance.

## Path parameters

- `bankAccountId` string, uuid, required

## Request body

- ExternalUpsertBankAccountBalanceRequestV1Model
  - `balanceAt` string, date-time, nullable: Timestamp of the balance (opening balance date). Defaults to current timestamp if not provided.
  - `balance` integer, required: Balance amount in minor units (e.g. cents)

## Response `default`

default response

- ExternalBankAccountBalanceV1Model
  - `id` string, uuid: Unique identifier for the bank account balance
  - `bankAccountId` string, uuid: ID of the bank account
  - `balanceAt` string, date-time: Timestamp of the balance (opening balance date)
  - `balance` integer: Balance amount in minor units (e.g. cents)

---

[API](https://skmtc.dev/light/apis/light-api.md) - [All operations](https://skmtc.dev/light/apis/light-api/llms.txt) - [OpenAPI document](https://skmtc.dev/light/apis/light-api/revisions/84f51306f648?raw)
