askledgerDocs
REST-APIAdministrations
Documentatie

List transactions (by administration)

GET
/administrations/{administrationId}/transactions

List general ledger transactions (boekingen / grootboekmutaties) with their lines, newest first, filtered by date range, journal type or code, ledger account, contact and status. Each line has the ledger account and a signed amount (debit positive, credit negative); the lines of a transaction balance to zero. Use ledgerAccount to see what was booked on one account, journalType 'bank' for bank transactions. For totals per month use list-account-balances or get-cash-flow instead of adding up pages. Transactions dated before list-ledgers' dataAvailableFrom are not available.

Same as the ledger endpoint, addressed by LedgerSuite administration id instead of ledgerId. Other LedgerSuite products call this with their own client_credentials token (audience urn:ledgersuite:askledger, scope askledger:read) for administrations that include them; company group API keys and OAuth tokens work too.

Requires the ledger:read scope (Lezen). Same operation as the MCP tool search-transactions.

Authorization

bearer
headerAuthorizationBearer <token>

A company group API key (al_live_…, created at /dashboard/api), an OAuth access token from the same authorization flow MCP clients use, or (other LedgerSuite products, /administrations routes only) a LedgerSuite client_credentials token.

Path Parameters

administrationId*string

LedgerSuite administration id; its linked ledger is used

Query Parameters

dateFrom?string

Transaction date from (YYYY-MM-DD, inclusive)

Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
Formatdate
dateTo?string

Transaction date to (YYYY-MM-DD, inclusive)

Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
Formatdate
journalType?string

Only transactions in journals of this type, e.g. bank

Value in"sales""purchase""bank""cash""general""other"
journalCode?string

Journal code

Length1 <= length
ledgerAccount?string

Only transactions with a line on this ledger account (id lac_… or code)

Length1 <= length
contact?string

Contact id (con_…)

Length1 <= length
status?string
Value in"pending""posted""unknown"
includeLines?boolean

Include transaction lines (default true)

limit?integer

Max results (default 20; max 50 with query, 100 without)

Range1 <= value <= 100
cursor?string

nextCursor of the previous page

Length1 <= length
modifiedSince?string

Only records that changed in AskLedger at or after this moment (ISO 8601), oldest change first. Use the previous call's time to sync incrementally

Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
includeDeleted?boolean

Include records deleted in the accounting package (default false)

Response Body

OK

application/json
  1. response
items*array<>
total*|

Total matching records; null for a free-text search, which ranks instead of counting

nextCursor*|

Pass as cursor to get the next page; null on the last page

curl -X GET "https://example.com/administrations/string/transactions"
{  "items": [    {      "id": "string",      "remoteId": "string",      "entryNumber": "string",      "date": "string",      "financialYear": -9007199254740991,      "financialPeriod": -9007199254740991,      "journalCode": "string",      "journalType": "sales",      "status": "pending",      "description": "string",      "contactId": "string",      "contactName": "string",      "invoiceNumber": "string",      "reference": "string",      "remoteType": "string",      "remoteUpdatedAt": "string",      "updatedAt": "string",      "deletedAt": "string",      "lines": [        {          "id": "string",          "transactionId": "string",          "remoteId": "string",          "lineNumber": -9007199254740991,          "date": "string",          "ledgerAccountId": "string",          "ledgerAccountCode": "string",          "amount": 0,          "amountBase": 0,          "currency": "string",          "taxRateCode": "string",          "taxCategory": "nl_high",          "taxAmount": 0,          "contactId": "string",          "description": "string",          "costCenter": "string",          "costUnit": "string",          "projectCode": "string"        }      ]    }  ],  "total": 0,  "nextCursor": "string"}