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

Parameters: cancel_invoice
NameTypeDescription
cancel_invoice_id integer required integer Invoice ID from list_invoices.
cancel_reason string string Reason shown on the cancelled document.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "fakturownia_write",
    "arguments": {
      "operation": "cancel_invoice",
      "arguments": {
        "cancel_invoice_id": 1
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "invoice_id": 5104,
    "status": "cancelled",
    "cancel_reason": "Issued to the wrong client"
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.