API Commands
[All Commands]

Order: PremiumCreate_Domain



order type PremiumCreate_Domain


Create a new premium domain. For DNSSEC extension please see full specification here.

Input Parameters ($params):

int period Period for domain registration (required)
contact registrant Owner contact of new domain (required)
array contacts
contact admin Administrative contact
contact tech Technical contact
contact billing Billing contact
array ns
host hosts Hostnames of nameservers
string nsset Nameserver Set (only for FRED registries (.CZ,.EE,...))
array params Any others params - please see here
string dnstemp DNS Template (optionally)

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/soap/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);

$hosts = array("ns.domena.com","ns2.domena.com",
    
"ns3.domena.com","ns4.domena.com",
    
"ns5.domena.com");

foreach(
$hosts as $host){
    
$ns[]["hostname"] = $host;
}

$params = array (
    
"data" => array (
            
"ssid" => $token,
            
"order" => array (
                
"domain" => "domain.or.af",
                
"type" => "PremiumCreate_Domain",
                
"params" => array (
                    
"registrant" => array (
                        
"id" => "G-000001",
                    )
                    
"contacts" => array (
                        
"admin" => array (
                            
"id" => "G-000001",
                        ),
                        
"tech" => array (
                            
"id" => "G-000001",
                        ),
                    ),
                    
"ns" => array (
                        
"hosts" => $ns,
                    ),
                    
"params" => array (
                        
"authid" => "ukulele",
                    )
                    
"period" => 1
                
)
            )
    )
);

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

?>
OUTPUT: [status] => ok [data] => Array ( [orderid] => 24 )

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