Domain Reselling via WHMCS or Blesta

Domain Reselling for WHMCS allows you to resell TLDs (domains). Our reselling module provides its own API that resellers can use to sell domains in various billing services such as WHMCS, HostBill, Blesta and others.

Possibilities of domain reselling module

Resellers:

  • Access to a special area for resellers
  • View domain orders
  • View TLD prices
  • View and assign purchased domains
  • Access to reseller settings:
  • View available credits on the account
  • Access API details:
  • View available credentials
  • View/generate API key
  • View/modify IP address restrictions
  • Download the domain registrar integration module
  • Download supplier documentation
  • Download the additional fields integration file
  • View logs of API requests and responses
  • View API documentation
  • Can use a domain reselling registrar as a Lookup Provider (to check domains).

End customers:

  • Contact information management
  • Managing e-mail forwarding
  • Managing DNS records
  • Registration/management of private nameservers
  • Enable/disable ID protection

API Functionality:

  • Domain Registration/Renewal/Renewal
  • Release/delete domain
  • Get domain information
  • Get domain suggestions
  • Get TLD Cart Pricing for Domain Registration/Renewal/Transfer
  • Get/change contact information
  • Get an EPP code
  • Get/change the lock status of the recorder
  • Get/store DNS records
  • Get/register/change/delete name servers
  • Receive/save e-mail forwarding
  • Change identifier protection
  • Check domain and migration synchronization
  • Check domain availability
  • Get available TLDs
  • Get affordable loans
  • Get a version

Home Information:

  • Credit transactions between resellers and suppliers
  • Multilingual support
  • PHP 8.1 support. Return to PHP 7.4.
  • WHMCS V8.9 support. Return to WHMCS V8.6.
  • A database with InnoDB storage mechanism is required.
  • Requires ionCube V12 or newer.

Reseller opportunities

Resellers can manage API connection credentials directly from the WHMCS client area, as well as view any information about its domain offering. Go to “Domains”→“Domain Reselling ” to access them.

Domain Reselling via WHMCS or Blesta

Orders

As you can see, the Orders section provides a detailed list of orders placed for domains with the offered TLDs, with status and payment date.

Domain Reselling via WHMCS or Blesta

Prices

“Prices” – the section includes a list of reseller domains with the ability to preview the prices set by the provider.

Domain Reselling via WHMCS or Blesta
Domain Reselling via WHMCS or Blesta

Domains

The Domains section allows resellers to manage their domains. If you want to add any domains that were purchased earlier, just click the corresponding button.

Domain Reselling via WHMCS or Blesta

You can now select one or more domains from the drop-down menu.

Domain Reselling via WHMCS or Blesta

There is also an option to cancel the addition of a specific domain. Note: Remember that if a domain is not added, you will not be able to manage it until it is added again.

Domain Reselling via WHMCS or Blesta

Settings

In the ‘Settings’ section you will find all the API information you need to install and activate the integration module.

Domain Reselling via WHMCS or Blesta

Under the API information, you will find a list of the integrations that have been created. Depending on your billing, you can download the necessary packages, additional fields, and documentation for each integration.

Domain Reselling via WHMCS or Blesta

Logs

Review the list of API request and response logs, including errors stored in the module.

Domain Reselling via WHMCS or Blesta

API documentation

Get access to detailed API documentation with basic information as well as API calls and models. This API documentation has been prepared to allow you to write your own integration modules for platforms other than WHMCS and Blesta (which are enabled by default). The ‘information’ tab contains:

  • Endpoint – the URL to which all API requests are directed
  • Authorization – Username and token to authenticate the client in the API request
  • Example – sample request to API for domain renewal
Domain Reselling via WHMCS or Blesta

List of available “Calls” :

Note: The screen below does not show all supported functions.

Domain Reselling via WHMCS or Blesta

Available “API Models “list:

Domain Reselling via WHMCS or Blesta

Domain resale process

Installing the integration module

Below you can find instructions on how to install the Domain Reselling Integration module for WHMCS.

A sample installation and configuration procedure for the Domain Resale Integration Module for Blesta can be found in the Blesta. official documentation.

1. Download and unzip the reselling module into your WHMCS.Once you have unzipped the module, you should find a new registrar folder in the ‘WHMCS/modules/registrars’ folder .
Important: The folder and module name, logo, and description of the extracted integration module may differ from those presented in the example below.

Domain Reselling via WHMCS or Blesta

2. Go to ‘System Settings’ → “Domain Registrars” find the module you have just downloaded and press “Activate” next to it.

Domain Reselling via WHMCS or Blesta

3. now click on “Customize” button. enter ” User Email ” and “API Key”. You can find these details in your Reseller Section in myAlpari. Once you have done so, click ‘Save Changes’.

Domain Reselling via WHMCS or Blesta

5. To continue, go to‘System Settings‘→‘Domain Pricing’. Configure the TLD that your ISP allows you to resell, select additional features, select the registrar you just installed from the drop-down menu and save it by clicking ‘Save Changes’.

Domain Reselling via WHMCS or Blesta

6. After that, set the price for your TLD. To do this, click “Change Prices“. A new window will open, so make sure your browser is not blocking it.

