getclientsaddons
Purpose
This command is used to obtain the addons associated with a client
Attributes
Optional Attributes
- clientid - The Client ID you wish to obtain the results for
- addonid - The specific addonid you wish to find
- serviceid - The specific, or comma separated list of, service(s)
Example Command
$postfields = array(); $postfields["responsetype"] = "json"; $postfields["action"] = "getclientsaddons"; $result = mikrovps_SendCommand( $postfields );
Successful Response
Array with Addons
Array
(
[result] => success
[serviceid] =>
[clientid] =>
[totalresults] => 1
[addons] => Array
(
[addon] => Array
(
[0] => Array
(
[id] => 1
[userid] => 1
[orderid] => 1
[serviceid] => 1
[addonid] => 1
[name] =>
[setupfee] => 10.00
[recurring] => 10.00
[billingcycle] => Monthly
[tax] => on
[status] => Active
[regdate] => 2015-06-10
[nextduedate] => 2015-07-10
[nextinvoicedate] => 2015-08-10
[paymentmethod] => banktransfer
[notes] =>
)
)
)
)
Error Response
None