Jump to content

How to connect with sub resellers account


grapyhost

Recommended Posts

Hello Guys, Hope you doing great.

So i got one issue, that seems not resolved as per my 5 days RND.  The issue is - We have reseller account from resellerclub and that reseller account have sub reseller 

So how to connect both accounts with whmcs using inbuilt whmcs resellerclub domain registrar module, can we make one duplicate module. if possible so, which code stream i need to edit. and make this possible!

 

Your reply is valuable.

 

Thanks

Grapy

Link to comment
Share on other sites

As per WHMCS documentation - https://developers.whmcs.com/domain-registrars/

I have added a sample module  in - module - registrar - Registrarmodule, but its seems not working.  i think there kis some API call issue.

here is the request and response code.

Request Code = 

Array
(
    [username] => ******
    [password] => *****************************************************
    [testmode] => 
    [domain] => codyplay.xyz
    [years] => 1
    [nameservers] => Array
        (
            [ns1] => dns1.getsetlive.com
            [ns2] => dns2.getsetlive.com
            [ns3] => dns3.getsetlive.com
            [ns4] => dns4.getsetlive.com
            [ns5] => 
        )

    [contacts] => Array
        (
            [registrant] => Array
                (
                    [firstname] => Madan
                    [lastname] => Malhotra
                    [companyname] => Eworld Web Services 
                    => madan@eworld.guru
                    [address1] => Navi Mumbai
                    [address2] => CBD - Belapur Sec - 2
                    [city] => Navi Mumbai
                    [state] => Maharashtra
                    [zipcode] => 400614
                    [country] => IN
                    [phonenumber] => +91.9922558680
                )

            [tech] => Array
                (
                    [firstname] => Madan
                    [lastname] => Malhotra
                    [companyname] => Eworld Web Services 
                    => madan@eworld.guru
                    [address1] => Navi Mumbai
                    [address2] => CBD - Belapur Sec - 2
                    [city] => Navi Mumbai
                    [state] => Maharashtra
                    [zipcode] => 400614
                    [country] => IN
                    [phonenumber] => +91.9922558680
                )

        )

    [dnsmanagement] => 
    [emailforwarding] => 
    [idprotection] => 
)

 

 

Response Code - 

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>404 - Not Found</title>
    </head>
    <body>
        <h1>404 - Not Found</h1>
    </body>
</html>

Please advice.

Link to comment
Share on other sites

8 hours ago, grapyhost said:

We have reseller account from resellerclub and that reseller account have sub reseller 

So how to connect both accounts with whmcs using inbuilt whmcs resellerclub domain registrar module, can we make one duplicate module. if possible so, which code stream i need to edit. and make this possible!

i'm not sure that it's possible - are you thinking of offering sub-reseller pricing instead of reseller pricing for some clients ?

for something like this, I think your best bet is to contact Resellerclub Mods and ask Marco @imaticon about the options - if there's anyone who knows about Resellerclub and the potential sub-reseller options, it will be him. :957_heavy_check_mark:

going from this thread, it looks like he used to sell a subreseller addon 5 years ago, but I don't think it's available now.

Quote

Orderbox also offers full reseller management. This means you can convert yourself into a kind of "a small resellerclub registrar" but WHMCS cannot directly manage your sub-resellers. To manage with certain limits your sub-resellers through WHMCS, you need an Addon.

There is an Addon available. BUT: The sub-reseller addon is for Sub-Reseller Management and not for managing the products a sub-reseller has sold to his end customers. This is only possible through the Orderbox control panels. Orderbox is a very complex pyramidal system and WHMCS does not offer the concept of Orderbox.

However, you can sell and manage all orderbox products and services to your customers with WHMCS.

For example you can sell a complete reseller bulk hosting plan or a VPS Server to an end-customer. The customer can then setup his own WHMCS system using the service as an end-customer and at the same time, signing up with you a sub-reseller account to sell and manage the same products to his own end customers.

A Sub-reseller is in fact exactly the same like you: A Reseller with his own business. Your concern should be limited to selling to him, not what he sell to his customers.

The only difference between YOU and your sub-reseller: His reseller account is under your reseller account while YOUR reseller account is under another Reseller account such as ResellerClub, NEO, WHMCS, etc. etc. etc.

We are all sub-resellers and there is only one real Reseller at the very top level: Directi.

 

Link to comment
Share on other sites

Hello Brian, Thanks for the reply.

I don't want to access sub resellers domain prices.  I have an only concern with domain renewals, there are 500 domains in the sub-reseller account. 

Here are the brief details - 

This is our main resellerclub reseller account -  215172 and this is Sub reseller -  384784  of main reseller account.  So i want provision only renewals with sub reseller account, and all new domain registration with main (215172) reseller account.   Hope you got what i want to say.

 

So after searching -  here is the resellerclub API call documents - https://manage.resellerclub.com/kb/answer/746

 

https://test.httpapi.com/api/domains/renew.json?auth-userid=0&api-key=key&order-id=562994&years=1&exp-date=1279012036&invoice-option=NoInvoice

 

and below is the whmcs domain module sample code - 

 

/**
 * Renew a domain.
 *
 * Attempt to renew/extend a domain for a given number of years.
 *
 * This is triggered when the following events occur:
 * * Payment received for a domain renewal order
 * * When a pending domain renewal order is accepted
 * * Upon manual request by an admin user
 *
 * @param array $params common module parameters
 *
 * @see https://developers.whmcs.com/domain-registrars/module-parameters/
 *
 * @return array
 */
