If you are offering service through WHMCS then it’s helpful to terminate your client’s service automatically instead of doing it manually.


Default Functionality: When a client wants to cancel service they need to request for Cancellation service from their client area -> Product/Service Detail page. ( Red color button that is for request cancellation ) then admins get the request from the client then perform the further action.

But if you want it to be automated. No need to perform any actions at admin side then we can do it easily


– First, we need to use hook point to determine the cancel request: https://developers.whmcs.com/hooks-reference/service/#cancellationrequest


– Then you can run the WHMCS API: https://developers.whmcs.com/api-reference/updateclientproduct/


Cancel request are two types: Immediate and 2) End of billing cycle


For  Immediately: you just need to change the service status ( defined in API request)

For end of billing cycle: you can change the terminateDate in WHMCS API


If you still have any question or want this for your WHMCS the feel free to contact us.