- OpenAPI基本介绍
- 错误码参考表
- 访问频率和并发限制
- 消息订阅
- 获取访问凭据
- 员工管理
- 自定义订单管理
- 客户管理
- 客户积分管理
- 客户标签管理
- 客户画像管理
- 标签库管理
- 群聊管理
- 工单管理
- 销售过程管理
- 聊天记录管理
- 拉新排行榜
- 群裂变
- 群打卡
- 企微任务宝
- 拉新排行榜
- 自定义表单
- 客户转化
- 员工个人群发记录管理
- 渠道码管理
- 素材库管理
- 互动雷达管理
- 自定义侧边栏身份校验
- 有赞订单管理
- 小鹅通订单管理
- 项目管理
- 门店信息
- 人群包
- 客户群发
- 企微朋友圈
- 个人SOP
- 部门管理
- 群标签管理
- 话术库
- 企微数据专区
获取工单详情
GET
/open-api/workorder/detail
工单openapi
错误码 | 说明 |
---|---|
22301 | order_no非法,对应工单不存在 |
调用此接口需购买服务席位。 |
请求参数
Query 参数
order_no
string
工单号
示例值:
123456789456
access_token
string
调用接口凭证
默认值:
{{access_token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.weibanzhushou.com/open-api/workorder/detail?order_no=123456789456&access_token='
返回响应
🟢200成功
application/json
Body
work_order
object
工单详情
button_operate
object
可操作权限
cc_list
array[string]
抄送员工id列表
content
object
流转填写的备注
corp_id
string
企业id
created_at
integer
创建时间
creator_avatar
string
创建者头像
creator_id
string
创建者id
creator_name
string
创建者姓名
deliver
boolean
是否被投递
flow_handler
integer
是否在流内
handler_avatar
string
处理人头像
handler_id
string
处理人id
handler_name
string
处理人姓名
last_handler_avatar
string
上一个处理人头像
last_handler_id
string
上一个人处理人id
last_handler_name
string
上一个处理人姓名
msg_list
array[string]
聊天记录列表
order_no
string
工单号
processing_flows
array [object {21}]
工单流程
relation_avatar
string
关系实体头像
relation_corp_name
string
关系公司名
relation_id
string
关系实体id
relation_name
string
关系实体名
relation_type
integer
关系实体类型
reopen
boolean
是否重新打开过
stage_name
string
阶段名
status
integer
工单状态
template_id
integer
模板id
template_step
integer
模板阶段
template_title
string
模板标题
title
string
标题
total_time
integer
工单持续时间
updated_at
integer
更新时间
work_order_component_record_list
array [object {12}]
必需
示例
{
"errcode": 0,
"errmsg": "ok",
"work_order": {
"button_operate": {
"chat_record": true,
"close": true,
"comment": true,
"deliver": true,
"evaluate": false,
"preview_flow": true,
"reopen": false,
"share": true,
"update": false
},
"cc_list": [],
"content": {
"pic": [],
"text": "2021年12月17日19:42:45"
},
"corp_id": "1653682321878942721",
"created_at": 1639741382,
"creator_avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgSSWiaVLaJnssacHwZYrZyrx6ocrKgLEf8jujEW7QUaFwm8gLKUP8wJAxKPyUIp4RaOI/0",
"creator_id": "LiuYang",
"creator_name": "超长昵称你怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗",
"deleted": 0,
"deliver": false,
"flow_handler": 1,
"handler_avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgSSWiaVLaJnssacHwZYrZyrx6ocrKgLEf8jujEW7QUaFwm8gLKUP8wJAxKPyUIp4RaOI/0",
"handler_id": "LiuYang",
"handler_name": "超长昵称你怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗",
"id": 26369,
"last_handler_avatar": "",
"last_handler_id": "",
"last_handler_name": "",
"msg_list": [],
"order_no": "1471808049579560960",
"processing_flows": [
{
"attached_json": [],
"cc_list": null,
"content": {
"pic": null,
"text": "待员工 超长昵称你怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗 处理"
},
"created_at": 1639741382,
"creator_avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgSSWiaVLaJnssacHwZYrZyrx6ocrKgLEf8jujEW7QUaFwm8gLKUP8wJAxKPyUIp4RaOI/0",
"creator_id": "LiuYang",
"creator_name": "超长昵称你怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗",
"del_reply_status": false,
"handler_avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgSSWiaVLaJnssacHwZYrZyrx6ocrKgLEf8jujEW7QUaFwm8gLKUP8wJAxKPyUIp4RaOI/0",
"handler_id": "LiuYang",
"handler_name": "超长昵称你怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗",
"id": 114049,
"is_show": 1,
"point": 0,
"reply_time": 0,
"to_avatar": "",
"to_id": "LiuYang",
"to_name": "",
"to_type": 0,
"type": 2,
"type_name": "待处理"
},
{
"attached_json": [],
"cc_list": null,
"content": {
"pic": null,
"text": "员工超长昵称你怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗已为客户大大怪创建了工单"
},
"created_at": 1639741382,
"creator_avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgSSWiaVLaJnssacHwZYrZyrx6ocrKgLEf8jujEW7QUaFwm8gLKUP8wJAxKPyUIp4RaOI/0",
"creator_id": "LiuYang",
"creator_name": "超长昵称你怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗",
"del_reply_status": false,
"handler_avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgSSWiaVLaJnssacHwZYrZyrx6ocrKgLEf8jujEW7QUaFwm8gLKUP8wJAxKPyUIp4RaOI/0",
"handler_id": "LiuYang",
"handler_name": "超长昵称你怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗怕了吗",
"id": 113921,
"is_show": 1,
"point": 0,
"reply_time": 0,
"to_avatar": "",
"to_id": "",
"to_name": "",
"to_type": 0,
"type": 1,
"type_name": "新建工单"
}
],
"relation_avatar": "http://wx.qlogo.cn/mmhead/Q3auHgzwzM6zorW37WoZ1KkmibpmJQo53Cicwg69nHv8NqJJ1JLrcFsw/0",
"relation_corp_name": "",
"relation_id": "wm8xjUCAAAjzIxv1bnZErBXWZgBV2RBg",
"relation_name": "大大怪",
"relation_type": 1,
"reopen": false,
"stage_name": "",
"status": 10,
"template_id": 62081,
"template_step": 1,
"template_title": "鬼鬼",
"title": "2021年12月17日19:42:43",
"total_time": 0,
"updated_at": 1639741382,
"work_order_component_record_list": [
{
"component_id": 15745,
"component_type": "file",
"corp_id": 1653682321878942700,
"created_at": "2021-12-17T19:43:02+08:00",
"id": 125825,
"order_no": 1471808049579561000,
"sort": 6,
"template_id": 62081,
"title": "附件",
"updated_at": "2021-12-17T19:43:02+08:00",
"value": "",
"values": []
},
{
"component_id": 15873,
"component_type": "selectMultiple",
"corp_id": 1653682321878942700,
"created_at": "2021-12-17T19:43:02+08:00",
"id": 125953,
"order_no": 1471808049579561000,
"sort": 7,
"template_id": 62081,
"title": "多拉下选框",
"updated_at": "2021-12-17T19:43:02+08:00",
"value": "",
"values": null
},
{
"component_id": 16001,
"component_type": "checked",
"corp_id": 1653682321878942700,
"created_at": "2021-12-17T19:43:02+08:00",
"id": 126081,
"order_no": 1471808049579561000,
"sort": 8,
"template_id": 62081,
"title": "多选项",
"updated_at": "2021-12-17T19:43:02+08:00",
"value": "",
"values": null
},
{
"component_id": 16129,
"component_type": "input",
"corp_id": 1653682321878942700,
"created_at": "2021-12-17T19:43:02+08:00",
"id": 126209,
"order_no": 1471808049579561000,
"sort": 9,
"template_id": 62081,
"title": "电话",
"updated_at": "2021-12-17T19:43:02+08:00",
"value": "45645645632",
"values": ""
},
{
"component_id": 16257,
"component_type": "select",
"corp_id": 1653682321878942700,
"created_at": "2021-12-17T19:43:02+08:00",
"id": 126337,
"order_no": 1471808049579561000,
"sort": 10,
"template_id": 62081,
"title": "城市",
"updated_at": "2021-12-17T19:43:02+08:00",
"value": "",
"values": [
"上海"
]
}
]
}
}
🟢200正常返回
修改于 2024-03-05 07:14:41