API:searchTicketsByFields - Get tickets by support fields

Requires Support Fields plugin to be added and active in HostBill. Return list of tickets as in getTickets call, but narrow search by a support fields values

Required parameters

fields
Array of fields to search by, like fields[Field Name A]=value1. You can define multiple fields to search/filter tickets by

Optional parameters

page
Which page to return

Request

GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=searchTicketsByFields&fields=:FIELDS

Response

   {
      "success": false,
      "tickets": [
         {
            "admin_read": "1",
            "id": "96",
            "parent_id": "0",
            "type": "Client",
            "firstname": "Louis",
            "lastname": "CK",
            "date": "2017-06-23 04:07:19",
            "lastreply": "10 minutes ago",
            "dept_id": "2",
            "name": "Louis CK",
            "client_id": "95",
            "status": "Open",
            "ticket_number": "532603",
            "tsubject": "#532603 - 412341423",
            "deptname": "General questions",
            "priority": "0",
            "flags": 0,
            "escalated": "0",
            "tags": "0",
            "creator_id": "0",
            "owner_id": "1",
            "rpname": "Louis CK",
            "last_reply": null,
            "status_color": "000000",
            "lastreply_date": "2017-06-23 04:07:19"
         }
      ],
      "call": "searchTicketsByFields",
      "sorter": {
         "perpage": 25,
         "totalpages": 1,
         "sorterrecords": "1",
         "sorterpage": 1
      },
      "server_time": 1498216681
   }