Visitor Close

Description:

  • This API allows the visitor to end the chat. 

 

URL

Copiedhttps://salesiq.zoho.com/visitor/v2/{screen name}/conversations/{conversation_id}/close

Example

Copiedhttps://salesiq.zoho.com/visitor/v2/zylker-inc/conversations/c18783b1e17018897546b7e483132072/close

Sample Response

Copied{
  "url": "/visitor/v2/zylker-inc/conversations/c18783b1e17018897546b7e483132072/close",
  "object": "conversations",
  "data": {
    "end_time": "1580987546967",
    "id": "df13de973a797cb4adbbee38d32c525c913ae727537640df",
    "wms_chat_id": "LD_1254880203420591883_155096539",
    "unread_chats": false,
    "attender": {
      "image_key": "0_32289000000509001",
      "email": "patricia@zylker.com",
      "name": "patricia",
      "is_bot": false,
      "id": "32289000000509001"
    },
    "question": "I need some assistance in buying a dining set",
    "department": {
      "name": "Support",
      "id": "32289000000002013"
    },
    "start_time": "1580987464089",
    "visitor": {
      "name": "Tricia",
      "country_code": "US",
      "ip": "172.17.18.231"
    },
    "chat_id": "0009c4479eb5c8fcacbca25b320d5bb414275964cbc19369b3ddf7e81a12a107299efa3a6cd5f15c",
    "chat_status": {
      "status_code": 2,
      "state": 4
    },
    "reference_id": "951",
    "attended_time": "1580987467636"
  }
}