Domain Reselling via WHMCS or Blesta

7. Next, enter prices for specific activities. Press ‘Save changes’ to confirm.

Domain Reselling via WHMCS or Blesta

8. Congratulations, you have just successfully installed your registrar!

Client Cabinet

The Domains Reseller integration module allows customers to register, transfer and transfer a domain, as well as perform standard domain actions. View the WHMCS client side with the ordered domain through the integration module.

Domain Reselling via WHMCS or Blesta

View the Blesta client side with the ordered domain through the integration module.

Domain Reselling via WHMCS or Blesta

Example workflow

In this section, we will present you with an example of the module workflow. There are 3 users involved in the basic workflow:
Provider – the company from which you buy domains for resale.
Reseller – a customer of an ISP with the purpose of reselling top-level domains offered to him by the ISP.
The reseller must own a billing system with the integration module created for it by the provider (whmcs or blesta).
Customer – a person who has a customer account in Reseller’s system (WHMCS, Blesta or others).

Provider Part
Let’s start at the beginning.
The provider sets up domain reselling for WHMCS, creates groups, customizes them, assigns TLDs and determines their prices for the reseller who is assigned to one of the groups.
Finally, selects which customers will become resellers, assigns them to previously created groups, and generates access data.

Reseller part
Reseller has access to the Reseller Cabinet after logging in to the Provider’s Client Cabinet.
There he can download the integration module and its documentation, as well as generate and copy any API data needed to activate the integration module in his own system.
The reseller then needs to configure the TLDs that the provider will allow it to resell using the integration module provided by the provider. Specify prices (prices must be higher than those set by the provider to generate revenue).
There is one step that separates a reseller from selling a domain from their system.
The reseller must add funds to his balance with the ISP to be able to pay the charges generated by the ISP for his resold TLDs.
Provider creates a“top-up account” for Reseller. The Reseller pays the invoice and then the Provider adds that amount to the Reseller’s credit balance.
Now any domain can be ordered.

Reseller’s Client
The Client orders a domain from his/her Client Cabinet in the Reseller’s system.

A final word on payment
Now that the end customer has ordered and paid for the domain to the reseller, a new invoice for that domain (on behalf of the reseller) is automatically created in the ISP’s system.
Depending on the “Payment Type” configuration selected, the invoice will be paid from the balance and an attempt will be made to register the domain, and if successful, the invoice will be paid with funds from the balance.
If there are insufficient funds in the reseller’s account to pay for domain registration, the process stops until the reseller manually pays the bill.
Reseller’s revenue is the difference between the price of the domain sold to the end customer and the price he paid to the ISP.

Tips

  1. If your reseller has an error ‘Unable to register domain, contact administration (license problem).’, it means that your license is invalid or expired .
  2. Make sure you don’t block access to the ‘api’ folder in your file ‘.htaccess’.
  3. Domain Reseller. You can resell your domains not only through WHMCS and Blesta billing. You can easily make a registrar module for any system (HostBill, Clientexec, BoxBilling and many others) using the domain reselling API.
    All you need is knowledge of, for example, the PHP programming language and our module.
  4. If a customer buys a domain from a reseller and pays in a currency other than the reseller’s default currency. The amount will then be converted to the reseller’s default currency based on the ‘Basic Conv. Bet’ (your WHMCS → System Settings → Currencies).

Common problems

1. If you have trouble connecting, check to see if your Linux or firewall is blocking ports.

2. In case of communication problems between the main WHMCS and the reseller module, make sure that the firewall does not interfere with the connection: WHMCS reseller server – ISP server

3. The error “Function not supported by the recorder module” means that the recorder on the primary WHMCS does not support the operation you tried to perform.

4. Error: “The provided domain is not found in the reseller account” Explanation: The “Domain Reseller for WHMCS” module does not support the“Transfer of Ownership” action. If you try to transfer a domain between WHMCS clients (resellers), the above error will appear.
Solution: Transfer the domain between resellers manually at the database level. To do so, run the following command:

UPDATE `DomainsReseller_ResellerRelations` SET `resellerid` = (SELECT id FROM `DomainsReseller_Resellers` WHERE `clientid` = :newClientID) WHERE relid = :domainId and type = 'domain';


Where:
clientid – Identification number of the WHMCS client (reseller) to whom the domain has been transferred.
relid – Identification number of the domain being migrated based on WHMCS system activity log data.

For example:

UPDATE `DomainsReseller_ResellerRelations` SET `resellerid` = (SELECT id FROM `DomainsReseller_Resellers` WHERE `clientid` = 3804) WHERE relid = 5176 and type = 'domain';

According to the system activity log:

Domain Reselling via WHMCS or Blesta

5. Error: “The provided domain is not found in the reseller account”.
Explanation: When the above error is returned by the API for any reseller domain action, it means that the order for that domain was added by default by WHMCS and not through the module’s API (reseller functionality).
Solution: The domain must additionally be manually imported to the reseller.

6. Do not upload files other than “.php” to the ‘modules/addons/DomainsReseller/app/Libs/Resources/Submodules/Types‘ folder, as it may cause certain problems in module operation.

Was this article helpful?

Related Articles