新增预约外呼
前置条件
- 已经申请了开发者账号。
场景描述
通过该接口新增预约外呼任务。
接口方法
该接口仅支持POST方法。
接口URL
https://ip:port/rest/isales/v1/openapi/campaigns/{vdnId}/appoint/create
其中,ip为CC-iSales服务器地址,port为CC-iSales服务器的HTTPS端口号。
| 序号 | 参数名 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1 | vdnId | int | True | 虚拟呼叫中心ID。 取值的类型为整数,取值范围为1~9999。 |
请求说明
| 序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1 | Content-Type | String | True | 固定填 application/json; charset=UTF-8。 |
| 2 | Authorization | String | True | 生成方式参见C2 监控/系统外呼/话单/知识库类接口鉴权方式。 |
| 序号 | 参数名 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1 | callType | int | True |
|
| 2 | calledNo | String | True | 预约呼叫的号码 |
| 3 | userAccount | String | False | 非op独立部署必填,需要设置的座席业务帐号。 |
| 4 | workNo | String | False | op独立部署必填,需要设置的座席工号。 |
| 5 | taskId | String | True | 外呼任务id |
| 6 | appointTime | TimeStamp | True | 预约呼叫时间,如果是自动外呼,则会提前5分钟执行呼叫。 |
| 7 | callData | String | False | 随路数据,最大长度1024,使用JSON格式。只支持预约自动外呼。 |
| 8 | remark | String | False | 预约任务备注信息。 |
响应说明
触发事件
无
错误结果码
报文样例
- 该接口的请求消息体举例如下:
{ "callType": "1", "calledNo": "66660001", "userAccount": "testName", "taskId": "1106025109", "appointTime": 1748858400000, "remark": "remark备注" } - 该接口的响应消息体举例如下:
{ "returnCode": "0200000", "returnObject": { "id": "174712034211433247704877116507" }, "resultCode": "0200000", "resultDesc": "success", "returnDesc": "success" }