Prepare attaching a file to a voucher
propose_create_voucher_file_connectionPrepares attaching a file in Fortnox to a voucher, given the file id, voucher series and voucher number. Use when the person asks to attach a receipt or document to a voucher. This tool only prepares the change and sends nothing to Fortnox; the change is sent after the person approves it, as the answer describes. Body: {"VoucherFileConnection": {…}}; required: FileId, VoucherNumber, VoucherSeries. Fortnox API POST /3/voucherfileconnections (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": "propose_create_voucher_file_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The request body, as Fortnox expects it: an object | |
| financialyear | No | Fortnox financial-year id required when connecting a file to a voucher. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||