cancel_invoice
Cancel an invoice and create a credit note in Fakturia, optionally emailing the customer and using the original invoice address.
Instructions
Cancel an invoice in Fakturia. This creates a cancellation (credit note) for the invoice. Optionally control whether a cancellation email is sent to the customer and whether to use the invoice address for the cancellation document.
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": {
"invoiceNumber": "<invoiceNumber>"
},
"name": "cancel_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceNumber | Yes | The unique invoice number identifying the invoice to cancel. | |
| useInvoiceAddress | No | When true, uses the original invoice address for the cancellation document instead of the current customer address. | |
| sendMailToCustomer | No | When true, sends a cancellation notification email to the customer. |