Cancel invoice
Cancel an unpaid invoice by creating a cancellation invoice (Stornorechnung).
MCP tool sevdesk_write → cancel_invoice
Cancels an invoice that is open or due, like Rechnung stornieren. sevdesk creates a cancellation invoice that refers to the original, sets it to paid and sets the original to cancelled. The cancellation invoice takes the next free number of your invoice number range. A paid invoice cannot be cancelled this way; it needs a credit note. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id string required | string | Invoice ID from list_invoices. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sevdesk_write",
"arguments": {
"operation": "cancel_invoice",
"arguments": {
"invoice_id": "invoice_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": "41872600",
"invoice_number": "RE-1040",
"status": "cancelled",
"cancellation_invoice_id": "41873244",
"cancellation_invoice_number": "RE-1044"
},
"isError": false
}