Jump to content

terminate hook


dewdropz

Recommended Posts

Can you make a hook for a specific service terminated day? Or any module available for it? For example, I am selling business email and hosting both. But for business email, termination day needs 3 days but hosting need 1month/30 days. But for whmcs default system, only 1 day I can select.

Link to comment
Share on other sites

5 hours ago, dewdropz said:

Can you make a hook for a specific service terminated day? Or any module available for it? For example, I am selling business email and hosting both. But for business email, termination day needs 3 days but hosting need 1month/30 days. But for whmcs default system, only 1 day I can select.

Yes, you can make a hook that does that.

Link to comment
Share on other sites

  • WHMCS Staff
On 7/16/2022 at 4:12 AM, dewdropz said:

How i can make?

Hello,

To achieve this, you would likely need to use one of the CronJob hook points to query tblhosting and client invoices. After you have determined that these are suitable for suspension/termination, you could then use our ModuleSuspend or ModuleTerminate API methods respectively.

I hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated