WHMCS hosting module: resell cPanel and Plesk hosting accounts from your WHMCS

API & DocumentationWHMCS Modules·· 205 views· 3 min read

If you resell our cPanel and Plesk hosting plans in your WHMCS, this module does the buying for you. When your customer pays, the plan is bought in your MozOut account through our API, with your account credit.

What it does

It creates the account, moves it to a bigger plan and cancels it. It gives a one-time cPanel login to the customer and to the admin. It shows disk and traffic in the client area and feeds them to the WHMCS daily usage update.

What you need

A working WHMCS, with access to its main folder (the one with configuration.php), and your MozOut account with an API key. You create the key in the API Center of My MozOut.

Installing, step by step

1 Download mozout_hosting.zip from the latest release.
2 Unzip it in the main folder of your WHMCS. The files go straight to modules/servers/mozout_hosting.
3 Open Setup > Servers > Add server and pick the "Hosting MozOut (API)" module. Type api.mozout.com as the hostname and paste the API key as the password.
4 In the product, on the Module tab, choose the brand plan and the cycle.
Do not use "Download ZIP" on the code page. That zip adds an extra folder and WHMCS will not find the module. The right file is mozout_hosting.zip, attached to the release.

The API key and its permissions

The key needs these permissions: catalog:read, billing:purchase, hosting:read, hosting:write, hosting:login and services:cancel. See how to create a key and pick its permissions.

In the server username you can put sandbox or production, and the API refuses a key of the wrong mode. When you save the server, the module checks the key and shows the result at the top of the Servers page.

Testing without spending

Start with a sandbox_ key: nothing is charged. When the product is ready, swap it for a prod_ key.

Good to know

Domain: it is only sent with the purchase when it is a domain in your account at the brand. Otherwise the account starts on a temporary address.

Suspend: the API does not suspend hosting accounts. The service is suspended only in your WHMCS and the site stays online.

Terminate: the cancellation is set for the end of the paid period, never right away.

Changing plans: only to bigger plans, in equal or longer cycles. To move to a smaller plan, contact support.

Plesk: Plesk plans can be bought, but usage and the panel login only work on cPanel.

Help

If the module shows an error you do not understand, open a support ticket and tell us the module version and the message you see. The code is in the module repository, under the MIT license.

Ready to resell hosting from your WHMCS?

Download the latest release

SEE ALSO

Reselling cPanel or Plesk hosting with the Reseller Program

Creating an API key

What WHMCS is, and when you need it

The repository on MozOut Git

SDKs and integrations, in the API documentation

RECOMMENDED PRODUCT

Reseller hosting with WHM

Create, host and bill your own plans, under your own brand. from $35.57/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.