delete_invoice

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 (the mcp scope 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.

json
{
  "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

NameTypeRequiredDescription
invoiceIdstringYes
Full input schema (JSON Schema)
json
{
  "additionalProperties": false,
  "properties": {
    "invoiceId": {
      "type": "string"
    }
  },
  "required": [
    "invoiceId"
  ],
  "type": "object"
}