API Commands
[All Commands]

Command: Check_Domain



command Check_Domain

Check if domain is available or not

Input Parameters ($data):

string ssid Token from Login
string domain Domain for check availability

Output Responses:

string status ok | error
array data Details about your request
 
string name Domain name
string avail 0 - not available, 1 - available
string existing_claim_id ID of existing TMCH claim - domain with claim id isn't possible register via API
array price  
string amount Total domain price (premium price included)
string amount_with_trustee Total domain price with trustee (if domain required), premium price included
string premium 0 - domain is not premium, 1 - domain is premium with premium price
string currency Currency of this price

Specification

.INFORequired parameter lang_info for IDN domain

Sample:


<?
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);

$token $response["data"]["ssid"];

unset(
$params);

$params = array (
    
"data" => array (
            
"ssid" => $token,
            
"domain" => "domain.or.af",
    )
);

$response $client->__call("Check_Domain",$params);

?>
INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 [domain] => somedomain.menu ) OUTPUT: [status] => ok [data] => Array ( [name] => domain.or.af [avail] => 1 [price] => Array ( [amount] => 816.44 [premium] => 0 [currency] => CZK ) [existing_claim_id] => 20132020/z/u/qvKxNIaSK3ASD )

API Manual - version from 2017-09-15 12:54:14