流转工单
POST
/open-api/workorder/switch
错误码 | 说明 |
---|---|
22301 | order_no非法,对应工单不存在 |
22302 | handler_id非法,对应员工不存在 |
22303 | cc_list内的id:“LiMei”非法,对应员工不存在 |
22304 | staff_id非法,对应员工不存在 |
22305 | staff_id对应员工无处理本工单权限 |
22307 | 工单已关闭,不可操作 |
调用此接口需购买服务席位。 |
请求参数
Query 参数
access_token
string
调用接口凭证
默认值:
{{access_token}}
Body 参数application/json
order_no
string
工单号
staff_id
string
本次流转操作执行人
handler_id
string
下一个处理人
cc_list
array[string]
抄送人id列表
content
object
流转填写的备注
text
string
必需
pic
array[string]
图片链接列表
is_show
integer
可选
attached_json
array [object {2}]
附件列表
type
string
必需
url
string
附件url
示例
{
"order_no": "1446377590381088768",
"staff_id": "LiYang",
"handler_id": "LiHua",
"cc_list": [
"LiMei",
"ShaoKao"
],
"content": {
"text": "文字",
"pic": [
"url1",
"url2"
]
},
"attached_files": [
{
"type": "image",
"url": "www.xxx/aaa/bbb.png"
},
{
"type": "video",
"url": "www.xxx/aaa/bbb.mp4"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.weibanzhushou.com/open-api/workorder/switch?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"order_no": "1446377590381088768",
"staff_id": "LiYang",
"handler_id": "LiHua",
"cc_list": ["LiMei","ShaoKao"],
"content": {
"text": "文字",
"pic": ["url1","url2"]
},
"attached_files":[
{
"type": "image",
"url": "www.xxx/aaa/bbb.png"
},
{
"type": "video",
"url": "www.xxx/aaa/bbb.mp4"
}
]
}'
返回响应
🟢200成功
application/json
Body
current_step
integer
必需
示例
{
"current_step": 19,
"errcode": 0,
"errmsg": "ok"
}
🟢200正常返回
修改于 2024-03-05 07:15:16