NAV Navbar
shell php
  • Introduction
  • Authentication
  • Dedicated Servers
  • Cloud VPS Servers
  • Errors
  • Introduction

    Welcome to the UltratechHost API! You can use our API to manage your services within UltratechHost, Using the REST principle, the API is designed to have predictable resources and responses using standard HTTP Status codes. JSON will be returned in all responses from the API, unless stated otherwise.

    We have language bindings in Shell and PHP! You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.

    Authentication

    Make sure to replace nqejOOMY9DN2CMkDrlA8 with your API key.

    UltratechHost uses API keys to allow access to the API. You can register a new API key at our Billing System.

    UltratechHost expects for the API key to be included in all API requests to the server.

    Dedicated Servers

    Currently our API System supports Dedicated Servers located at: Germany, Netherlands, USA & Singapore regions.

    Get A Server Details

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=getserver&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'getserver',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":[
            {
    "serverid":"123456",
    "serverName":"ABCD029",
    "reference":"Testing",
    "serverType":"Bare Metal",
    "CabinateID":"GD07",
    "Site":"AMS-01",
    "Suite":"Hall1",
    "DataPack":"Datatraffic - 10 TB (Volume)",
    "IpmiGateway":"10.19.130.254",
    "IpmiIp":"10.19.130.210",
    "IpmiNetmask":"255.255.255.192",
    "IpmiNetwork":"10.19.130.192",
    "IpmiType":"ILO",
    "IpsAssigned":2,
    "HardDisk":"4x1 TB SATA ",
    "HardwareRaid":"Yes",
    "KVM":"No",
    "NoofCores":4,
    "NoOfCPU":1,
    "ProcessorSpeed":"2530 Mhz",
    "ProcessorType":"Intel Quad-Core Xeon X3440",
    "RAM":"16GB",
    "ServerType":"Hp DL120 G6",
    "ContTerm":"1 month(s)",
    "ServerPrice":11.21,
    "StartDate":"Nov 1, 2017",
    "EndDate":null,
    "SLA":"Bronze - 24x7x4"
            }
        ]
    }
    
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name getserver Function that retrives the account/service details.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Get IP Address Details

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=ipaddress&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'ipaddress',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":[
    {
    "Price":null,
    "StartDate":null,
    "Ipaddr":"192.168.1.101",
    "Gateway":"192.168.1.1",
    "Mask":"255.255.255.0",
    "IsPrimary":true,
    "NullRouted":false,
    "ReverseLookup":"server.ultratechhost.com",
    "ServerId":"123456",
    "ServerName":"ABCD029",
    "ServerType":"Dedicated"
    },
    {
    "Price":null,
    "StartDate":null,
    "Ipaddr":"192.168.1.102",
    "Gateway":"192.168.1.1",
    "Mask":"255.255.255.0",
    "IsPrimary":false,
    "NullRouted":false,
    "ReverseLookup":"ultratechhost.com",
    "ServerId":"123456",
    "ServerName":"ABCD029",
    "ServerType":"Dedicated"
           }
        ]
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name ipaddress Function that retrives ip address details.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Power Off Server

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=PowerOff&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'PowerOff',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name PowerOff Power Off Server, You can use the same to suspend.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Power On Server

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=PowerOn&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'PowerOn',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name PowerOn Power On Server, You can use the same to unsuspend.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Server Reboot

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=PowerCycle&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'PowerCycle',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name PowerCycle Reboot the server.
    modacton ModuleCustom Its the action name.
    accountid 10 Service ID which can be obtained from service details.

    Installation Status

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=installstatus&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'installstatus',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":"Normal"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name installstatus Status of the installation or server. "Normal" indicates server is not being installed at the moment and operates as normal, "Reboot to rescue mode" shows Server rebooted into rescue mode.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Switch Status

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=switch&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'switch',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":"open"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name switch Indication whether the port is “open” or “closed”
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Power Status

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=power&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'power',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":"on"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name power Indication whether the power port is “on” or “off”
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Root User Password

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=rootpass&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'rootpass',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":"AsD12KkIoPS"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name rootpass The initial root password
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Rescue Mode Password

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=rescuepass&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'rescuepass',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":"AsD12KkIoPS"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name rescuepass The rescue mode root password.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Bandwidth used

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=bwused&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'bwused',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":[
    {
    "in":"39.49 GB",
    "out":"474.35 MB",
    "total":"39.97 GB"
    }
    ]
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name bwused Retrives Bandwidth Use details In/Out/Total.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Bandwidth used graph

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=bwusedimg&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'bwusedimg',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":"data:image\/png;base64,3QIom\/OJvjETNJld31iCK4wYwqIwbdyBaKt+0QTGnJWnQHX0dXNOXSEkBLi2ika2wR\/TEemOOnA4r1I1k9xuj4xbqkRYrLbx37JFoHVN2dinm7iezOSDCyhaMbNb9CC6C5QrJ1xlhgf2px9ie76aCDqGykpAcZTmwfxNVXft3SHdNk3QQpxghTiBCnECVKIE6QQJ2iB+O0P1aC+m2eX4APo+\/87GjNPOGADTwAAAABJRU5ErkJggg=="
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name bwusedimg Retrives base64 format of a image and you can add it as img tag.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Reverse DNS Setup

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=Rdns&rdns=test.example.com&ipv4=192.168.1.101&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'Rdns',
                                  'rdns' => 'test.example.com',
                                  'ipv4' => '192.168.1.101',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success",
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name Rdns Performs rdns.
    rdns test.example.com Reverse DNS Value.
    ipv4 192.168.1.101 The IP Address for which setting the rdns.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Server OS List

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=serveros&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'serveros',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":
    [
    {
    "id":867,
    "name":"CentOS 6 (i386)"
    },
    {
    "id":868,
    "name":"CentOS 6 (x86_64)"
    },
    {
    "id":1899,
    "name":"CentOS 7 (x86_64)"
    },
    {
    "id":1566,
    "name":"Debian 7.0 (x86)"
    },
    {
    "id":1567,
    "name":"Debian 7.0 (x86_64)"
    },
    {
    "id":2142,
    "name":"Debian 8.0 (x86_64)"
    },
    {
    "id":2571,
    "name":"Debian 9.0 (x86_64)"
    },
    {
    "id":1864,
    "name":"ESXi 5.5 (x86_64)"
    },
    {
    "id":2143,
    "name":"ESXi 6.0 (x86_64)"
    },
    {
    "id":2491,
    "name":"ESXi 6.5 (x86_64)"
    },
    {
    "id":2338,
    "name":"ESXi HP 5.5 (x86_64)"
    },
    {
    "id":2337,
    "name":"ESXi HP 6.0 (x86_64)"
    },
    {
    "id":1953,
    "name":"FreeBSD 10.3 (amd64)"
    },
    {
    "id":2490,
    "name":"FreeBSD 11.0 (amd64)"
    },
    {
    "id":1789,
    "name":"Ubuntu 14.04 (amd64)"
    },
    {
    "id":1790,
    "name":"Ubuntu 14.04 (x86)"
    },
    {
    "id":2348,
    "name":"Ubuntu 16.04 (amd64)"
    }
    ]
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name serveros Retrives all OS List
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Rescue Mode OS List

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=rescueos&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'rescueos',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":[
    {
    "id":121,
    "name":"FreeBSD Rescue Image (amd64)"
    },
    {
    "id":137,
    "name":"GRML Linux Rescue Image (amd64)"
    }
    ]
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name rescueos Retrives all Rescue mode OS List
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Server Rescue mode

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=Rescue&rescueOs=121&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'Rescue',
                                  'rescueOs' => '121',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name Rescue Reboot Server into Rescue mode.
    rescueOs 121 Rescue OS ID that obtained before.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Server OS Install

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=10&func_name=Reinstall&ServeriOS=121&swraid=2&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '10',
                                  'func_name' => 'Reinstall',
                                  'ServeriOS' => '121',
                                  'swraid' => '2',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name Reinstall Perform Server Installation.
    ServeriOS 123 Server OS ID that obtained before.
    swraid 0 Possible Values are '0' & '1' if no of HDD is 2 and '5' & '10' if No of HDD is 4.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Cloud VPS Servers

    Currently our API System supports Dedicated Servers located at: Germany, Netherlands, USA & Singapore regions.

    Get A Cloud VPS Details

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=SingleVPS&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'SingleVPS',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":
    [
    {
    "id":"12345",
    "name":"ABCD001",
    "reference":"Reseller",
    "dcname":"FRA-10",
    "state":"RUNNING",
    "OSInstalled":"CentOS 7 amd64 40G",
    "firewall":"ENABLED",
    "VPSPlan":"S",
    "SLA":"BRONZE",
    "startdate":"2017-10-01T00:00:00+02:00",
    "enddate":null,
    "BillingCycle":1,
    "BillingCylceMonth":"MONTH",
    "VPSCPU":1,
    "VPSMemory":"1024 MB",
    "VPSStorage":"40 GB",
    "VPSIP":"192.168.1.101",
    "VPSIPVer":"4",
    "VPSIPType":"PUBLIC",
    "VPSBW":"4000 GB PREMIUM"
    }
    ]
    }
    
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name SingleVPS Function that retrives the account/service details.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Get IPv4 Address Details

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=IPAddress&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'IPAddress',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":
    [
    {
    "ip":"192.168.0.101",
    "gw":"192.168.0.1",
    "mask":"255.255.255.0",
    "isprimary":false,
    "nullstatus":false,
    "rdns":"s.whmcsmodule.net"
    }
    ]
    }
    
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name IPAddress Retrives IPv4 details.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Get IPv6 Address Details

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=VPSIPv6&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'VPSIPv6',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":[
    {
    "ip":"2A00:0C98:2200:AF0A:0005::",
    "gw":"2a00:c98:2200:af0a::1",
    "mask":"\/64",
    "isprimary":false,
    "nullstatus":false,
    "rdns":null
    }
    ]
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name VPSIPv6 Retrives IPv6 details.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Power Off

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=PowerOff&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'PowerOff',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name PowerOff Power Off Server, You can use the same to suspend.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Power On

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=PowerOn&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'PowerOn',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name PowerOn Power On Server, You can use the same to unsuspend.
    modacton ModuleCustom Its the action name
    accountid 10 Service ID which can be obtained from service details.

    Reboot

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=Reboot&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'Reboot',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name Reboot Reboot the server.
    modacton ModuleCustom Its the action name.
    accountid 10 Service ID which can be obtained from service details.

    Reinstall VPS

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=Install&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'Install',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success"
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name Install Performs VPS reinstall with default OS.
    modacton ModuleCustom Its the action name.
    accountid 10 Service ID which can be obtained from service details.

    Total Datatraffic Used

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=Datatraffic&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'Datatraffic',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":
    [
    {
    "out":"194.71 MB",
    "in":"176.61 MB",
    "total":"371.33 MB"
    }
    ]
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name Datatraffic Retrives Datatraffic used in current month.
    modacton ModuleCustom Its the action name.
    accountid 10 Service ID which can be obtained from service details.

    Datatraffic Used Matrics

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=DatatrafficGrapgh&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'DatatrafficGrapgh',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":[
    {
    "out":"23.15,17.79,17.51,11.78,7.75,8.75,17.08,15.13,7.09,8.03,15.07,19.42,17.40,8.72",
    "in":"26.11,20.78,17.81,8.92,2.38,4.26,17.16,15.05,2.13,4.19,12.20,20.54,17.03,7.98",
    "dates":"01,02,03,04,05,06,07,08,09,10,11,12,13,14",
    "total":"49.26,38.57,35.32,20.7,10.13,13.01,34.24,30.18,9.22,12.22,27.27,39.96,34.43,16.7"
    }
    ]
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name DatatrafficGrapgh Retrives Datatraffic Matrics used in current month and you can implement a graph.
    modacton ModuleCustom Its the action name.
    accountid 10 Service ID which can be obtained from service details.

    User Credentials

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=Credentials&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'Credentials',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"error",
    "message":
    {
    "type":"OPERATING_SYSTEM",
    "username":"root",
    "password":"AG6Sfy3Su6E",
    "domain":null
    }
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name Credentials Retrives root/Administrator user login credentials.
    modacton ModuleCustom Its the action name.
    accountid 10 Service ID which can be obtained from service details.

    Reverse DNS Setup

    curl --request POST \
    --data 'apikey=nqejOOMY9DN2CMkDrlA8&accountid=2&func_name=Rdns&rdns=server.example.com&modacton=ModuleCustom' \
    --url https://billing.ultratechhost.com/ResellerAPI.php
    
    <?php
    $apikey = 'nqejOOMY9DN2CMkDrlA8';
    $curl = curl_init();
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://billing.ultratechhost.com/ResellerAPI.php",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => array('apikey' => $apikey,
                                  'accountid' => '2',
                                  'func_name' => 'Rdns',
                                  'rdns' => 'server.example.com',
                                  'modacton' => 'ModuleCustom',
                                 ),
        ));
    $response = curl_exec($curl) ; 
    curl_close($curl);
    
    echo $response;
    

    The above command returns JSON structured like this:

    {
    "result":"success",
    }
    

    To get information, send a POST request.

    HTTP Request

    POST https://billing.ultratechhost.com/ResellerAPI.php

    Query Parameters (All parameters are required.)

    Parameter Value Description
    apikey nqejOOMY9DN2CMkDrlA8 Authenticate to use our system.
    func_name Rdns Function that perform reverse dns.
    rdns server.example.com Reverse DNS value.
    modacton ModuleCustom Its the action name.
    accountid 10 Service ID which can be obtained from service details.

    Errors

    The UltratechHost API uses the following error codes:

    Error Type as Message Meaning
    Invalid IP Invalid IP 127.0.0.1 - If you have not whitelist your IP Address in the billing system.
    !Function not found in module! If wrong function name is provided.
    Function File Not Exist Command Not Found.
    Invalid Command Invalid API Command Value i.e 'modacton' is not found.
    Invalid API Key Invalid API Key returns if its not matching in the Database.
    Reseller API License Key:X If Vendor have module license issue then it will return this message where X is License status .
    All fields are required If an empty data is posted then it will return this message.
    Invalid Service ID:6 If the account ID 6 does not belongs to you.