Skip to main content
Glama

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

Implementation Reference

  • 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) }] }; }
  • 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}`); }
  • 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);

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