siigo_delete_invoice
Remove invoices from the Siigo accounting system by providing the invoice ID to maintain accurate financial records.
Instructions
Delete an invoice
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID |
Implementation Reference
- src/siigo-client.ts:116-118 (handler)Core implementation of the siigo_delete_invoice tool: sends DELETE request to Siigo API endpoint /v1/invoices/{id}async deleteInvoice(id: string): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('DELETE', `/v1/invoices/${id}`); }
- src/index.ts:938-948 (handler)MCP server handler wrapper that calls SiigoClient.deleteInvoice and formats responseprivate async handleDeleteInvoice(args: any) { const result = await this.siigoClient.deleteInvoice(args.id); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:409-419 (registration)Tool registration in getTools(): defines name, description, and input schema{ name: 'siigo_delete_invoice', description: 'Delete an invoice', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Invoice ID' }, }, required: ['id'], }, },
- src/index.ts:412-418 (schema)Input schema definition for the tool: requires 'id' stringinputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Invoice ID' }, }, required: ['id'], },
- src/index.ts:91-92 (handler)Dispatcher switch case that routes to handleDeleteInvoice handlercase 'siigo_delete_invoice': return await this.handleDeleteInvoice(args);