API:getClientStats - Get client statistics

Get client statistics

Required parameters

id
Client ID

Request

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

Response

   {
      "success": true,
      "stats": {
         "invoice_paid": 178,
         "paid": 1,
         "invoice_cancelled": 0,
         "cancelled": 0,
         "invoice_unpaid": 295,
         "unpaid": 1,
         "shared": 0,
         "reseller": 0,
         "dedicated": 0,
         "other": 0,
         "domain": "0",
         "ticket": 0,
         "credit": "0.00",
         "affiliate": false,
         "currency_id": "0",
         "accounts": {
            "opensrscert": "2"
         }
      },
      "call": "getClientStats",
      "server_time": 1323444265
   }