Set auto renew

				
					StructOperationResponse brandProtectionSetPreference(string idSession, string IDBP, string codePref, string enable)
				
			

Enable or disable auto renew feature.

REQUIRED


  • IDSession string (32)
    Session ID.
  • IDBP string
    Brand protection ID (BP-XX000-XX).
  • codePref string
    Set to “auto_renew”.
  • enable string
    Set to: “0” to disable, “1” to enable.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$IDBP = 'BP-XX000-XX';
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XX000", "XX000", "EN"); 
      $clientSOAP->brandProtectionSetPreference($idSession, $IDBP, "auto_renew", "1");
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>