whmcs_renew_domain
Renew a domain registration in WHMCS by sending a renewal command to the registrar using the domain ID.
Instructions
Send domain renewal command to registrar
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domainid | Yes | Domain ID |
Implementation Reference
- src/index.ts:624-638 (registration)Registration of the 'whmcs_renew_domain' MCP tool, including schema and handler wrapper that delegates to WhmcsApiClient.renewDomain'whmcs_renew_domain', { title: 'Renew Domain', description: 'Send domain renewal command to registrar', inputSchema: { domainid: z.number().describe('Domain ID'), }, }, async (params) => { const result = await whmcsClient.renewDomain(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } );
- src/whmcs-client.ts:831-835 (handler)The core handler function renewDomain in WhmcsApiClient class that makes the WHMCS API call to 'DomainRenew' with the provided domainid.async renewDomain(params: { domainid: number; }) { return this.call<WhmcsApiResponse>('DomainRenew', params); }