Solutions

Open New Ticket API

Sheena Sen May-29th, 2012 14:06 1 0

This API is used to Open New Ticket.
Please check example usage of Vision Helpdesk API

Operation : open_new_ticket
Module : ticket

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

$postfields["vis_operation"] = "open_new_ticket";
// This is the domain id under which you wish to open ticket

$postfields["vis_domain"] = 1;
// This is the department id under which you wish to open ticket

$postfields["vis_department"] = 1;
// This is the department id

$postfields["vis_status"] = 1;
// This is the status id

$postfields["vis_priority"] = 1;
// This is the ticket priority id

$postfields["vis_subject"] = "Ticket subject";
// Ticket subject

$postfields["vis_type"] = 1;
// This is the ticket type id under which you wish to open ticket

You can create ticket by using clients id or by clients email

$postfields["vis_client"] = 1;
// This is the client id to whom you wish to send ticket

Or
$postfields["vis_email"] = "test1.vhd@gmail.com";
// valid client email address

$postfields["vis_ticket_post"] = "This is ticket post with html content";

$postfields["vis_from"] = "support@visiononlinedemo.com";
// This is the from email address that will be displayed in from column

$postfields["vis_people"] = "";
// This is CC email

$postfields["vis_send_message"] = 1;
// 1 = send autoresponder and 0 = don't send auto responder client

$postfields["vis_private"] = 1;
// 0 = do not display this post to client and 1 = show post to client

$postfields["vis_sendmail"] = 0;
// 1 = send email and 0 = don’t send email to client

$postfields["vis_as_client"] = 1;
// 0 = create as staff reply and 1 = create ticket on behalf of client

$postfields["vis_owner_list"] = "1,2,4,5"
// comma separated owner/staff list

$postfields["vis_internal_ticket"] = 1
// 1-internal ticket otherwise 0(optional)

Below is API URL example for Open New Ticket

http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=open_new_ticket
&vis_domain=1
&vis_department=1
&vis_status=1
&vis_priority=1
&vis_subject=test
&vis_type=1
&vis_email=jack.sparrow012014@gmail.com
&vis_ticket_post=test
&vis_from=test@iamdemo.com
&vis_send_message=1
&vis_private=1
&vis_sendmail=0
&vis_as_client=1
&vis_owner_list=1,4


Internal ticket:

http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=open_new_ticket
&vis_domain=1
&vis_department=1
&vis_status=1
&vis_priority=1
&vis_subject=interlticket
&vis_type=1
&vis_ticket_post=test
&vis_from=Support
&vis_owner_list=1,87
&vis_internal_ticket=1



Or use "access token" to Open New Ticket

http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=open_new_ticket
&vis_domain=1
&vis_department=1
&vis_status=1
&vis_priority=1
&vis_subject=test
&vis_type=1
&vis_email=jack.sparrow012014@gmail.com
&vis_ticket_post=test
&vis_from=test@iamdemo.com
&vis_send_message=1
&vis_private=1
&vis_sendmail=0
&vis_as_client=1
&vis_owner_list=1,4


Internal ticket:

http://visiononlinedemo.com/support/api/index.php? 
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket 
&vis_operation=open_new_ticket 
&vis_domain=1 
&vis_department=1 
&vis_status=1 
&vis_priority=1 
&vis_subject=interlticket 
&vis_type=1 
&vis_ticket_post=test 
&vis_from=Support 
&vis_owner_list=1,87 
&vis_internal_ticket=1


Vote

Was this article helpful?
1 out of 3 found this helpful