Cancel invoice
Cancel an issued invoice with a reason. Cannot be undone.
MCP tool fakturownia_write → cancel_invoice
write Confirm
Cancels the invoice and records the reason at the top of the document. The newest document in the list cannot be cancelled, only deleted in the app, and receipts cannot be cancelled. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| cancel_invoice_id integer required | integer | Invoice ID from list_invoices. |
| cancel_reason string | string | Reason shown on the cancelled document. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fakturownia_write",
"arguments": {
"operation": "cancel_invoice",
"arguments": {
"cancel_invoice_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": 5104,
"status": "cancelled",
"cancel_reason": "Issued to the wrong client"
},
"isError": false
}