List or search invoices
Find sales and/or purchase invoices by description, contact, number or reference, and/or filter by type, date range, amount, contact, status and journal. Without query, results are sorted by invoice date (newest first) with a total count. Each invoice includes its lines (item, quantity, unit price, amount excl. VAT, VAT, ledger account).
Requires the ledger:read scope (Lezen). Same operation as the MCP tool search-invoices.
bearerAuthorizationBearer <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.
ledgerId*stringLedger (administration) id, from list-ledgers
1 <= lengthquery?stringFree-text search (fuzzy + full-text), ranked best first without total or cursor. Omit to page through all records
1 <= lengthtype?stringsales or purchase; omit for both
"sales""purchase"status?stringProcessing status in the package
"draft""pending""posted""rejected""unknown"contact?stringContact id (con_…) or part of the contact name
journalCode?stringJournal code
issuedFrom?stringInvoice date from (YYYY-MM-DD, inclusive)
^(?:(?:\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])))$dateissuedTo?stringInvoice date to (YYYY-MM-DD, inclusive)
^(?:(?:\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])))$dateminAmount?numberMinimum total in the ledger's base currency
maxAmount?numberMaximum total in the ledger's base currency
includeLines?booleanInclude invoice lines (default true)
limit?integerMax results (default 20; max 50 with query, 100 without)
1 <= value <= 100cursor?stringnextCursor of the previous page
1 <= lengthmodifiedSince?stringOnly records that changed in AskLedger at or after this moment (ISO 8601), oldest change first. Use the previous call's time to sync incrementally
^(?:(?:\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)))$date-timeincludeDeleted?booleanInclude records deleted in the accounting package (default false)
OK
application/json- 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/ledgers/string/invoices"{ "items": [ { "id": "string", "remoteId": "string", "type": "sales", "documentType": "invoice", "status": "draft", "number": "string", "contactId": "string", "contactName": "string", "issueDate": "string", "dueDate": "string", "currency": "string", "totalAmount": 0, "totalAmountBase": 0, "reference": "string", "description": "string", "journalCode": "string", "paymentTermCode": "string", "remoteStatus": "string", "remoteType": "string", "remoteUpdatedAt": "string", "updatedAt": "string", "deletedAt": "string", "lines": [ { "id": "string", "invoiceId": "string", "lineNumber": -9007199254740991, "description": "string", "itemId": "string", "itemCode": "string", "quantity": 0, "unitCode": "string", "unitPrice": 0, "discount": 0, "netAmount": 0, "netAmountBase": 0, "taxRateCode": "string", "taxCategory": "nl_high", "taxRate": 0, "taxAmount": 0, "taxAmountBase": 0, "ledgerAccountId": "string", "ledgerAccountCode": "string", "costCenter": "string", "costUnit": "string", "projectCode": "string" } ] } ], "total": 0, "nextCursor": "string"}