askledgerDocs
REST-APIAdministrations
Documentatie

List open payables (by administration)

GET
/administrations/{administrationId}/payables

List what is still to be paid to suppliers (open payables / openstaande crediteuren): one item per open purchase invoice, credit note or unmatched payment, with the open amount, due date and days overdue. Use dueTo for what falls due before a date (e.g. to plan payments), contact for one supplier and kind 'unmatched' for payments still to be matched. Reads the outstanding items list of the accounting package (Exact: Openstaande posten), refreshed with every sync; items paid since then may still show. Sorted by due date, oldest first. totals covers every matching item, not just this page. All open items are included, also those dated before list-ledgers' dataAvailableFrom. An item without number from a bank or cash journal is a payment or receipt not yet matched to an invoice (af te letteren, usually a negative amount); use kind 'unmatched' to list only those, and compare them with open invoices of the same contact and amount to suggest a match.

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

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

contact?string

Supplier contact id (con_…) or part of the name

Length1 <= length
minDaysOverdue?integer

Only items at least this many days past their due date (1 = all overdue items)

Range0 <= value <= 9007199254740991
dueFrom?string

Due 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
dueTo?string

Due 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
kind?string

invoice = only open invoices and credit notes; unmatched = only payments from a bank or cash journal not yet matched to an invoice (af te letteren). Default: both

Value in"invoice""unmatched"
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

totals*array<>

Per currency: count and sum of all matching items still open (not only this page), and the overdue part

curl -X GET "https://example.com/administrations/string/payables"
{  "items": [    {      "id": "string",      "remoteId": "string",      "type": "receivable",      "contactId": "string",      "contactCode": "string",      "contactName": "string",      "number": "string",      "issueDate": "string",      "dueDate": "string",      "daysOverdue": -9007199254740991,      "currency": "string",      "openAmount": 0,      "amountInTransit": 0,      "reference": "string",      "description": "string",      "journalCode": "string",      "remoteUpdatedAt": "string",      "updatedAt": "string",      "deletedAt": "string"    }  ],  "total": 0,  "nextCursor": "string",  "totals": [    {      "currency": "string",      "count": -9007199254740991,      "openAmount": 0,      "overdueAmount": 0    }  ]}