工单系统旧版
查询工单是否可评价
按 ticketId 查询当前工单满意度评价状态。ticketId 缺失、为 0、企业管理员不存在、工单已删除或工单不存在时返回工单不存在错误;成功时 data 为评价状态对象。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| appKey | string | 是 | 应用 AppKey | |
| time | int64 | 是 | 请求时间戳(秒) | |
| checksum | string | 是 | 请求签名校验和 | |
| checksumAlgorithm | int32 | 否 | 签名算法:0 - 默认(SHA1),1 - SHA256 |
请求体
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| ticketId | int64 | 是 | 工单 ID | 123456 |
返回参数
| 名称 | 类型 | 描述 | 示例值 |
|---|---|---|---|
| code | int32 | 状态码,200 表示成功 | 200 |
| data | object | 工单满意度评价状态数据 | {"canEvaluation":true,"evaluationStatus":0} |
| └canEvaluation | boolean | 当前工单是否可以评价 | true |
| └evaluationStatus | int32 | 评价状态编码 | 0 |
错误码
| 状态码 | 描述 |
|---|---|
| 14001 | AppKey 不存在 |
| 14002 | checksum 校验失败 |
| 14003 | time 缺失,或请求时间戳与服务器时间误差超过 10 分钟 |
| 14004 | 请求体不是合法 JSON |
| 14106 | ticketId 缺失或为 0;企业管理员不存在;工单已删除;或当前企业下工单不存在 |
| 14500 | 服务内部异常;请求字段类型不符合要求或服务处理失败 |
postEndpoint
/openapi/worksheet/satisfaction/getEvaluationStatuscurl -X POST "https://qiyukf.com/openapi/worksheet/satisfaction/getEvaluationStatus?appKey=9f1d7c2b8a6e4d3c&time=1739347200&checksum=a1b2c3d4e5f607182930abcdefabcdef&checksumAlgorithm=0" \ -H "Content-Type: application/json" \ -d '{ "ticketId": 123456 }'{
"code": 200,
"data": {
"canEvaluation": true,
"evaluationStatus": 0
}
}{
"code": 14001,
"message": "AppKey 不存在"
}{
"code": 14002,
"message": "checksum 校验失败"
}{
"code": 14003,
"message": "time 缺失,或请求时间戳与服务器时间误差超过 10 分钟"
}{
"code": 14004,
"message": "请求体不是合法 JSON"
}{
"code": 14106,
"message": "ticketId 缺失或为 0;企业管理员不存在;工单已删除;或当前企业下工单不存在"
}{
"code": 14500,
"message": "服务内部异常;请求字段类型不符合要求或服务处理失败"
}这篇文档有帮助吗?