askledgerDocs
REST-APIAdministrations
Documentatie

List or search contacts (by administration)

GET
/administrations/{administrationId}/contacts

Find customers and suppliers by code, name or email, or by exact KvK number or IBAN, or page through them by name when query is omitted.

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-contacts.

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

query?string

Free-text search (fuzzy + full-text), ranked best first without total or cursor. Omit to page through all records

Length1 <= length
role?string

Only customers or only suppliers

Value in"customer""supplier"
kvk?string

Exact KvK (Chamber of Commerce) number

iban?string

IBAN of the contact (spaces and case ignored), e.g. from a supplier's invoice

Length1 <= length
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/contacts"
{  "items": [    {      "id": "string",      "remoteId": "string",      "code": "string",      "name": "string",      "email": "string",      "kvk": "string",      "vatNumber": "string",      "isCustomer": true,      "isSupplier": true,      "blocked": true,      "ibans": [        "string"      ],      "remoteStatus": "string",      "remoteUpdatedAt": "string",      "updatedAt": "string",      "deletedAt": "string"    }  ],  "total": 0,  "nextCursor": "string"}