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
array price  
string amount Total price for domain registration (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
array price_renew  
string amount Total price for domain renew (premium price included)
string premium 0 - domain is not premium, 1 - domain is premium with premium price
string currency Currency of this price
array price_transfer  
string amount Total price for domain transfer (premium price included)
string premium 0 - domain is not premium, 1 - domain is premium with premium price
string currency Currency of this price
string existing_claim_id ID of existing TMCH claim - domain with claim id isn't possible register via API

Specification

.INFORequired parameter lang_info for IDN domain

Sample:


<?php
$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 ) [price_renew] => Array ( [amount] => 816.44 [premium] => 0 [currency] => CZK ) [price_transfer] => Array ( [amount] => 0 [premium] => 0 [currency] => CZK ) [existing_claim_id] => 20132020/z/u/qvKxNIaSK3ASD )

API Manual - version from 2023-05-12 12:15:50