URL: api/agent/slaplans-tickets-count

Method: GET

Description : Gets ticket count for closed, open, request for close, resolved and unapproved for Sla plans.

Parameters:

Parameter Type Optional/Required Description
search_query string Optional String that is required to be searched.
limit integer Optional No.  of records to be fetched.
sort_order string Optional Records to be ordered in asc or desc.
sort_field string Optional SLA Plan attribute based on which sorting will be done.
page integer Optional Page number

Success Response :

{

 "success": true,

 "data": {

"slaplans_tickets": [

    {

        "id": 1,

        "name": “low”,

        “closed": 10,

        "open": 3,

        "request_close": 1,

        "resolved": 2,

        "unapproved": 2



   },

 {

        "id": 2,

        "name": “normal”,

        “closed": 10,

        "open": 3,

        "request_close": 1,

        "resolved": 2,

        "unapproved": 2

   }

    ]

 "current_page": 1,
  "first_page_url": "http://faveo.com/api/agent/slaplans-tickets-count?page=1",
   "from": 1,
   "last_page": 1,
   "last_page_url": "http://faveo.com/api/agent/slaplans-tickets-count?page=1",
   "next_page_url": null,
   "path": "http://faveo.com/api/agent/slaplans-tickets-count",
   "per_page": 10,
   "prev_page_url": null,
   "to": 4,
   "total": 4

 }

}

 

Leave a Reply

Your email address will not be published. Required fields are marked *