Hämta ett dokument ur Fortnox
get_fortnox_documentGives the person a download link for a file from Fortnox, chosen by operation_id: an invoice, offer or order as PDF (InvoiceController_doShowAndPreview, OfferController_doShowAndPreview or OrderController_doShowAndPreview, path_params DocumentNumber; several numbers comma-separated or a range such as "101-122" give one link to a zip file, at most 50), an SIE (the Swedish standard file format for accounting data) file (SieController_doShow, path_params Type 1–4, query_params financialYear), a file from the archive (ArchiveController_doShow, path_params id) or the inbox (InboxController_doShow, path_params Id; several ids comma-separated give one zip link), or an Excel file (xlsx) of a report or list this connection offers, by its operation_id (for example more:aldersanalys_kund). Use when the person wants a file to open or keep. The file goes to the person through the link and does not pass through the conversation. Other operations are refused. Read-only. Fortnox API (https://api.fortnox.se/apidocs).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_key": "<company_key>",
"operation_id": "<operation_id>"
},
"name": "get_fortnox_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | ||
| fields | No | ||
| summarize | No | ||
| company_key | Yes | ||
| path_params | No | ||
| operation_id | Yes | ||
| query_params | No |