askledgerDocs
REST-APIRecords
Documentatie

Get one record

GET
/ledgers/{ledgerId}/{collection}/{id}

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

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

ledgerId*string

Ledger (administration) id, from list-ledgers

Length1 <= length
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/ledgers/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"}