Delete draft invoice (Billy)
billy_delete_draft_invoiceDeletes a draft invoice that has never been approved or sent, and refuses deletion for any invoice already approved or sent.
Instructions
Delete a draft invoice that was never approved or sent. Reads it first and refuses unless it is a draft with no approval and sent state unsent. An approved invoice can never be deleted here; it is credited in Billy. Off unless writes are enabled (BILLY_ENABLE_WRITES, or the gateway host policy enableWrites).
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>"
},
"name": "billy_delete_draft_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The id of the draft invoice. |