đź““
Survey2connect
  • Introduction
    • Authentication
    • Environments
  • Authorization
    • Generate Token
    • Refresh Token
  • Responses
    • Create Response
    • Response Availability
    • Export Responses In CSV
    • Export Responses In JSON
    • Export Responses In SPSS
  • Campaigns
    • Create Survey Campaign
    • Generate Survey links
  • Surveys
    • Get Surveys
  • Tickets
    • Get Ticket
    • Get Tickets
  • Templates
    • Get Template
    • Get Templates
    • Create Template
    • Update Template
    • Delete Template
Powered by GitBook
On this page

Was this helpful?

  1. Tickets

Get Ticket

Use this API to get a single ticket.

GET https://{{env}}.survey2connect.com/v2/api/tickets/{ticketId}

Path Parameters

Name
Type
Description

env*

String

Datacenter identifier for client

ticketId*

String

id of the ticket to be returned

Headers

Name
Type
Description

Authorization

String

Bearer {access_token}

{
  "data": [
    {
      "_id": "6166b537339e0a157b15f64b",
      "priority": "Medium",
      "assignee": {
        "_id": "606aff62b39f7f554849e91f",
        "name": "az2test ",
        "email": "az2test@mailinator.com"
      },
      "name": "T00010",
      "created_at": "2021-10-13 13:30:15",
      "action": "Action with Followup",
      "survey_title": "Ticket Fetch Test",
      "updated_at": "2021-10-13 13:32:55",
      "status": "Open",
      "resolution": "Issue resolved.\n",
      "root_cause": "Late delivery",
      "root_cause_msg": "Product was delivered late.",
      "tags": [
        {
          "key": "Rating",
          "value": "4"
        }
      ],
      "comments": [
        {
          "text": "Issue is resolved for now please review it",
          "posted": "2021-10-13 13:32:55"
        }
      ],
      "follow_up_details": [
        {
          "key": "What is your name?",
          "value": "tester 1"
        }
      ]
    }
  ],
  "status": "success",
  "error": null
}
{
  "error": {
    "name": "unauthorized",
    "message": "The authorization token was not provided"
  }
}
{
  "error": {
    "name": "internal server error",
    "message": "We couldn’t process your request"
  }
}
{
  "error": {
    "name": "bad request",
    "message": "Template id is incorrect"
  }
}
PreviousTicketsNextGet Tickets

Last updated 3 years ago

Was this helpful?