API Docs

Get to know get_reseller_packages_with_options

Overview: get_reseller_packages_with_options returns details about every service plan, and plan option, available to the client for purchase.

get_reseller_packages_with_options expects no parameters.

CAUTION: This function will return a large amount of data and take several seconds to run. It is not recommended that you use this function to directly populate a web page.

Example:

$api->call('client.get_reseller_packages_with_options');

Output:

Array
	(
	    [status] => 1
	    [data] => Array
	        (
	            [0] => Array
	                (
	                    [plan_id] => 138
	                    [class_id] => 1
	                    [title] => Intel Core i3-540
	                    [code] => i3540
	                    [category] =>
	                    [price] => 119.00
	                    [setup] => 0.00
	                    [period] => 1
	                    [api_include] => 1
	                    [service_host] =>
	                    [bill_type] => 1
	                    [hide_upgrades] => 0
	                    [auto_bill] => 1
	                    [active] => 1
	                    [welcomeadd] =>
	                    [welcomesub] =>
	                    [welcomebody] =>
	                    [offerwelcome] => 0
	                    [quantity] => 1.00
	                    [suspend_after] => 0
	                    [cancel_after] => 0
	                    [suspend_bool] => 0
	                    [cancel_bool] => 0
	                    [qblistid] =>
	                    [qbaccount] =>
	                    [bill_prior] => 0
	                    [setup_qs] => 0
	                    [monthly_price] => 0.00
	                    [quarterly_price] => 0.00
	                    [semi_price] => 0.00
	                    [annual_price] => 0.00
	                    [one_time_price] => 0.00
	                    [monthly_setup] => 0.00
	                    [quarterly_setup] => 0.00
	                    [semi_setup] => 0.00
	                    [annual_setup] => 0.00
	                    [one_time_setup] => 0.00
	                    [post_renew] => 0
	                    [zero_inv] => 0
	                    [i18n] => Array
	                        (
	                            [1] => Array
	                                (
	                                    [id] => 137
	                                    [plan_id] => 138
	                                    [lang_id] => 1
	                                    [title] => Intel Core i3-540
	                                    [category] =>
	                                    [welcomesub] =>
	                                    [welcomebody] =>
	                                )
	                            [2] => Array
	                                (
	                                    [id] => 301
	                                    [plan_id] => 138
	                                    [lang_id] => 2
	                                    [title] =>
	                                    [category] =>
	                                    [welcomesub] =>
	                                    [welcomebody] =>
	                                )
	                    [notes] => Array
	                        (
	                        )
	                    [taxes] => Array
	                        (
	                        )
	                )
	        )
	)