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
| 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 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); }
- src/index.ts:1046-1049 (handler)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) }] }; }
- src/index.ts:607-618 (schema)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);