> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://krystal-dev.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Setting up WHMCS domain provisioning using the Krystal Domain Reseller Module

As part of selling hosting services you may wish to sell domains to your clients. To use your hosting service your customers will need to either register, transfer or point a domain name.

Our WHMCS Krystal Domain Reseller module allows you to sell domain names to your customers.

Krystal's WHMCS Domain Reseller Module provides a direct API connection from your WHMCS installation to our platform for domain provisioning and management (transfer/renewal).

|| You will also need to have a credit card registered, or a credit balance on your Krystal account in order for domains to be auto-provisioned.

||| If you opt to use our domain API, we can offer no refunds for any domains that are registered and subsequently cancelled by your customers, as we incur the costs of registration.

### Create a new API key

1.  Login to your [Krystal Client Area](https://krystal.uk/client/).
2.  Select **API Keys** from the left-hand menu and then click the **+ C****reate New API Key button**.
    
    ![](https://storage.crisp.chat/users/helpdesk/website/d7cbdc34a3e28000/90043224-8f4c-40bb-9f5f-505cb4_1q8tt6c.jpeg)
    
3.  Once created you will need to make a note of the **API secret** (API key) as this will only be shown once. You will need this API secret key along with your **API Username**, shown in the left hand column of the table, in order to configure the domain reseller module within WHMCS - so make a note of them.
    
    ![](https://storage.crisp.chat/users/helpdesk/website/3c7da44de2cbee00/68d1721f-f082-432b-ac03-15d13e_15k38zw.jpeg)
    
    Once created you will need to make a note of the **API secret** (API key) as this will only be shown once. You will need this API secret key along with your API username, shown in the left hand column of the table, in order to configure the domain reseller module within WHMCS - so make a note of them.

### Download the module and setup a new API key

1.  The Krystal WHMCS Domain Reseller module details can be found within your [Krystal Client Area](https://krystal.uk/client) by clicking on **API keys** from the left-hand menu and then clicking the **Domain Reseller Module** tab.
    
    ![](https://storage.crisp.chat/users/helpdesk/website/80d3e7b5d669f800/e7bb11b2-2577-44e1-9426-cf449c_12q400m.jpeg)
    
    Here you will find a link to download the latest API release. Click the **Download latest version** button.  
    You'll be taken to the latest release version page on GitHub where you can click the .zip link to download the module:

![](https://storage.crisp.chat/users/helpdesk/website/49f560b68e9fe000/33501a88-d1d8-44f9-a2dc-471bb5_1g91qw4.jpeg)

### Upload the module

1.  Unzip the module package you downloaded in step 2.
2.  Using [cPanel file manager](/cpanel/using-c-panel-file-manager), or [FTP](/cpanel/file-transfer-protocol-sftp-ftp-s), create a krystal directory under /modules/registrar on your WHMCS server and copy the files from the corresponding directory in the zip package on to your server.
    
    ![](https://storage.crisp.chat/users/helpdesk/website/1a356c539a10b900/c886b72b-9d8a-4f67-95c6-eba9c9_oiml1y.jpeg)
    
    Using File Manager simply ensure you're in the new krystal directory and click **Upload**, then drag the files to the **Drop files here to start uploading** area
    
    ![](https://storage.crisp.chat/users/helpdesk/website/df9cd9f0ebbb5800/ba307308-9147-440b-906e-5c5959_1v1z2ff.jpeg)
    

### Setup the module in WHMCS

1.  Login to your WHMCS admin area.
2.  From the **Setup** menu, hover over **Products/Services** and then click **Domain Registrars**.  
    Find Krystal in the registrar list and click **Activate**.
    
    ![](https://storage.crisp.chat/users/helpdesk/website/97b3226551def000/03caa5c8-ae49-4d8b-93da-62da4b_uloa8k.jpeg)
    
3.  Enter your API Username & API Secret and tick to charge your Credit/Debit card on file. If you don't have a card on file and/or your account doesn't have a credit balance your orders will fail.
    
    ![](https://files.helpdocs.io/8nzbvyta9f/articles/vdbcteg8hl/1562600050381/api-8.jpg)
    

**Next Step:** [Setup Domains and Domain Pricing](/article/w29e4mgool-setting-up-domains-and-domain-pricing-in-whmcs)

* * *

* * *