List tickets by products

GET {{baseUrl}}/api/v1/products/:product_id/tickets

This API lists tickets received from a specific products.

OAuth Scope

  • Desk.tickets.READ
  • Desk.settings.READ
  • Desk.search.READ

Request Params

KeyDatatypeRequiredDescription
departmentIdstringID of the department from which the tickets must be fetched
fromstringIndex number, starting from which the tickets must be fetched
limitstringNumber of tickets to fetch
sortBystringSort by a specific attribute: createdTime or modifiedTime. The default sorting order is ascending. A - prefix denotes descending order of sorting.
dueDatestringFilter by ticket duedate. Values allowed are overdue, tomorrow, currentWeek, currentMonth and today. You can include both values by separating them with a comma
isSpamstringFilters Spam tickets
includestringAdditional information related to the tickets. Values allowed are: products, departments, team, isRead and assignee. You can pass multiple values by separating them with a comma in the API request.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"data":[{"ticketNumber":"149","sentiment":"NEGATIVE","statusType":"Open","subject":"Hi. There is a sudden delay in the processing of the orders. Check this with high priority","dueDate":"2017-11-04T07:03:09.000Z","departmentId":"1892000000006907","channel":"Email","onholdTime":null,"language":"English","closedTime":null,"createdTime":"2017-10-12T13:11:50.000Z","id":"18944000000336005","department":{"name":"dasdasdasd","id":"1892000000006907"},"email":"support@zylker.com","customerResponseTime":"2017-11-03T07:03:09.203Z","productId":"18944000000424033","contactId":"18944000000421011","threadCount":"7","lastThread":null,"team":{"name":"kjsdfjks","id":"8920000000069071"},"priority":"Medium","assigneeId":"1892000000042001","commentCount":"0","phone":"9876543321","webUrl":"https://desk.zoho.com/support/zylker/ShowHomePage.do#Cases/dv/20d7881a46edfcffefe308ab38676ec3e612657a51fd5fbe","teamId":"8920000000069071","assignee":{"firstName":"dasca","lastName":"vins","photoURL":"https://desk.zoho.com/api/v1/agent/1892000000042001/photo","id":"1892000000042001","email":"jack@zylker.com"},"status":"Open"}]}