API:addAddonToAccount - Add Addon to Account

Add an addon to existing account.

Required parameters

account_id
Account ID
addon_id
ID of addon from hb_addons table to add

Optional parameters

invoice
Set to "true" if invoice for adding this addon should be generated
cycle
Billing cycle for addon, allowed values: 'm','q','s','a','b','t','d','w','h' or 'Free' or 'Once' where m-monthly, q-quarterly etc.
payment_module
If you choose to generate invoice, you can provide ID of payment gateway to use

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=addAddonToAccount&account_id=ACCOUNT_ID&addon_id=ADDON_ID

Response

   {
      "success": true,
      "newaddon": true,
      "call": "addAddonToAccount",
      "server_time": 1366103631,
      "info": [
         "Addon added"
      ]
   }