Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesPayment receipt ID

Implementation Reference

  • 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) }] }; }
  • 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'], }, },
  • Dispatcher switch case in CallToolRequest handler that routes to the specific tool handler.
    case 'siigo_delete_payment_receipt': return await this.handleDeletePaymentReceipt(args);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jdlar1/siigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server