List customer invoices
list_invoicesLists customer invoices from Fortnox, one page per call, with the Fortnox filters unpaid, unpaidoverdue, fullypaid, unbooked and cancelled and search fields such as customer, invoice number, OCR number (Swedish payment reference), period and project. Use when the person asks to search or list customer invoices by number, customer, period or another Fortnox field. Amounts are in each invoice's own currency, and one page is not the whole ledger. summarize.all_pages gives totals over every page. Read-only. Fortnox API GET /3/invoices (https://api.fortnox.se/apidocs).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| page | No | ||
| sent | No | ||
| label | No | ||
| limit | No | ||
| credit | No | ||
| expand | No | Open each record (rows) | |
| fields | No | Only these columns | |
| filter | No | One of: cancelled, fullypaid, unpaid, unpaidoverdue, unbooked | |
| offset | No | ||
| sortby | No | One of: customername, customernumber, documentnumber, invoicedate, ocr, total | |
| todate | No | ||
| project | No | ||
| currency | No | ||
| fromdate | No | ||
| sortorder | No | One of: ascending, descending | |
| summarize | No | Group and total on the server | |
| costcenter | No | ||
| invoicetype | No | ||
| customername | No | ||
| lastmodified | No | ||
| notcompleted | No | ||
| ourreference | No | ||
| articlenumber | No | ||
| yourreference | No | ||
| customernumber | No | ||
| documentnumber | No | ||
| tofinalpaydate | No | ||
| accountnumberto | No | ||
| yourordernumber | No | ||
| fromfinalpaydate | No | ||
| accountnumberfrom | No | ||
| articledescription | No | ||
| externalinvoicereference1 | No | ||
| externalinvoicereference2 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||