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 details

Overview: details returns information about a service such as selected options, renewal, and start dates.

details expects the following parameters:

  • service_id – The identifier of the service.

Example:

$params = array(
	    'service_id' => 34238
	);
	$api->call('service.details', $params);

Output:

Array
	(
	    [status] => 1
	    [data] => Array
	        (
	            [packid] => 34238
	            [clientid] => 5974
	            [desserv] => TESTA
	            [start] => 1356933600
	            [price] => 139.00
	            [period] => 1
	            [discount] => 0.00
	            [cost] => 139.00
	            [servtype] => i32120
	            [servcode] => 0
	            [end] => 0
	            [lastrenew] => 1359698400
	            [renewdate] => 1362117600
	            [lastrenew_error] => No associated devices
	            [lastrenew_success] => 1
	            [balance] => 0.00
	            [parentpack] => 0
	            [comment] =>
	            [username] =>
	            [password] =>
	            [servername] =>
	            [ip_address] =>
	            [cp_host] => 0
	            [active] => 4
	            [billed] => 2
	            [bill_type] => 1
	            [hide_upgrades] => 0
	            [auto_bill] => 1
	            [srv] => 0
	            [srv_domains] =>
	            [referred_by] => 0
	            [dev] => 0
	            [quantity] => 1.00
	            [created] => 1360613275
	            [prorated] => 0
	            [plan_id] => 182
	            [discount_type] => 0
	            [post_renew] => 0
	            [suspend_after] => 0
	            [cancel_after] => 0
	            [suspend_bool] => 0
	            [cancel_bool] => 0
	            [billing_info_id] => 5930
	            [bill_prior] => 0
	            [order_id] => 0
	            [zone_id] => 0
	            [prorate_reason] =>
	            [title] => Intel Core i3-2120
	            [options] => Array
	                (
	                    [238027] => Array
	                        (
	                            [option_id] => 238027
	                            [spo_id] => 12163
	                            [packid] => 34238
	                            [description] => First Available
	                            [price] => 0.00
	                            [setup] => 0
	                            [cost] => 0.00
	                            [access] => 2
	                            [discount_type] => 0
	                            [discount] => 0.00
	                            [inv_hide] => 0
	                            [spo_description] => First Available
	                            [spo_val] =>
	                            [spg_id] => 1648
	                            [spg_name] => Location
	                            [variable] =>
	                            [spug_id] => 0
	                            [spug_name] => Ungrouped
	                            [spog_id] => 0
	                            [spog_name] => Ungrouped
	                        )
	                )
	            [taxes] => Array
	                (
	                )
	            [unpaid_balance] => 0
	        )
	)