delete_custom_invoice_draft
Mutation/readOnly:false, script-tier/no-model-token action. Permanently delete an unsent draft custom invoice. Only drafts can be deleted; to cancel an already-sent unpaid invoice use void_custom_invoice instead. Requires the Owner or Admin role. Storefront Pro.
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>",
"proAccessToken": "<proAccessToken>"
},
"name": "delete_custom_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The draft invoice id from list_custom_invoices. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |