Skip to main content
GET
List account balances

Balances at a date

Pass the date you are interested in to receive the balance of every account at the end of that day:
To read only some accounts, list their numbers in accounts:

Reading the balances

  • Amounts are integers in cents, so 1250000 means 12,500.00. balance is in CHF; foreign currency accounts additionally report their balance in their own currency under fx, also in cents.
  • A balance is positive in the account’s normal direction: a debit balance for assets and expenses, a credit balance for liabilities and income.
  • Balances are calculated within the fiscal year that contains the date. Balance sheet accounts include their opening balance, while income and expense accounts count from the start of that fiscal year. A date outside every fiscal year returns fiscal-year/not-found.
  • The closing entries of a fiscal year are left out, so the balances of a closed fiscal year still show its result.

Authorizations

x-api-token
string
header
required

API token for authentication. Obtain from your Infinity account settings.

Query Parameters

date
string<date>

The date whose closing balances to return in YYYY-MM-DD format. Must lie within a fiscal year. Defaults to today.

accounts
string

Only return the balances of these accounts, as a comma-separated list of account numbers. Returns the whole chart of accounts if omitted.

Pattern: ^\d{4}(,\d{4})*$

Response

The balances of the requested accounts at the end of the given date, sorted by account number.

date
string<date>
required

The date the balances apply to in YYYY-MM-DD format. Every ledger entry dated on or before this day is included.

Example:

"2025-06-30"

fiscalYear
FiscalYear · object
required

A fiscal year of the organisation.

balances
AccountBalance · object[]
required