GetTicket

Updated at:

Queries the details of a specified ticket.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

ccc-test

TicketId

string

Yes

The ticket ID.

3d26b90a-c5d2-4b09-8219-********

Response elements

Element

Type

Description

Example

object

DescribeTicketResponse

Data

object

The data.

InstanceId

string

The instance ID.

ccc-test

TicketId

string

The ticket ID.

b3a6a131-359e-46bd-9bc5-1f5cb0ea093f

TemplateId

string

The ticket template ID.

ccc-test_43c2671b-8939-4223-86d0-6bd187905cc8_*****0666238

TemplateVersion

string

The ticket template version.

0

Title

string

The ticket title.

After-sales ticket

Context

string

The ticket field information.

{"productName":"Product A"}

Assignee

string

The assignee ID.

agent1@ccc-test

AssigneeName

string

The assignee name.

Agent A

Creator

string

The creator ID.

creator@ccc-test

CreatorName

string

The creator name.

Agent B

CategoryId

string

The ticket category ID.

8939-4223-86d0-6bd187905cc8

CategoryName

string

The ticket category name.

After-sales category

JobId

string

The call ID.

job-399383842187575296

StartTime

integer

The start time of ticket processing. The value is a UNIX timestamp in milliseconds.

1620259200000

EndTime

integer

The completion time of ticket processing. The value is a UNIX timestamp in milliseconds.

1687846259999

CreatedTime

integer

The time when the ticket was created. The value is a UNIX timestamp in milliseconds.

1620259200000

UpdatedTime

integer

The time of the last update. The value is a UNIX timestamp in milliseconds.

1693793208075

CurrentTaskId

string

The current node ID.

912f0b78-6639-4a93-ae18-0d832885c27e

CurrentTaskName

string

The current node name.

Node 1

CurrentTaskStartTime

integer

The start time of the current node. The value is a UNIX timestamp in milliseconds.

1693793208075

Source

string

The ticket source. Valid values:

  • AUDIO: Voice service.

  • CHAT: Online service.

  • Console: Created from the ticket console.

Audio

CustomerId

string

The customer ID in the customer profile of Cloud Call Center.

4223-86d0-6bd187905-891798749

State

string

The ticket status. Valid values:

  • Processing: Processing.

  • Withdrawal: Withdrawn.

  • Rejected: Rejected.

  • Closed: Closed.

Processing

CloseCode

string

The reason for closing the ticket. Valid values:

  • Completed: Completed.

  • Terminated: Canceled.

Completed

Comment

string

The handling comments.

None

RequestId

string

The request ID.

BF268B34-09C2-43FD-BAC4-5D31EA633111

HttpStatusCode

integer

The HTTP status code.

200

Code

string

The response code.

OK

Message

string

The response message.

None

Params

array

The list of error parameters.

string

The error parameter.

None

Examples

Success response

JSON format

{
  "Data": {
    "InstanceId": "ccc-test",
    "TicketId": "b3a6a131-359e-46bd-9bc5-1f5cb0ea093f",
    "TemplateId": "ccc-test_43c2671b-8939-4223-86d0-6bd187905cc8_*****0666238",
    "TemplateVersion": "0",
    "Title": "售后工单",
    "Context": "{\"productName\":\"商品A\"}",
    "Assignee": "agent1@ccc-test",
    "AssigneeName": "坐席A",
    "Creator": "creator@ccc-test\n",
    "CreatorName": "坐席B",
    "CategoryId": "8939-4223-86d0-6bd187905cc8",
    "CategoryName": "售后类目",
    "JobId": "job-399383842187575296",
    "StartTime": 1620259200000,
    "EndTime": 1687846259999,
    "CreatedTime": 1620259200000,
    "UpdatedTime": 1693793208075,
    "CurrentTaskId": "912f0b78-6639-4a93-ae18-0d832885c27e",
    "CurrentTaskName": "节点1",
    "CurrentTaskStartTime": 1693793208075,
    "Source": "Audio",
    "CustomerId": "4223-86d0-6bd187905-891798749",
    "State": "Processing",
    "CloseCode": "Completed",
    "Comment": "无"
  },
  "RequestId": "BF268B34-09C2-43FD-BAC4-5D31EA633111",
  "HttpStatusCode": 200,
  "Code": "OK",
  "Message": "无",
  "Params": [
    "无"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

404 NotExists.InstanceId The specified instance %s does not exist. The specified call center instance does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.