单点接口

  • 接口:第三方提供
  • Method:POST
  • 数据格式:JSON
  • 接口说明:该接口用于sso单点登录
  • 文档末尾有文档版本记录

参数:

请求参数

字段名称 字段类型 字段描述 是否必填
destination String 目标页面, 标准值列表-附录15 FLASE
platform String 商旅渠道名称, 标准值列表-附录1 FLASE
equipment String 设备类型, 标准值列表-附录14 FLASE
plat Integer 调取页面, 标准值列表-附录16 FLASE
orderId String 商旅订单号,当destination为order_info时必填 FLASE
documentNum String 云简的申请单号,当destination为approval_info时,必填 FLASE
depCity Integer 出发城市在云简的编号 FLASE
arrCity Integer 到达城市在云简的编号 FLASE
startDate String 出发日期(酒店为入住日期),格式为yyyy-MM-dd FLASE
endDate String 离店日期,只有酒店会有,格式为yyyy-MM-dd FLASE
userId Integer 云简的用户编号(优先传userNo,个别旧项目传userId,userId和userNo二选一) FLASE
userNo String 对接时的用户key TRUE
companyId Integer 云简的公司编号 FLASE
account String 公司账户 TRUE
sessionId String 身份验证信息, 获取sessionId接口 TRUE
sign String 加密的sign,加密方式与身份验证一致。空值不传递不参与生成sign。 TRUE

返回参数

字段名称 字段类型 字段描述 是否必填
resCode Integer 错误码,正确填10000 TRUE
resMsg String 错误描述,正确写success TRUE
platform String 商旅渠道名称 TRUE
ssoType String 跳转方式, 标准值列表-附录17 TRUE
contentType String 标准值列表-附录18 FLASE
url String 基础地址(form表单提交为提交地址) TRUE
data json Form表单需要提交的内容 FLASE

示例:

请求数据

{
  "destination": "",
  "platform": "meiya",
  "equipment": "Android",
  "plat": 0,
  "orderId ": "TB123",
  "documentNum ": "REQ001",
  "depCity ": 1,
  "arrCity ": 2,
  "startDate ": "2019-09-09",
  "endDate ": "2019-09-10",
  "sessionId": "test,与第三方一起定义身份验证方式",
  "userId": 91228
}

返回数据

{
    "resCode": 10000,
    "resMsg": "success",
    "platform": "",
    "ssoType": "",
    "contentType": "",
    "url": "",
    "data": {}
}

文档版本记录

版本号 编写日期 更改内容
V1.0 2020.02.01 初稿
V1.1 2022.06.01 将userId调整为userNo,companyId调整为account

results matching ""

    No results matching ""