API Docs

This functionality of the Ubiquity API has been disabled. Looking for information on this transition to LeaseWeb? Click here for answers to FAQs and here for information on the LeaseWeb customer portal. Click here for information about the Leaseweb API.

Get to know add

Overview: add immediately creates a new service with the provided plan and options. Valid plan and options can be found by calling client.get_reseller_packages_with_options.

add expects the following parameters:

  • plan_id – The id of the service plan.
  • configoptions – A list of service package options and values.

NOTE: This function returns the service id of the new service in the data field.

Example:

$params = array(
	    'plan_id' => 138,
	    'configoptions' => array(
	        893 => 6540,
	        892 => 6532,
	        899 => 6604,
	        894 => 6542,
	        895 => 6555,
	        898 => 6597,
	        911 => 6692,
	        910 => 6679,
	        909 => 6677,
	        901 => 6613,
	        902 => 6638,
	        903 => 6640,
	        904 => 6649,
	        905 => 6655,
	        906 => 6662,
	        908 => 6669,
	        900 => 6610
	    )
	);
	$api->call('service.add', $params);

Output:

Array
	(
	    [status] => 1
	    [data] => 4585
	)