Deletes a draft invoice by invoiceId. Only DRAFT invoices can be deleted.
Use with an AI agent
Export this page as Markdown or bundle it with a task for your agent.
Try a task
Preview the prompt that will be copied
Access
- Effect: Deletes data
- Required scope:
write(themcpscope also grants it)
Example request
The JSON-RPC message an MCP client sends to call this tool. Your client builds it for you; this is for reference and debugging in a tool such as MCP Inspector.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "delete_invoice",
"arguments": {
"invoiceId": "demo_invoice_01"
}
}
}Example IDs refer to fictional demo data. Replace them with IDs from your account before calling the real server.
Description
Deletes a draft invoice by invoiceId. Only DRAFT invoices can be deleted.Input parameters
| Name | Type | Required | Description |
|---|---|---|---|
invoiceId | string | Yes |
Full input schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"invoiceId": {
"type": "string"
}
},
"required": [
"invoiceId"
],
"type": "object"
}