Cancel an invoice not yet delivered
sef_cancel_invoiceCancels a SEF sales invoice in Draft, New, or Sending error status after explicit user approval; use storno for Sent, Accepted, or Rejected invoices.
Instructions
Cancels a sales invoice on SEF. SEF allows this only for status Draft, New or Sending error; for Sent/Accepted/Rejected use sef_storno_invoice. Only call after explicit user approval.
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": {
"invoiceId": "<invoiceId>",
"comment": "<comment>"
},
"name": "sef_cancel_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | ||
| invoiceId | Yes |