api_request
Send custom Fortnox API requests to endpoints not covered by other tools, with dry-run previews to test calls before changing live data.
Instructions
Any Fortnox API call the other tools don't cover. path starts with /3/ (classic API: bodies wrapped in the resource key, e.g. {"Article": {...}}) or /api/warehouse/ (bare JSON). Non-GET calls change live data, and so do some GETs (e.g. /3/invoices/{n}/email sends the invoice). With dry_run=true nothing is sent, GETs included.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "api_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| method | Yes | ||
| params | No | ||
| dry_run | No |