第三方单个事件上报接口

更新时间:2023-03-14 18:33:36

接口说明

接口使用场景:第三方系统想使用云链云服务满意度问卷功能,比如第三方系统中客户来电后,想使用满意度自动触点调研功能,自动给客户发送个调研问卷。需要第三方系统将需要使用自动触点调研的业务事件上报给云服务。故我们这边会提供个第三方事件上报的接口给第三方进行调用。支持单个事件上报和多个事件批量上报,此接口为单事件上报接口。

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/survey-third-rule/submit-event

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
o body string retesting 对应云服务租户号
business_id body string 3a0ac858-c70f-9411-8b65-d61760371749 第三方业务数据id
business_code body string gdkf_yycg 第三方业务规则编码
third_corp_id body string 39d159e4-1685-bfb3-3c8a-d82da3169e81 第三方公司id
third_proj_id body string 39fe605d-247a-7f8d-1ac2-1e76585d7b64 第三方项目id
third_room_id body string 39fe608b-05a2-c69d-c97a-c0e936055352 第三方房间id
third_room_name body string 鹏程大厦-一期-5-39fe6082-6862-350b-c03f-bf01c11979a139fe6082-686-3-222 第三方房间名称
third_user_id body string 39fdfe9f-f6ad-18e5-47a8-2e10c5c2fff7 第三方用户id
third_user_name body string 君莫笑 第三方用户名
mobile body string 18033410785 用户手机号
room_id body string 39fe608b-05a2-c69d-c97a-c0e936055352 系统房间id
member_id body string 39fdfe9f-f6ad-18e5-47a8-2e10c5c2fff7 系统会员id
operate_time body string 2023-03-06 16:55:04 操作时间
extend_info body string {"room":["39fe608b-05a2-c69d-c97a-c0e936055352","39fe608b-0599-9b84-6e82-b08838441e47"]} 其他业务信息

请求示例

{
"o":"retesting",
"business_id":"3a0ac858-c70f-9411-8b65-d61760371749",
"business_code":"gdkf_yycg",
"third_corp_id":"39d159e4-1685-bfb3-3c8a-d82da3169e81",
"third_proj_id":"39fe605d-247a-7f8d-1ac2-1e76585d7b64",
"third_room_id":"39fe608b-05a2-c69d-c97a-c0e936055352",
"third_room_name":"鹏程大厦-一期-5-39fe6082-6862-350b-c03f-bf01c11979a139fe6082-686-3-222",
"third_user_id":"39fdfe9f-f6ad-18e5-47a8-2e10c5c2fff7",
"third_user_name":"君莫笑",
"mobile":"18033410785",
"room_id":"39fe608b-05a2-c69d-c97a-c0e936055352",
"member_id":"39fdfe9f-f6ad-18e5-47a8-2e10c5c2fff7",
"operate_time":"2023-03-06 16:55:04",
"extend_info":"{\"room\":[\"39fe608b-05a2-c69d-c97a-c0e936055352\",\"39fe608b-0599-9b84-6e82-b08838441e47\"]}"
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "ok",
    "data": "3a09c859-351d-9a9a-dd0f-867864075635"
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 0:成功;非0:失败
errmsg string 提示信息
data string 保存成功数据id

失败返回示例

{
  "errcode": 50060,
  "errmsg": "操作失败:【业务编码不存在ydjf_】"
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number 错误代码
errmsg string 错误提示信息

results matching ""

    No results matching ""