API:orderUpgrade - Order an upgrade

Create new order for account upgrades

Required parameters

id
Account ID
new
Product Id of package we will be upgrading to

Optional parameters

new_cycle
Billing cycle for product, allowed values: 'm','q','s','a','b','t','d','w','h' or 'Free' or 'Once' where m-monthly, q-quarterly etc.
module
Payment module ID invoice should be generated with.
coupon
Valid promotion code.

Request

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

Response

   {
      "success": true,
      "checkout": {
         "invoice_id": "75",
         "total": 48,
         "gateway": "4",
         "order_id": "69",
         "order_num": 999054726,
         "newtotal": 1376
      },
      "call": "orderUpgrade",
      "server_time": 1344000642,
      "info": [
         "upgrade_order_success"
      ]
   }