Skip to main content
Glama

whmcs_accept_quote

Convert a quote into an invoice in WHMCS to finalize client billing. Provide the quote ID to process the transaction.

Instructions

Accept a quote and convert to invoice

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteidYesQuote ID

Implementation Reference

  • The core handler method that executes the WHMCS 'AcceptQuote' API call to accept a quote and generate an invoice.
    async acceptQuote(params: { quoteid: number }) {
        return this.call<WhmcsApiResponse & {
            quoteid: number;
            invoiceid: number;
        }>('AcceptQuote', params);
    }
  • src/index.ts:1256-1270 (registration)
    MCP tool registration defining the tool name, description, input schema (quote ID), and handler invocation.
        'whmcs_accept_quote',
        {
            title: 'Accept Quote',
            description: 'Accept a quote and convert to invoice',
            inputSchema: {
                quoteid: z.number().describe('Quote ID'),
            },
        },
        async (params) => {
            const result = await whmcsClient.acceptQuote(params);
            return {
                content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
            };
        }
    );
  • Input schema validation using Zod for the required quoteid parameter.
        quoteid: z.number().describe('Quote ID'),
    },

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/scarecr0w12/whmcs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server