QuestionListNote

更新时间:
复制 MD 格式

Call the QuestionListNote operation to retrieve the communication history of a ticket.

Request parameters

Name Type Required Example Description
questionId String Yes 7K***ZF Ticket ID

Response parameters

Parameter name Type Example Description

data

List

-

The communication history. For more information, see data.

code

String

200

The error code.

message

String

successful

The error message.

Table 1. data
Name Type Example Description

content

String

Hello, we have received your ticket and are looking into it. Please wait.

The content of the communication.

noteType

String

chat
The type of communication. Valid values:
  • chat: a regular reply
  • sec_chat: a reply that contains confidential information

fromOfficial

String

official
The user type. Valid values:
  • official indicates customer service.
  • user: the user

gmtCreated

Long

1566869725000

The time when the communication was created.

attachIds

List<String>

-
A list of attachment IDs. The attachment IDs are generated after you upload the attachments.
Note You must pass these IDs when you call the getAttachTempURL operation to retrieve the attachments. For more information, see getAttachTempURL.

Request example

http(s)://workorder.aliyuncs.com/?Action=QuestionListNote
&QuestionId=7K***ZF

Response example

{
  "Count": 5,
  "ListResult": {
    "NoteInfo": [
      {
        "attachIds": {
          "attachId": []
        },
        "FromOfficial": false,
        "Content": " Ticket test. Customer service staff can ignore this.",
        "NoteType": "chat",
        "GmtCreated": 1565924667000
      },
      {
        "attachIds": {
          "attachId": []
        },
        "FromOfficial": false,
        "Content": "Test ticket. No action is required.",
        "NoteType": "chat",
        "GmtCreated": 1565926152000
      },
      {
        "attachIds": {
          "attachId": []
        },
        "FromOfficial": true,
        "Content": "Hello, we have received your ticket and are looking into it. Please wait.",
        "NoteType": "chat",
        "GmtCreated": 1565927849000
      },
      {
        "attachIds": {
          "attachId": []
        },
        "FromOfficial": true,
        "Content": "11",
        "NoteType": "chat",
        "GmtCreated": 1565927856000
      },
      {
        "attachIds": {
          "attachId": []
        },
        "FromOfficial": true,
        "Content": "Hello. We have not heard from you in a while, so we have changed your ticket status to Pending Confirmation. You can confirm the ticket is resolved or reopen it. If you do not reply within 7 days, the ticket will automatically close. If you provided sensitive information, such as a password, in the ticket, please change it right away. Thank you!",
        "NoteType": "chat",
        "GmtCreated": 1566869725000
      }
    ]
  },
  "Message": "successful",
  "Success": true,
  "Code": "200"
}

Error codes

HttpCodeError codeError messageDescription
200SUCCESSsuccessfulThe request was processed successfully.
-121ILLEGAL_AUTHillegal authYou do not have the required permissions.
-101ILLEGAL_PARAMillegal parameter, param is xxx The parameter xxx failed the validation.
-104ILLEGAL_PARAM_EMPTYxxx must not be null or emptyThe parameter cannot be empty.
-153SYSTEM_BUSYthe system is busyA system exception occurred.