
# 查询工单详情
#### 功能介绍
查询已提交的某个华为云工单详情。
#### URI
GET /v1.0/servicerequest/case/detail
#### 请求消息
**请求参数**
| 参数     | 是否必选 | 参数类型   | 取值范围 | 描述                                                                                                                             |
|:---|:---|:---|:---|:---|
| caseId | 是    | String | 32   | 工单id。 具体ID请参见[查询工单详情](https://support.huaweicloud.com/api-ticket/ticket_api_10003.html)查询出的工单ID。 |
   
**请求示例**
```
caseId=TT201801020526
```
#### 响应消息
**响应参数**
表1响应参数 
| 参数         | 参数类型       | 描述                                                                              |
|:---|:---|:---|
| caseDetail | CaseDetail | 工单详情。 具体请参见[表2] |
   
 表2caseDetail字段说明 
| 参数               | 参数类型                 | 描述                                                                                                                                                                                           |
|:---|:---|:---|
| caseId           | String               | 工单Id。                                                                                                                                                                                        |
| businessTypeName | String               | 问题类型名称。                                                                                                                                                                                      |
| incidentTypeName | String               | 类型名称                                                                                                                                                                                         |
| customerId       | String               | 帐号ID                                                                                                                                                                                         |
| subCustomerId    | String               | IAM用户ID                                                                                                                                                                                      |
| subCustomerName  | String               | IAM用户名                                                                                                                                                                                       |
| dcName           | String               | 云服务区名称                                                                                                                                                                                       |
| simpleDescribe   | String               | 工单问题简要描述                                                                                                                                                                                     |
| status           | Integer              | 工单状态 0：待受理 1：处理中 2：待确认结果 3：已完成 4：已撤销 |
| sourceName       | String               | 工单来源名称。                                                                                                                                                                                      |
| createTime       | TimeStamp            | 工单创建时间。 时间格式例如：2019-05-22T03:30:52Z                                                                                                                       |
| messageList      | List\<Message\>      | 工单关联的留言记录list 具体请参见[表3]                                                                                                        |
| satisfaction     | List\<Satisfaction\> | 满意度评价 具体请参见[表5]                                                                                                               |
| judgement        | String               | 工单服务评价。                                                                                                                                                                                      |
| isAuthorized     | Integer              | 是否授权 0：未授权 1：已授权                                                                                                        |
   
 表3messageList字段数据结构说明 
| 参数                  | 参数类型                    | 描述                                                                                |
|:---|:---|:---|
| messageId           | String                  | 留言标识                                                                              |
| type                | Integer                 | 留言方式 0是客户留言 1客服回留言     |
| replier             | String                  | 留言者                                                                               |
| replierName         | String                  | 留言者名称                                                                             |
| content             | String                  | 留言内容                                                                              |
| accessoryDetailList | List\<AccessoryDetail\> | 留言附件列表 具体请参见[表4]。 |
| createTime          | TimeStamp               | 创建时间                                                                              |
   
 表4accessoryDetailList字段数据结构说明 
| 参数            | 参数类型   | 描述   |
|:---|:---|:---|
| accessoryId   | String | 附件Id |
| accessoryName | String | 附件名称 |
   
 表5satisfaction字段数据结构说明 
| 参数                | 参数类型    | 描述                                                                                     |
|:---|:---|:---|
| satisfactionId    | Integer | 满意度id 1：处理时效性满意度 3：处理结果满意度 |
| satisfactionValue | Integer | 满意度值（1到5）                                                                              |
   
**响应示例**
```
{
    "caseDetail": {
        "caseId": "TT201801020526",
        "businessTypeName": "活动优惠",
        "typeName": "咨询",
        "customerId": "xxx",
        "dcName": "中国华北区1",
        "simpleDescribe": "目前有什么活动优惠吗？",
        "status": 3,
        "sourceName": "用户中心",
        "createTime": 2019-05-22T03:30:52Z,
        "messageList": [
            {
                "messageId": "xxx",
                "type": 0,
                "replier": "xxx",
                "replierName": "xxx",
                "content": "问题描述：目前有什么活动优惠吗？",
                "createTime": 2019-05-22T03:30:52Z,
                "accessoryDetailList": []
            },
            {
                "messageId": "xxx",
                "type": 1,
                "replier": "xxx",
                "content": "感谢您的反馈，我们将于一个工作日内与您联系，请您保持电话畅通，谢谢！",
                "createTime": 2019-05-22T03:30:52Z,
                "accessoryDetailList": []
            }
        ],
        "satisfaction": [
            {
                "satisfactionId": 1,
                "satisfactionValue": 5
            },
            {
                "satisfactionId": 3,
                "satisfactionValue": 5
            }
        ],
        "isauthorized": 0,
        "judgement": "满意"
    }
}
```
#### 状态码
状态码请参见[状态码](https://support.huaweicloud.com/api-ticket/ticket_api_00013.html)。
#### 错误码
状态码请参见[历史错误码](https://support.huaweicloud.com/api-ticket/ticket_api_20001.html)。
