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.
  • sendto integer
    Send the authorization code to:

    0: Reseller
    1: Registrant
    2: None


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); 
} 
?>