调研工单问卷链接

更新时间:2021-11-18 11:09:30

接口说明

该接口用于工单关闭后,通过多条工单数据批量获取实时返回相应工单匹配到调研计划的问卷链接地址,将会匹配调研计划设置的触发规则,调研范围和设置的自动完成时间,若未匹配到调研计划,URL将返回空字符串

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/survey-order/get-order-survey-url-list

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
o body string retesting 对应云服务租户号
business_data body array 业务数据json
business_data.business_type body string 任务 业务类型
business_data.business_id body string 3a003de6-707c-7557-05f5-edb4d18df4ef 业务id
business_data.corp_id body string 39d159e4-1685-bfb3-3c8a-d82da3169e81 公司id
business_data.proj_id body string 39df4f7c-ffdb-aa1a-3a90-6095c7c004ef 项目id
business_data.member_id body string 3a0015b8-84b4-3da5-2928-e374168203be 会员id
business_data.room_id body string 39df4f7d-010a-b06f-18d2-bb7cd943bbf1 房间id
business_data.rule_type body string 维修 触发规则类型
business_data.rule_status body string 已关闭 触发规则状态
business_data.source body string 明源 数据来源
business_data.callback_url body string http://baidu.com 接口回调地址

请求示例

{
  "o": "retesting",
  "business_data": [
    {
      "business_type": "任务",
      "business_id": "3a003de6-707c-7557-05f5-edb4d18df4ef",
      "corp_id": "39d159e4-1685-bfb3-3c8a-d82da3169e81",
      "proj_id": "39df4f7c-ffdb-aa1a-3a90-6095c7c004ef",
      "member_id": "3a0015b8-84b4-3da5-2928-e374168203be",
      "room_id": "39df4f7d-010a-b06f-18d2-bb7cd943bbf1",
      "rule_type": "维修",
      "rule_status": "已关闭",
      "source": "明源",
      "callback_url": "http://baidu.com"
    }
  ]
}

返回成功示例

{
  "errcode": 0,
  "errmsg": "ok",
  "data": {
    "3a003de6-707c-7557-05f5-edb4d18df4ef": {
      "business_id": "3a003de6-707c-7557-05f5-edb4d18df4ef",
      "questionnaire_url": "https://vcustomer-test.myyscm.com/#/login?o=retesting&return_url=https://cem-online.test.myyscm.com/retesting/customer-care/customer-visit/index?cv_id=39ff819f-b54c-821c-7d71-0b77a8e43164&cvm_id=ad9f774e-2a93-11ec-8384-ec0d9a46a456&public_id=39f490c7-7783-6fef-7c90-ecba1393d8f1"
    },
    "3a003de6-707c-7557-05f5-edb4d18df4ev": {
      "business_id": "3a003de6-707c-7557-05f5-edb4d18df4ev",
      "questionnaire_url": "https://vcustomer-test.myyscm.com/#/login?o=retesting&return_url=https://cem-online.test.myyscm.com/retesting/customer-care/customer-visit/index?cv_id=39ff819f-b54c-821c-7d71-0b77a8e43164&cvm_id=ad9f774e-2a93-11ec-8384-ec0d9a46a456&public_id=39f490c7-7783-6fef-7c90-ecba1393d8f1"
    }
  }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 0:成功;非0:失败
errmsg string 失败具体原因
data object 数据集合
data.3a003de6-707c-7557-05f5-edb4d18df4ef.business_id string 业务id
data.3a003de6-707c-7557-05f5-edb4d18df4ef.questionnaire_url string 单点问卷链接

失败返回示例

{"errcode":"10015","errmsg":"o参数不能为空"}

返回参数说明(失败)

参数名 参数类型 描述
errcode string 非0:失败
errmsg string 失败原因

results matching ""

    No results matching ""