Skip to content

Reply Ticket

Sayar Samanta edited this page Aug 28, 2018 · 4 revisions

Description : To reply for a particular ticket

  1. URL : api/v1/helpdesk/reply

Parameters :

Name Data Type Required/Optional Description
api_key String Optional An alphanumeric code that can be used to authenticate your API calls
ip String optional IP address of the Customer/location where API call is being made from
ticket_ID Integer Required Id of the ticket to reply
reply_content String Required Body of your reply
token String Required token generated for a user

HTTP Method : POST

Response Format : JSON

Response : Returns the success response

URL Request Example : http://www.stablehelpdeskc.faveodemo.com/api/v1/helpdesk/reply?api_key=9p41T2XFZ34YRZJUNQAdmM7iV0Rr1CjN&ip=null&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9wcm9kdWN0ZGVtb3VybC5jb21cL2NvbW11bml0eVwvcHVibGljXC9hcGlcL3YxXC9hdXRoZW50aWNhdGUiLCJpYXQiOjE1MzUwMDk3NTYsImV4cCI6MTUzNTAwOTk5NiwibmJmIjoxNTM1MDA5NzU2LCJqdGkiOiJNcmRNUWcwRFhvUEt2bnZrIiwic3ViIjoxLCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIn0.Z7XRIsdyuXjwBBAv9F5CNjD5xkQjehQ3awMBxt-3C70&reply_content=Test+Reply+added+from+android

JSON Response Example :

Success Response :

{
    "result": {
        "id": 270,
        "ticket_id": 115,
        "user_id": 1,
        "poster": "support",
        "source": null,
        "reply_rating": 0,
        "rating_count": 0,
        "is_internal": 0,
        "title": "",
        "body": "Test Reply added from android",
        "format": "",
        "ip_address": "",
        "created_at": "2018-08-23 07:37:17",
        "updated_at": "2018-08-23 07:37:17",
        "first_name": "Demo"
    }
}

Some Common Error :

Error Response : If the token is expired

{
“error":"Token has expired"
}

If the token is not provided

{
  "error": "token_not_provided"
}

If the ticket id field is not provided

{
    "error": {
        "ticket_id": [
            "The ticket id field is required."
        ]
    }
}

Response Description :

Parameter Description
id id of the reply
ticket_id id of the ticket
user_id id of the user
poster here poster indicates the department
source source of the reply
reply_rating it indicates whether this reply related to rating
rating_count count of the rating
is_internal indicates it is a internal note or not
title title of the ticket
body body of the ticket
format format of the reply
ip_address ip address of the system from where reply is posted
created_at reply content created date
updated_at reply content updated date
first_name first name of the replier

Installation and Upgrade Guide

Administrator's Guide

Agent's Guide

Email Integration

Release & Upgrade Notes

Known Issues

Contribute & Feedback

Knowledge Base

Third Party Integration

Plugins

API

Clone this wiki locally