WHMCS domains module: register, transfer and renew domains from your WHMCS through our API

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

If you sell domains in your own WHMCS, this module looks after them for you. It registers, transfers and renews the domains in your MozOut account through our API, and pays with your account credit. The API address is already in the module: all you need is a key.

What it does

Name search, registration, transfer with the customer's EPP code, renewal, nameservers, transfer lock and EPP code requests. It also keeps domain dates and status in sync and imports extension prices, in Utilities > Registrar TLD Sync. The EPP code only travels in the request: it is never stored.

What you need

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

Installing, step by step

1 Download mozout_domains.zip from the latest release.
2 Unzip it in the main folder of your WHMCS. The files go straight to modules/registrars/mozout_domains.
3 In WHMCS, open Setup > Products/Services > Domain Registrars, find "MozOut (API)" and click Activate.
4 Choose the brand where you have an account and paste the key you created in the API Center.
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_domains.zip, attached to the release.

The API key and its permissions

The key needs these permissions: domains:read, domains:write, domains:transfer_code, billing:purchase and catalog:read. If you are in the Reseller Program, add reseller:read and reseller:write. See how to create a key and pick its permissions.

Testing without spending

Before you use a production key, use a sandbox_ key. The module works the same way and nothing is charged. When everything is right, swap it for a prod_ key.

Good to know

Contacts: domains get the contact details of your account, because the API does not change contacts yet.

Special cases: .mz and .ao names of up to 3 letters, .ac.mz, .gov.mz and .mil.mz, and .mz and .ao transfers are handled in the brand panel.

Renewal: by default, auto-renew on our side is turned off. Your WHMCS does the renewals.

Languages: the module shows its texts in Portuguese when the WHMCS language name starts with "portuguese", and in English otherwise. The "Message language" setting can force one of the two.

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 sell domains from your WHMCS?

Download the latest release

SEE ALSO

What WHMCS is, and when you need it

Creating an API key

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 £28.46/mo (3-year plan, with coupon)

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