====JSON格式====
^名称 ^类型 ^只读 ^注释 ^
|ticketReplyId | int |是 |回复id,系统自动分配 |
|replyUserId| int |是 |回复人的id,系统自动分配 |
|ticketId| int |是 |回复所对应的工单id,系统自动分配 |
|replyType| tinyint|否 |回复类型:1-公开回复,2-内部注释 |
|replyDT | datetime|是 |回复时间,格式:2017-8-17 10:20:13 |
|replyStatus| tinyint|否 |工单状态:1–新建,2–已开启,3–待回应,4–已解决,5–自动关闭,6–手动关闭 |
|replyMsg| varchar|否 |回复的文本内容 |
|attachments| array|否 |回复所带的附件,请参照[[工单:工单附件|工单附件]] |
====JSON示例====
{
"ticketReplyId": 3245,
"replyUserId": 234,
"ticketId": 243535,
"replyType": "1",
"replyDT": 2017-8-17 10:20:13,
"replyStatus": "2",
"replyMsg": "这里是回复的文本内容",
"attachments": [
{
"attachId": 213,
"fileName": "phone.png",
"filePath": "https://bangwo8.oss-cn-shenzhen.aliyuncs.com/18/Z28tfzPdB.png",
"token": "w23e687e45634c2341af75c6fd2654e"
}
]
}
====工单回复列表====
GET /api/v1/tickets/{ticket_id}/ticketReplys.json
调用者权限
所有客服
参数说明
^名称 ^类型 ^必须的 ^注释 ^
|sort_order | string | 否 | 按回复时间排序,排序规则:asc-升序,desc-降序。默认升序。|
调用示例
curl https://www.bangwo8.com/api/v1/tickets/{ticket_id}/ticketReplys.json \
-H "Content-Type: application/json" -v -u {account}:{password}
返回值示例
Status: 200 OK
{
"ticketReplys": [
{
"ticketReplyId": 3245,
"replyUserId": 234,
"ticketId": 23545,
"replyType": "1",
"replyDT": 2017-8-17 10:20:13,
"replyStatus": "2",
"replyMsg": "这里是回复的文本内容",
"attachments": [
{
"attachId": 213,
"fileName": "phone.png",
"filePath": "https://bangwo8.oss-cn-shenzhen.aliyuncs.com/18/Z28tfzPdB.png",
"token": "w23e687e45634c2341af75c6fd2654e"
},
{
"attachId": 213,
"fileName": "phone.png",
"filePath": "https://bangwo8.oss-cn-shenzhen.aliyuncs.com/18/Z28tfzPdB.png",
"token": "w23e687e45634c2341af75c6fd2654e"
}
]
},
{
"ticketReplyId": 4355,
"replyUserId": 234,
"ticketId": 46545,
"replyType": "2",
"replyDT": 2017-9-17 10:20:13,
"replyStatus": "2",
"replyMsg": "这里是回复的文本内容",
"attachments": [
]
}
}