delete_invoice
Remove invoices permanently from FreshBooks to correct errors, eliminate duplicates, or clean up records. Specify the invoice ID to delete.
Instructions
Delete an invoice permanently.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes |
Implementation Reference
- src/mcp_freshbooks/server.py:194-199 (handler)The delete_invoice tool handler, which uses the client.accounting_delete method to permanently remove an invoice from FreshBooks.
@mcp.tool() @_handle_errors async def delete_invoice(invoice_id: int) -> str: """Delete an invoice permanently.""" await client.accounting_delete("invoices/invoices", invoice_id) return f"Invoice {invoice_id} deleted."