API:getProductUpgrades - Get applicable upgrades

Get list of products that can be and are applied as upgrade 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=getProductUpgrades&id=ID

Response

   {
      "success": true,
      "upgrades": [
         {
            "id": "236",
            "name": "VPS-1024",
            "catname": "Cloud tests",
            "category_id": "43",
            "assigned": true
         },
         {
            "id": "234",
            "name": "VPS-2048",
            "catname": "Cloud tests",
            "category_id": "43"
         }
      ],
      "call": "getProductUpgrades",
      "server_time": 1317713000
   }