Accept Quote
whmcs_accept_quoteAccept a quote using its ID and convert it to an invoice. This action transforms a client quote into a billable invoice, simplifying the billing process.
Instructions
Accept a quote and convert to invoice
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quoteid | Yes | Quote ID |
Implementation Reference
- src/index.ts:1274-1289 (registration)Registration of the 'whmcs_accept_quote' tool via server.registerTool() with input schema accepting a quoteid (number). The handler delegates to whmcsClient.acceptQuote(params).
server.registerTool( '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/whmcs-client.ts:1489-1497 (handler)The acceptQuote() method in WhmcsApiClient that sends the 'AcceptQuote' API action to WHMCS with a quoteid parameter, returning the quoteid and new invoiceid.
/** * Accept a quote */ async acceptQuote(params: { quoteid: number }) { return this.call<WhmcsApiResponse & { quoteid: number; invoiceid: number; }>('AcceptQuote', params); } - src/index.ts:1279-1281 (schema)Input schema for whmcs_accept_quote requiring a quoteid (number) parameter.
inputSchema: { quoteid: z.number().describe('Quote ID'), }, - src/whmcs-client.ts:1492-1497 (schema)Response type for acceptQuote includes quoteid and invoiceid on success.
async acceptQuote(params: { quoteid: number }) { return this.call<WhmcsApiResponse & { quoteid: number; invoiceid: number; }>('AcceptQuote', params); }