function registrarmodule_RenewDomain($params)
{
    // user defined configuration values
    $userIdentifier = $params['auth-userid'];
    $apiKey = $params['api-key'];
    $testMode = $params['Test Mode'];
    $accountMode = $params['Account Mode'];
    $emailPreference = $params['Email Preference'];
    $additionalInfo = $params['Additional Information'];

    // registration parameters
    $sld = $params['sld'];
    $tld = $params['tld'];
    $registrationPeriod = $params['regperiod'];

    // domain addon purchase status
    $enableDnsManagement = (bool) $params['dnsmanagement'];
    $enableEmailForwarding = (bool) $params['emailforwarding'];
    $enableIdProtection = (bool) $params['idprotection'];

    /**
     * Premium domain parameters.
     *
     * Premium domains enabled informs you if the admin user has enabled
     * the selling of premium domain names. If this domain is a premium name,
     * `premiumCost` will contain the cost price retrieved at the time of
     * the order being placed. A premium renewal should only be processed
     * if the cost price now matches that previously fetched amount.
     */
    $premiumDomainsEnabled = (bool) $params['premiumEnabled'];
    $premiumDomainsCost = $params['premiumCost'];

    // Build post data.
    $postfields = array(
        'username' => $userIdentifier,
        'password' => $apiKey,
        'testmode' => $testMode,
        'domain' => $sld . '.' . $tld,
        'years' => $registrationPeriod,
        'dnsmanagement' => $enableDnsManagement,
        'emailforwarding' => $enableEmailForwarding,
        'idprotection' => $enableIdProtection,
    );

    try {
        $api = new ApiClient();
        $api->call('Renew', $postfields);

        return array(
            'success' => true,
        );

    } catch (\Exception $e) {
        return array(
            'error' => $e->getMessage(),
        );
    }
}

/**
 * Fetch current nameservers.
 *
 * This function should return an array of nameservers for a given domain.
 *
 * @param array $params common module parameters
 *
 * @see https://developers.whmcs.com/domain-registrars/module-parameters/
 *
 * @return array
 */
function registrarmodule_GetNameservers($params)
{
    // user defined configuration values
    $userIdentifier = $params['auth-userid'];
    $apiKey = $params['api-key'];
    $testMode = $params['Test Mode'];
    $accountMode = $params['Account Mode'];
    $emailPreference = $params['Email Preference'];
    $additionalInfo = $params['Additional Information'];

    // domain parameters
    $sld = $params['sld'];
    $tld = $params['tld'];
    $registrationPeriod = $params['regperiod'];

    // Build post data
    $postfields = array(
        'username' => $userIdentifier,
        'password' => $apiKey,
        'testmode' => $testMode,
        'domain' => $sld . '.' . $tld,
    );

    try {
        $api = new ApiClient();
        $api->call('GetNameservers', $postfields);

        return array(
            'success' => true,
            'ns1' => $api->getFromResponse('nameserver1'),
            'ns2' => $api->getFromResponse('nameserver2'),
            'ns3' => $api->getFromResponse('nameserver3'),
            'ns4' => $api->getFromResponse('nameserver4'),
            'ns5' => $api->getFromResponse('nameserver5'),
        );

    } catch (\Exception $e) {
        return array(
            'error' => $e->getMessage(),
        );
    }
}

 

 

Can you tell me how to match the actual parameters and pass it to resellerclub API.  and get users domain renew.

 

Thanks

Grapy

Link to comment
Share on other sites

Thank you @brian!

The solution to achieve your goal @grapyhost is simple:

1. In WHMCS setup everything with your new Reseller ID using the Resellerclub Registrar Module

2. Activate another Logicboxes registrar Module with the Reseller ID you would like to use only for domain renewals, for example "NetEarthOne", "Resell.biz" , "Resellercamp", etc.

3. For those domains you mention to renew only, change the registrar module from "Resellerclub" to the other Registrar Module you have activated and configured.

4. Set Autoregister to Resellerclub for all your TLDs to ensure that new registers are using the Resellerclub registrar with your new Reseller ID.

That's it.

This will allow you to manage and renew the domains and your customers will be able to do the same from the client area.

Hope this helps.

Link to comment
Share on other sites

48 minutes ago, imaticon said:

2. Activate another Logicboxes registrar Module with the Reseller ID you would like to use only for domain renewals, for example "NetEarthOne", "Resell.biz" , "Resellercamp", etc.

3

Hello, imaticon

Thanks for the reply.  if I used my resellerclubs sub-reseller account's user id and API key into Resell.biz or other you mentioned module, so it will works?  Are they using same parameters as resellerclub registrar module using?

Link to comment
Share on other sites

26 minutes ago, grapyhost said:

if I used my resellerclubs sub-reseller account's user id and API key into Resell.biz or other you mentioned module, so it will works? 

the logic of Marco's solution is perfectly correct.

27 minutes ago, grapyhost said:

Are they using same parameters as resellerclub registrar module using?

all the registrars that he listed basically redirect to the WHMCS Resellerclub registrar module for functionality - those registrars all use the same Logicboxes API - so if you add your sub-reseller ID & key into resell.biz, then it should work fine as Marco suggested.

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