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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Payment receipt ID | |
| paymentReceipt | Yes | Payment receipt data to update |
Implementation Reference
- src/siigo-client.ts:188-190 (handler)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); }
- src/index.ts:1046-1049 (handler)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'], }, },
- src/index.ts:610-617 (schema)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'], },
- src/index.ts:133-134 (handler)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);