Skip to main content

Account balance history

End-of-month balance derived from transactions. Requires Authorization: Bearer with a Better Auth session token.
1 min read
get/finance/profiles/{studioId}/accounts/{accountId}/balance-history
Request example
Response
get/finance/profiles/{studioId}/accounts/{accountId}/balance-history

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Identifier or key studioId.
accountIdstringrequired#
Identifier or key accountId.

Query parameters

monthsinteger#
Number of months to include (1-24, default 6).

Default: 6

Responses

application/json
OK.
dataobject[]required#
Show child attributes
monthKeystringrequired#
endBalanceCentsintegerrequired#
incomeCentsintegerrequired#
expenseCentsintegerrequired#
request_idstring#