Bookkeep invoice
Book a saved invoice. A booked invoice can no longer be changed.
MCP tool fortnox_write → bookkeep_invoice
write Confirm
Books a saved customer invoice, as the Bokför button does, and returns its voucher number. After booking Fortnox does not allow changes to the invoice, so check the totals first with get_invoice. Fails if the invoice is already booked or the financial year does not exist. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_number string required | string | Invoice number from list_invoices or create_invoice. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fortnox_write",
"arguments": {
"operation": "bookkeep_invoice",
"arguments": {
"invoice_number": "invoice number"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_number": "2381",
"state": "booked",
"voucher": "A 143",
"total": 15000,
"currency": "SEK"
},
"isError": false
}