API:getAccountDetails - Get account details

Return account details. Warning.: This method returns decrypted account password.

Required parameters

id
Account ID

Request

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

Response

   {
      "success": true,
      "details": {
         "id": "48",
         "client_id": "1",
         "order_id": "72",
         "product_id": "52",
         "parent_id": "0",
         "date_created": "2011-12-09",
         "domain": "hostbasic.com",
         "server_id": "0",
         "payment_module": "32",
         "firstpayment": "16.00",
         "total": "16.00",
         "billingcycle": "Monthly",
         "next_due": "2012-01-09",
         "next_invoice": "2012-01-02",
         "status": "Active",
         "username": "",
         "password": "",
         "autosuspend": "0",
         "autosuspend_date": "0000-00-00",
         "rootpassword": "",
         "ns1": "",
         "ns2": "",
         "disk_usage": "0",
         "disk_limit": "0",
         "bw_usage": "0",
         "bw_limit": "0",
         "date_changed": "2011-12-09 07:46:17",
         "synch_date": "0000-00-00 00:00:00",
         "synch_error": "0",
         "user_error": "0",
         "domain_error": "0",
         "notes": "",
         "manual": "0",
         "mod_custom_id": null,
         "extra_details": "",
         "module": "0",
         "options": "",
         "firstname": "John",
         "lastname": "Doe",
         "ptype": "Shared",
         "addons": "0",
         "server_name": null,
         "custom": false
      },
      "call": "getAccountDetails",
      "server_time": 1323445708
   }