[POST] Create a New Ticket

Description: Create a new ticket.

REST Method: POST

URL: /tickets.json

Request

Name Type Required Default Options Notes
developer_api_key String Yes Developer api key
from String Yes Your customer's email address
to String Yes Your company's email address
subject String No Subject of the new ticket
message String Yes (you can choose either message or message_html) Message of the new ticket
message_html String Yes (you can choose either message or message_html) Message of the new ticket in HTML format
file_ids Array No Array of ids file which want to be attached

Using curl

curl -X POST -d 'file_ids[]=4233-b39khp.jpg' 'https://api.bornevia.com/tickets.json?developer_api_key=[YOUR_DEVELOPER_API_KEY]&from=tjiu.suryanto@bornevia.com&to=contact@bornevia.com&subject=helloworld&message=helloworld'

Response

Response Name Type Notes
Header Status Int 200 - Success
400 - From is null or empty string
404 - Company account email not found
400 - Message and message_html is null or empty string
{
  "id": 279341,
  "subject": "helloworld",
  "status": "Open",
  "priority": "Medium",
  "deleted": false,
  "created_at": "2015-11-12T15:38:29.000Z",
  "updated_at": "2015-11-12T15:38:30.000Z",
}
Last updated on 21st Jun 2016