Send AuthID

				
					StructOperationResponse domainAuthID(string idSession, string domain, int sendtoregistrant)
			

Return the authorization code to transfer the domain name to another registrar or to another client account.

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • sendtoregistrant integer
    Set to: “1” to send to the registrant, “0” to send to the reseller.

An Object of type StructOperationResponse

  • Each request will generate a new code
  • In rare cases, the code will be transmitted directly to the registrant by the registry.
<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
      $StructOperationResponse = $clientSOAP->domainAuthID($idSession, "netim.com",0); 
 
      print_r($StructOperationResponse);
 
      $StructOperationResponse = $clientSOAP->domainAuthID($idSession, "netim.net",1); 
 
      print_r($StructOperationResponse); 
 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>