文档中心 商家相关 企业登录

企业登录

1.使用场景

此url在关爱通企业端管理页面跳转到第三方商家的企业管理页面时使用(一般与商家相关-企业标识接口后使用),跳转到第三方页面时会携带参数:当前用户的授权码auth_code(auth_code有时效性)

2.时序图

3.接口调用说明

请求URL

https://openapi.guanaitong.tech/seller/enterprise/trustLogin

HTTP请求方式

GET

输入参数说明

(1)私有参数

参数名称 是否必须 参数类型 长度限制 描述
redirect_url string - 重定向的商家url
请求示例
GET /seller/enterprise/trustLogin HTTP/1.1
Host: openapi.guanaitong.tech

redirect_url=https://test.guanaitong.com/login
                    
返回参数说明
参数名称 参数类型 描述
auth_code string 40位授权码
正确返回示例
302 [redirect_url]?auth_code=E3A7AE1F9871980D802E0CA6CC492DDCCA5313C1
错误返回示例
{
    "code":1000210017,
    "data":null,
    "msg":"redirect url not found!"
}