askledgerDocs
REST-APIAdministrations
Documentatie

Get one record (by administration)

GET
/administrations/{administrationId}/{collection}/{id}

Fetch one record by collection and id, typically after a search returned it. Invoices and transactions include their lines.

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 get-record.

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

collection*string

Collection the record belongs to

Value in"contacts""invoices""ledger-accounts""items""tax-rates""payment-terms""journals""transactions"
id*string

AskLedger record id

Length1 <= length

Response Body

OK

application/json
  1. response

Customer and/or supplier

id*string

AskLedger contact id (con_…)

remoteId*string
code*string|null
name*string|null
email*string|null
kvk*|

Auditfile (XAF): partially supported.

vatNumber*|

Exact Online: not available.

isCustomer*boolean
isSupplier*boolean
blocked*boolean

Auditfile (XAF): not available.

ibans*array<string>

Bank account numbers (IBANs) of the contact, upper case without spaces. Auditfile (XAF): not available.

remoteStatus*|

Raw status in the package. Auditfile (XAF): not available.

remoteUpdatedAt*|

ISO 8601 timestamp. Auditfile (XAF): not available.

updatedAt*string

When AskLedger last saw this record change (ISO 8601)

deletedAt*|

When the record was deleted in the accounting package; null = not deleted

curl -X GET "https://example.com/administrations/string/contacts/string"
{  "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"}