GET /api/tickets/{TicketID}

Returns information about a specific ticket.

Authorization Roles/Permissions: Anyone can use this operation; login is not required. However, note that for any operations that do not require login, information about private resources is not returned unless the user is logged in and is authorized to view information about those resources. Without login, only public information is returned.

This topic includes the following sections:

HTTP Method

GET

Back to top

URL

https://{hostname}/api/tickets/{TicketID}

Back to top

Sample Request

The example below shows a request for information about the specified ticket.

Request URL

https://{hostname}/api/tickets/132f7a34-b71f-448f-9a49-6e8777de2b4c.acmepaymentscorp

Sample request headers

Accept: application/json

Sample request body

Not applicable.

Back to top

Request Headers

For general information on request header values, refer to HTTP Request Headers.

Header Description
Accept

application/json, application/xml

application/vnd.soa.v71+json, application/vnd.soa.v71+xml

application/vnd.soa.v72+json, application/vnd.soa.v72+xml

application/vnd.soa.v80+json, application/vnd.soa.v80+xml

application/vnd.soa.v81+json, application/vnd.soa.v81+xml

Back to top

Request Parameters

Parameter Parm Type Data Type Required Description
TicketID Path string Required The unique ID for a specific ticket.

Back to top

Response

If successful, this operation returns HTTP status code 200, with information about the specified ticket.

Back to top

Sample Response

The sample response below shows successful completion of this operation.

Sample response headers: application/json

Status Code: 200 OK
Content-Type: application/json
Date: Thu, 11 May 2017 15:37:09 GMT

Sample response body: application/json

{
  "TicketID" : "132f7a34-b71f-448f-9a49-6e8777de2b4c.acmepaymentscorp",
  "APIID" : "177f24e1-513f-4239-b20b-3d06d85bd15b.acmepaymentscorp",
  "Title" : "Bug when using multiple payment types",
  "Description" : "When I try to use more than one payment type the transaction hangs up. It's happened to me **twice**.\n![thumbsdown.jpg](thumbsdown.jpg \"thumbsdown.jpg\")\n",
  "Environment" : "Production",
  "State" : "OPEN",
  "UserID" : "3a5aca42-498a-4341-a204-0694684fc05b.acmepaymentscorp",
  "UserName" : "adminacmepaymentscorp",
  "Created" : "2017-05-11T15:18:22Z",
  "Label" : [ "com.soa.ticket.label.priority.high" ],
  "Tag" : [ ],
  "Comments" : 0,
  "Marks" : 0,
  "Visibility" : "Public",
  "PubDate" : "2017-05-11T15:18:22Z",
  "Image" : {
    "Url" : "http://automation-acmepaymentscorp/api/users/avatar/_VSHJa4F1wLk54xM7MQkJIaA",
    "Link" : "../atmosphere#/user/3a5aca42-498a-4341-a204-0694684fc05b.acmepaymentscorp/details"
  },
  "Published" : true,
  "DescriptionMediaType" : "text/markdown",
  "BoardItemArtifacts" : {
    "BoardItemArtifact" : [ {
      "ContextID" : "132f7a34-b71f-448f-9a49-6e8777de2b4c.acmepaymentscorp",
      "FileName" : "thumbsdown.jpg",
      "BaseUri" : "http://automation-acmepaymentscorp",
      "UriPath" : "/api/boards/items/132f7a34-b71f-448f-9a49-6e8777de2b4c.acmepaymentscorp/artifacts/thumbsdown.jpg"
    } ]
  }
}

Sample response headers: application/vnd.soa.v81+xml

Status Code: 200 OK
Content-Type: application/vnd.soa.v81+xml
Date: Thu, 11 May 2017 15:38:55 GMT

