API:searchServiceByIP - Search service by IP

Return services details by IP. Note that returned array "services" can contain more than one service. Note: This function is added by Account Search module, you need to activate it first in order to use this call

Required parameters

ip
IP to search by

Request

GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=searchServiceByIP&ip=:IP

Response

   {
      "services": [
         {
            "id": "188",
            "client_id": "23",
            "order_id": "255",
            "product_id": "17",
            "parent_id": "0",
            "date_created": "2017-02-16",
            "domain": "",
            "server_id": "2",
            "payment_module": "7",
            "firstpayment": "110.00",
            "total": "110.00",
            "billingcycle": "Monthly",
            "next_due": "2017-06-30",
            "due_day": "31",
            "next_invoice": "2017-06-23",
            "status": "Active",
            "label": "",
            "username": "testzxmx",
            "autosuspend": "0",
            "autosuspend_date": "0000-00-00",
            "date_changed": "2017-06-01 07:18:03",
            "synch_date": "0000-00-00 00:00:00",
            "synch_error": "0",
            "user_error": "0",
            "domain_error": "0",
            "notes": "",
            "manual": "0",
            "extra_details": "a:0:{}",
            "firstname": "Christopher",
            "lastname": "Nolun",
            "ip": "192.168.0.36",
            "additional_ip": [
               "192.168.0.32",
               "192.168.0.33",
               "192.168.0.34",
               "192.168.0.35",
               "192.168.0.37",
               "192.168.0.38",
               "192.168.0.39",
               "192.168.0.40",
               "192.168.0.41",
               "192.168.0.42",
               "192.168.0.43",
               "192.168.0.44",
               "192.168.0.45",
               "192.168.0.46",
               "192.168.0.47",
               "192.168.0.48",
               "192.168.0.49",
               "192.168.0.50",
               "192.168.0.51",
               "192.168.0.52",
               "192.168.0.53",
               "192.168.0.54",
               "192.168.0.55",
               "192.168.0.56",
               "192.168.0.57",
               "192.168.0.58",
               "192.168.0.59",
               "192.168.0.60",
               "192.168.0.61",
               "192.168.0.62",
               "192.168.0.63"
            ]
         }
      ],
      "success": true,
      "call": "searchServiceByIP",
      "server_time": 1497597094
   }