API Commands
[All Commands]

Order: Renew_Domain



order type Renew_Domain


Renew a existing domain from your account

Input Parameters ($params):

int period Period for domain registration (optionally - "minyear" is default)
string curExpDate Current domain expiration date by client(optionally, but recommended)
array params (optionally)
int trustee Required (trustee=1) for domains with active trustee service (local contact). (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);

$params = array (
    
"data" => array (
            
"ssid" => $token,
            
"order" => array (
                
"domain" => "domain.or.af",
                
"type" => "Renew_Domain",
                
"params" => array (
                        
"period" => 1,
                        
"curExpDate" => "2017-10-16"
                
)
            )
    )
);

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

?>
INPUT: [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [order] => Array ( [type] => Renew_Domain [domain] => domain.or.af [params] => Array ( [period] => 1 [curExpDate] => 2017-10-16 ) ) ) OUTPUT: [status] => ok [data] => Array ( [orderid] => 24 )

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