API Commands
[All Commands]

Command: Set_Autorenew



command Set_Autorenew

Set autorenew policy for your domain. By default, domain is deleted when it expire. You can set autorenew flag to AUTORENEW, then it will use your credit to renew automatically. RENEWONCE will cause renew only for next year.

Input Parameters ($data):

string ssid Token from Login
string domain Registered domain
string autorenew Autorenew setting, allowed values: EXPIRE, AUTORENEW, RENEWONCE

Output Responses:

string status ok | error

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"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'domain' => 'exampledomain.com',
    
'autorenew' => 'AUTORENEW',
  ),
);

$response $client->__call("Set_Autorenew",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => exampledomain.com [autorenew] => AUTORENEW ) ) OUTPUT: Array ( [status] => ok )

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