Skip to main content
GET
Find ledger entries

Finding ledger entries

Ledger entries are returned as the individual transactions they consist of, newest first. For example, the following request returns all transactions posted to the bank account in January 2025:
All filters are optional and can be combined:
  • from and to limit the results to a date range. Either can be used on its own.
  • account returns transactions in which the account appears as debit or as credit account.
  • description searches the description text of transactions.

VAT transactions

A ledger entry posted with a tax code consists of two transactions: the net transaction and a VAT transaction booking the VAT debt. Both are returned, and they reference each other through linkedTransactionIds. The VAT transaction has isVatTransaction set to true, so you can filter it out if you only need the net bookings.

Pagination

Results are paginated with limit (default 30, at most 200) and skip. To page through all results, increase skip by the limit until fewer results than the limit are returned.

Authorizations

x-api-token
string
header
required

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

Query Parameters

from
string<date>

Only return transactions dated on or after this date (YYYY-MM-DD).

to
string<date>

Only return transactions dated on or before this date (YYYY-MM-DD).

account
integer

Only return transactions posted to this account number, either as debit or as credit account.

Required range: 1000 <= x <= 9999
description
string

Only return transactions whose description contains this text.

Maximum string length: 128
limit
number
default:30

Pagination limit for the results. Defaults to 30 if not specified. Maximum allowed value is 200.

Required range: x <= 200
skip
number

Pagination offset for the results

Response

Successfully returns the matching transactions, newest first.

transactions
Transaction · object[]
required

The transactions matching the query. Ledger entries with VAT consist of a net transaction and a linked VAT transaction, which are both returned.