Module Unsuspend
whmcs_module_unsuspendUnsuspend a service account in WHMCS by providing its ID, restoring full functionality to the client's service.
Instructions
Unsuspend a service account
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountid | Yes | Service ID |
Implementation Reference
- src/index.ts:946-961 (registration)Registration of the 'whmcs_module_unsuspend' tool with the MCP server. Defines the tool name, title, description, input schema (accountid), and the handler that delegates to whmcsClient.moduleUnsuspend().
server.registerTool( 'whmcs_module_unsuspend', { title: 'Module Unsuspend', description: 'Unsuspend a service account', inputSchema: { accountid: z.number().describe('Service ID'), }, }, async (params) => { const result = await whmcsClient.moduleUnsuspend(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } ); - src/index.ts:951-953 (schema)Input schema for the whmcs_module_unsuspend tool. It accepts a single required parameter: accountid (number) representing the service ID to unsuspend.
inputSchema: { accountid: z.number().describe('Service ID'), }, - src/index.ts:955-960 (handler)Handler function for the whmcs_module_unsuspend tool. Calls whmcsClient.moduleUnsuspend(params) and returns the result as JSON text.
async (params) => { const result = await whmcsClient.moduleUnsuspend(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } - src/whmcs-client.ts:1126-1130 (helper)The moduleUnsuspend method on the WhmcsApiClient class. Makes an API call to WHMCS with the 'ModuleUnsuspend' action, passing the accountid parameter.
* Unsuspend a module account */ async moduleUnsuspend(params: { accountid: number }) { return this.call<WhmcsApiResponse>('ModuleUnsuspend', params); }