Skip to main content
Glama

siigo_update_payment_receipt

Modify an existing payment receipt in Siigo accounting software by providing the receipt ID and updated data fields.

Instructions

Update an existing payment receipt

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPayment receipt ID
paymentReceiptYesPayment receipt data to update

Implementation Reference

  • Core handler implementation that performs the PUT API request to update the payment receipt in Siigo.
    async updatePaymentReceipt(id: string, paymentReceipt: any): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('PUT', `/v1/payment-receipts/${id}`, paymentReceipt); }
  • MCP server handler method that invokes the SiigoClient updatePaymentReceipt and formats the response as MCP content.
    private async handleUpdatePaymentReceipt(args: any) { const result = await this.siigoClient.updatePaymentReceipt(args.id, args.paymentReceipt); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • src/index.ts:607-618 (registration)
    Registration of the tool in the MCP server's getTools() method, including name, description, and input schema.
    { name: 'siigo_update_payment_receipt', description: 'Update an existing payment receipt', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Payment receipt ID' }, paymentReceipt: { type: 'object', description: 'Payment receipt data to update' }, }, required: ['id', 'paymentReceipt'], }, },
  • Input schema defining the expected arguments: id (string) and paymentReceipt (object).
    inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Payment receipt ID' }, paymentReceipt: { type: 'object', description: 'Payment receipt data to update' }, }, required: ['id', 'paymentReceipt'], },
  • Switch case in CallToolRequestSchema handler that routes the tool call to the specific handler method.
    case 'siigo_update_payment_receipt': return await this.handleUpdatePaymentReceipt(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