Skip to main content
Glama

siigo_create_payment_receipt

Generate payment receipts in Siigo accounting software to record customer payments and maintain accurate financial records.

Instructions

Create a new payment receipt

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentReceiptYesPayment receipt data

Implementation Reference

  • MCP tool handler for 'siigo_create_payment_receipt'. Extracts args.paymentReceipt, calls SiigoClient.createPaymentReceipt, and returns the result as JSON text content.
    private async handleCreatePaymentReceipt(args: any) { const result = await this.siigoClient.createPaymentReceipt(args.paymentReceipt); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • SiigoClient method that performs the POST request to Siigo API endpoint /v1/payment-receipts to create the payment receipt.
    async createPaymentReceipt(paymentReceipt: any): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('POST', '/v1/payment-receipts', paymentReceipt); }
  • src/index.ts:596-606 (registration)
    Tool registration in getTools(): defines name, description, and input schema for the tool.
    { name: 'siigo_create_payment_receipt', description: 'Create a new payment receipt', inputSchema: { type: 'object', properties: { paymentReceipt: { type: 'object', description: 'Payment receipt data' }, }, required: ['paymentReceipt'], }, },
  • Dispatch case in CallToolRequestSchema handler that routes to the specific tool handler.
    case 'siigo_create_payment_receipt': return await this.handleCreatePaymentReceipt(args);
  • Core helper method in SiigoClient that handles authentication, makes Axios requests to Siigo API, and processes responses/errors.
    private async makeRequest<T>(method: string, endpoint: string, data?: any, params?: any): Promise<SiigoApiResponse<T>> { await this.authenticate(); try { const response: AxiosResponse<SiigoApiResponse<T>> = await this.httpClient.request({ method, url: endpoint, data, params, }); return response.data; } catch (error: any) { if (error.response?.data) { return error.response.data; } throw new Error(`API request failed: ${error.message}`); }

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