Skip to main content
Glama

siigo_update_payment_receipt

Modify existing payment receipt records in Siigo accounting software by providing the receipt ID and updated data to correct or adjust financial entries.

Instructions

Update an existing payment receipt

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPayment receipt ID
paymentReceiptYesPayment receipt data to update

Implementation Reference

  • Core handler function that performs the PUT request to the Siigo API to update a payment receipt.
    async updatePaymentReceipt(id: string, paymentReceipt: any): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('PUT', `/v1/payment-receipts/${id}`, paymentReceipt); }
  • MCP tool handler wrapper that calls the SiigoClient method 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) }] }; }
  • Input schema definition for the tool, specifying required id and paymentReceipt object.
    { 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'], }, },
  • src/index.ts:133-134 (registration)
    Dispatch case in the main CallToolRequestSchema handler that routes to the specific tool handler.
    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