siigo_create_payment_receipt
Create payment receipts in Siigo accounting software to record customer payments and update financial records.
Instructions
Create a new payment receipt
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentReceipt | Yes | Payment receipt data |
Implementation Reference
- src/siigo-client.ts:184-186 (handler)Core implementation in SiigoClient: makes POST request to Siigo API /v1/payment-receipts endpoint.async createPaymentReceipt(paymentReceipt: any): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('POST', '/v1/payment-receipts', paymentReceipt); }
- src/index.ts:1041-1044 (handler)MCP tool handler: delegates to SiigoClient and returns JSON-formatted response.private async handleCreatePaymentReceipt(args: any) { const result = await this.siigoClient.createPaymentReceipt(args.paymentReceipt); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:596-606 (schema)Tool registration with input schema defining paymentReceipt object.{ name: 'siigo_create_payment_receipt', description: 'Create a new payment receipt', inputSchema: { type: 'object', properties: { paymentReceipt: { type: 'object', description: 'Payment receipt data' }, }, required: ['paymentReceipt'], }, },
- src/index.ts:131-132 (registration)Dispatch in switch statement for tool invocation.case 'siigo_create_payment_receipt': return await this.handleCreatePaymentReceipt(args);