siigo_delete_payment_receipt
Remove a payment receipt from the Siigo accounting system by providing its unique ID to maintain accurate financial records.
Instructions
Delete a payment receipt
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Payment receipt ID |
Implementation Reference
- src/index.ts:1051-1054 (handler)MCP tool handler: extracts payment receipt ID from arguments, calls SiigoClient.deletePaymentReceipt, and returns JSON-formatted response.private async handleDeletePaymentReceipt(args: any) { const result = await this.siigoClient.deletePaymentReceipt(args.id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/siigo-client.ts:192-194 (helper)Core implementation: performs authenticated DELETE request to Siigo API endpoint /v1/payment-receipts/{id}.async deletePaymentReceipt(id: string): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('DELETE', `/v1/payment-receipts/${id}`); }
- src/index.ts:619-629 (registration)Tool registration in getTools(): defines name, description, and input schema for ListTools response.{ name: 'siigo_delete_payment_receipt', description: 'Delete a payment receipt', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Payment receipt ID' }, }, required: ['id'], }, },
- src/index.ts:135-136 (schema)Dispatcher switch case in CallToolRequest handler that routes to the specific tool handler.case 'siigo_delete_payment_receipt': return await this.handleDeletePaymentReceipt(args);