Get account balance

GEThttps://app.speybooks.com/api/v1/accounts/{id}/balance

Returns the current balance for an account, calculated from all posted transaction lines. The response includes total debits, total credits, and the net balance, all in minor units (pence).

Only posted transactions are included; draft transactions are excluded from the balance calculation.

Path parameters

idstringrequired
Prefixed account ID (e.g. acc_1200).

Response

200Returns the current balance for the account, calculated from posted transaction lines. All amounts in pence (minor units).
Show response fields
accountobject
Summary of the account.
Show child attributes
accountTypestring
Account type.
codestring
Account code.
idstring
Prefixed account ID (e.g. acc_1200).
namestring
Account display name.
balanceobject
Balance breakdown from posted transactions.
Show child attributes
creditinteger
Total credit amount in pence (minor units).
debitinteger
Total debit amount in pence (minor units).
netinteger
Net balance in pence (minor units). Debit minus credit.

Error codes

400Invalid ID format.
404Account not found.