askledgerDocs
REST-APIAdministrations
Documentatie

List ledgers (by administration)

GET
/administrations/{administrationId}

List the administrations (ledgers) this company group (bedrijvengroep) has active, with the sync status of each data feed and the plan's data window. Call this first to get ledgerId values.

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 list-ledgers.

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

Response Body

OK

application/json
  1. response
plan*string

Subscription plan of the company group

Value in"free""pro""enterprise"
dataAvailableFrom*|

Invoices and transactions dated before this date (YYYY-MM-DD) are not available on this plan; null = all history

ledgers*array<>
curl -X GET "https://example.com/administrations/string"
{  "plan": "free",  "dataAvailableFrom": "string",  "ledgers": [    {      "id": "string",      "provider": "exact",      "remoteId": "string",      "name": "string",      "kvk": "string",      "vatNumber": "string",      "baseCurrency": "string",      "country": "string",      "current": true,      "sync": [        {          "name": "string",          "status": "string",          "rowsIngested": 0,          "lastSyncedAt": "string",          "lastError": "string"        }      ]    }  ]}