Sample response body: application/vnd.soa.v81+xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns12:Ticket xmlns:ns2="http://soa.com/xsd/api/1.0" xmlns:ns3="http://soa.com/xsd/app/1.0" xmlns:ns4="http://soa.com/xsd/user/1.0" 
xmlns:ns5="http://soa.com/xsd/dnmodel/1.0" xmlns:ns6="http://soa.com/xsd/comment/1.0" xmlns:ns7="http://soa.com/xsd/board/1.0" 
xmlns:ns8="http://soa.com/xsd/resource/1.0" xmlns:ns9="http://soa.com/xsd/business/1.0" xmlns:ns10="http://soa.com/xsd/deploymentzone/1.0" 
xmlns:ns11="http://soa.com/xsd/asset/1.0" xmlns:ns12="http://soa.com/xsd/ticket/1.0" xmlns:ns13="http://a9.com/-/spec/opensearch/1.1/" 
xmlns:ns14="http://soa.com/xsd/review/1.0" xmlns:ns15="http://soa.com/xsd/alert/1.0" xmlns:ns16="http://soa.com/xsd/contract/1.0" 
xmlns:ns17="http://soa.com/xsd/discussion/1.0">
  <ns12:TicketID>132f7a34-b71f-448f-9a49-6e8777de2b4c.acmepaymentscorp</ns12:TicketID>
  <ns2:APIID>177f24e1-513f-4239-b20b-3d06d85bd15b.acmepaymentscorp</ns2:APIID>
  <ns12:Title>Bug when using multiple payment types</ns12:Title>
  <ns12:Description>When I try to use more than one payment type the transaction hangs up. It's happened to me **twice**.
![thumbsdown.jpg](thumbsdown.jpg "thumbsdown.jpg")
</ns12:Description>
  <ns12:Environment>Production</ns12:Environment>
  <ns12:State>OPEN</ns12:State>
  <ns4:UserID>3a5aca42-498a-4341-a204-0694684fc05b.acmepaymentscorp</ns4:UserID>
  <ns4:UserName>adminacmepaymentscorp</ns4:UserName>
  <ns12:Created>2017-05-11T15:18:22Z</ns12:Created>
  <ns12:Label>com.soa.ticket.label.priority.high</ns12:Label>
  <ns12:Comments>0</ns12:Comments>
  <ns12:Marks>0</ns12:Marks>
  <ns12:Visibility>Public</ns12:Visibility>
  <ns12:PubDate>2017-05-11T15:18:22Z</ns12:PubDate>
  <ns5:Image>
    <ns5:Url>http://automation-acmepaymentscorp/api/users/avatar/_VSHJa4F1wLk54xM7MQkJIaA</ns5:Url>
    <ns5:Link>../atmosphere#/user/3a5aca42-498a-4341-a204-0694684fc05b.acmepaymentscorp/details</ns5:Link>
  </ns5:Image>
  <ns12:Published>true</ns12:Published>
  <ns7:DescriptionMediaType>text/markdown</ns7:DescriptionMediaType>
  <ns7:BoardItemArtifacts>
    <ns7:BoardItemArtifact>
      <ns7:ContextID>132f7a34-b71f-448f-9a49-6e8777de2b4c.acmepaymentscorp</ns7:ContextID>
      <ns7:FileName>thumbsdown.jpg</ns7:FileName>
      <ns7:BaseUri>http://automation-acmepaymentscorp</ns7:BaseUri>
      <ns7:UriPath>/api/boards/items/132f7a34-b71f-448f-9a49-6e8777de2b4c.acmepaymentscorp/artifacts/thumbsdown.jpg</ns7:UriPath>
    </ns7:BoardItemArtifact>
  </ns7:BoardItemArtifacts>
</ns12:Ticket>

Back to top

Response Headers

For general information on response header values, refer to HTTP Response Headers.

Header Description
Content-Type

application/json, application/xml

application/vnd.soa.v71+json, application/vnd.soa.v71+xml

application/vnd.soa.v72+json, application/vnd.soa.v72+xml

application/vnd.soa.v80+json, application/vnd.soa.v80+xml

application/vnd.soa.v81+json, application/vnd.soa.v81+xml

Back to top

Response Body

Name Type Description
Ticket Ticket Includes information about a ticket.

Back to top

Error Codes/Messages

If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.

Item Value
500 An error occurred processing the call.

More information about Akana API Platform API error messages.

Back to top

Related Topics