API Account Object (#6915)

* api change

* docs

* lint

* release notes

* spelling

* [autofix.ci] apply automated fixes

* spelling

* whoopsie, thanks rabbit

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
J B
2026-02-12 19:18:49 -05:00
committed by GitHub
parent f8b4e87a67
commit cf5fe67e7b
3 changed files with 18 additions and 0 deletions

View File

@@ -161,6 +161,16 @@ export const objects = {
</span>
),
},
{
name: 'balance_current',
type: 'number | null',
description: (
<span>
The current balance of the account as reported by bank sync. Can also
be set manually. Defaults to <code>null</code>
</span>
),
},
],
category: [

View File

@@ -14,6 +14,7 @@ import * as models from './models';
export type APIAccountEntity = Pick<AccountEntity, 'id' | 'name'> & {
offbudget?: boolean;
closed?: boolean;
balance_current?: number | null;
};
export const accountModel = {
@@ -25,6 +26,7 @@ export const accountModel = {
name: account.name,
offbudget: account.offbudget ? true : false,
closed: account.closed ? true : false,
balance_current: account.balance_current ?? null,
};
},

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [totallynotjon]
---
The Account API now allows `balance_current` to be set, making balances visible for reconciliation when using custom importers.