Läs innehållet i ett dokument
read_fortnox_documentReturns the text of a Fortnox document for you to read, chosen by operation_id: an invoice, offer or order PDF (InvoiceController_doShowAndPreview, OfferController_doShowAndPreview or OrderController_doShowAndPreview, path_params DocumentNumber), an SIE (the Swedish standard file format for accounting data) file (SieController_doShow, path_params Type 1–4, query_params financialYear), or a file from the archive (ArchiveController_doShow, path_params id) or the inbox (InboxController_doShow, path_params Id). Use when you need to check what a document says. Text found by text recognition (OCR) in a scanned file is marked as such, and a scan without readable text is refused. A camt.053 bank statement (the ISO 20022 bank statement format) comes back as rows: date, amount, direction, counterparty, reference. Other documents 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": "read_fortnox_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_key | Yes | ||
| path_params | No | ||
| operation_id | Yes | ||
| query_params | No |