API:getTicketDetails - Get ticket

View ticket details by its number.

Required parameters

id
Ticket number

Request

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

Response

   {
      "success": true,
      "ticket": {
         "id": "17",
         "date": "2011-10-04 09:14:31",
         "lastreply": "2011-10-04 09:14:48",
         "ticket_number": "814003",
         "acc_hash": "szpmn0",
         "dept_id": "1",
         "client_id": "1",
         "name": "Default User",
         "email": "john@doe.com",
         "cc": "",
         "subject": "Test support message",
         "body": "Testing 123",
         "status": "In-Progress",
         "priority": "0",
         "notes": "",
         "admin_read": "1",
         "client_read": "0",
         "type": "Admin",
         "deptname": "Support",
         "viewtime": "2011-10-04 09:15:36"
      },
      "replies": [
         {
            "id": "23",
            "ticket_id": "17",
            "replier_id": "1",
            "name": "Default User",
            "email": "testmail@hostbillappx.com",
            "date": "2011-10-04 09:14:48",
            "body": "Hello is popular reply....\r\n\r\n\r\n--my signature--",
            "status": "Sent",
            "type": "Admin"
         }
      ],
      "attachments": [
         
      ],
      "call": "getTicketDetails",
      "server_time": 1317712536
   }