Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesPayment receipt ID

Implementation Reference

  • 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}`); }
  • 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'], }, },
  • 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'], }, },
  • 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);

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