siigo_delete_payment_receipt
Remove a payment receipt from Siigo accounting software by providing its 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 function that extracts the payment receipt ID from arguments, calls SiigoClient.deletePaymentReceipt, and returns the formatted JSON 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)SiigoClient method implementing the core logic: sends DELETE request to Siigo API endpoint /v1/payment-receipts/{id} using the shared makeRequest helper.async deletePaymentReceipt(id: string): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('DELETE', `/v1/payment-receipts/${id}`); }
- src/index.ts:619-629 (schema)Tool schema definition including name, description, and input schema requiring 'id' string for the payment receipt to delete.{ 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 (registration)Switch case registration in CallToolRequestSchema handler that dispatches to the specific handler function.case 'siigo_delete_payment_receipt': return await this.handleDeletePaymentReceipt(args);