Get account balance
GET
https://app.speybooks.com/api/v1/accounts/{id}/balanceReturns 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
idstringrequiredPrefixed 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
accountobjectSummary of the account.
Show child attributes
accountTypestringAccount type.
codestringAccount code.
idstringPrefixed account ID (e.g. acc_1200).
namestringAccount display name.
balanceobjectBalance breakdown from posted transactions.
Show child attributes
creditintegerTotal credit amount in pence (minor units).
debitintegerTotal debit amount in pence (minor units).
netintegerNet balance in pence (minor units). Debit minus credit.
Error codes
400Invalid ID format.
404Account not found.