Solutions

Get Tickets API

Vishal J Jan-7th, 2014 14:28 0 0
This API is used to fetch Tickets and Ticket Details

Please check example usage of Vision Helpdesk API

Operation: get_tickets
Module: ticket

[Required]

$postfields["vis_module"] = "ticket";
// This is the module under which you wish to perform operation

$postfields["vis_operation"] = "get_tickets";
// This is the operation field

[Optional]

$postfields["vis_filter"] = 'ticket_id=115';

//You can filter your results based on what you pass to vis_filter field. Below example shows fetch ticket details of particular ticket id.

Similarly you can fetch tickets based on ticket status:

$postfields["vis_module"] = "ticket";
$postfields["vis_operation"] = "get_tickets";

[Optional]

$postfields["vis_filter"] = 'status_id=1';

Similarly you can fetch tickets based on department:

$postfields["vis_module"] = "ticket";
$postfields["vis_operation"] = "get_tickets";

[Optional]

$postfields["vis_filter"] = 'department_id=2';

Similarly you can fetch tickets based on ticket folders

$postfields["vis_filter_id"] = 1;
// 1=Inbox,2=New Tickets,3=Overdue tickets, 4=Assigned tickets, 5=Trash, 6=Spam, 7=Draft

Below is example API URL to search tickets

Fetching tickets by status id:

XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=status_id=1

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=status_id=3

OR use "access token" to Fetch Tickets by status id:

XML: 
http://visiononlinedemo.com/support/api/index.php? 
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= 
&vis_module=ticket 
&vis_operation=get_tickets 
&vis_filter=status_id=1 

JSON: 
http://visiononlinedemo.com/support/api/index.php? 
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= 
&vis_module=ticket 
&vis_operation=get_tickets 
&vis_filter=status_id=3 

Fetching Overdue tickets:

XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter_id=3
&vis_encode=json

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter_id=3
&vis_encode=json

OR use "access token" to Fetch Overdue Tickets:

XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter_id=3
&vis_encode=json

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter_id=3
&vis_encode=json

Vote

Was this article helpful?
0 out of 2 found this helpful