siigo_get_payment_receipt
Retrieve a specific payment receipt from Siigo accounting software using its unique ID to access transaction details and records.
Instructions
Get a specific payment receipt by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Payment receipt ID |
Implementation Reference
- src/siigo-client.ts:180-182 (handler)The core implementation of the tool logic: makes an authenticated GET request to the Siigo API endpoint `/v1/payment-receipts/{id}` using the shared makeRequest method.async getPaymentReceipt(id: string): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', `/v1/payment-receipts/${id}`); }
- src/index.ts:1036-1039 (handler)MCP tool handler wrapper: extracts 'id' from arguments, calls SiigoClient.getPaymentReceipt, and formats the response as MCP content (JSON string).private async handleGetPaymentReceipt(args: any) { const result = await this.siigoClient.getPaymentReceipt(args.id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:585-595 (registration)Registration of the tool in the MCP server's getTools() method, defining name, description, and input schema (requires 'id' string).{ name: 'siigo_get_payment_receipt', description: 'Get a specific payment receipt by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Payment receipt ID' }, }, required: ['id'], }, },
- src/index.ts:588-595 (schema)Input schema definition for the tool: expects an object with required 'id' field (string).inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Payment receipt ID' }, }, required: ['id'], }, },
- src/index.ts:129-130 (handler)Dispatch case in the main CallToolRequestSchema handler switch statement that routes to the specific tool handler.case 'siigo_get_payment_receipt': return await this.handleGetPaymentReceipt(args);