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
id string requiredPrefixed account ID (e.g. acc_1200).
Response
200 Returns the current balance for the account, calculated from posted transaction lines. All amounts in pence (minor units).
Show response fields
account objectSummary of the account.
Show child attributes
accountType stringAccount type.
code stringAccount code.
id stringPrefixed account ID (e.g. acc_1200).
name stringAccount display name.
balance objectBalance breakdown from posted transactions.
Show child attributes
credit integerTotal credit amount in pence (minor units).
debit integerTotal debit amount in pence (minor units).
net integerNet balance in pence (minor units). Debit minus credit.
Error codes
400 Invalid ID format.
404 Account not found.