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
| Name | Required | Description | Default |
|---|---|---|---|
| quoteid | Yes | Quote ID |
Implementation Reference
- src/whmcs-client.ts:1479-1484 (handler)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) }], }; } );
- src/index.ts:1261-1262 (schema)Input schema validation using Zod for the required quoteid parameter.quoteid: z.number().describe('Quote ID'), },