API:getProductApplicableAddons - Get applicable addons

Get list of addons that can be and are applied to certain product.

Required parameters

id
Product ID

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=getProductApplicableAddons&id=ID

Response

   {
      "success": true,
      "addons": {
         "addons": [
            {
               "id": "4",
               "name": "OnApp: Extra Backup Space",
               "products": ",49,236"
            },
            {
               "id": "3",
               "name": "OnApp: Extra Memory",
               "products": ""
            },
            {
               "id": "2",
               "name": "OnApp: Extra Disk Space",
               "products": ""
            }
         ],
         "applied": true,
         "available": true
      },
      "call": "getProductApplicableAddons",
      "server_time": 1317712969
   }