租户id和AppId选一个即可,传入Appid的情况适用于,渠道侧以应用的形式接入底座,已知小程序/服务号ID的情况下获取租户信息
https://{调用环境域名}/ebus/mainstaysvr/Tenant/V1/GetTenantInfo
请求参数
参数 | 类型 | 是否必填 | 参数说明 |
---|---|---|---|
RequestId | string | 否 | 业务ID |
TenantId | string | 否 | 租户ID |
AppId | string | 否 | 适用于小程序、服务号去获取租户信息的场景 |
参数 | 类型 | 参数说明 |
---|---|---|
Response | object | |
Error | string | 错误信息 |
Tenant | object | |
Tenant.TenantId | string | 租户ID |
Tenant.TenantName | string | 租户名称 |
Tenant.CmuBusinessId | string | 集成商ID |
Tenant.CmuBusinessName | string | 集成商名称 |
Tenant.DivisionCode | string | 行政区划码 |
Tenant.Mobile | string | 租户超级管理员手机号 |
Tenant.SuperAdminName | string | 租户超级管理员名称 |
Tenant.SysAdminList | object | 租户系统管理员列表 |
Tenant.SysAdminList.Mobile | string | 租户系统管理员手机号 |
Tenant.SysAdminList.Type | int | 管理员类型,11-超级管理员,12-系统管理员 |
Tenant.SysAdminList.Name | string | 租户系统管理员名称 |
Tenant.AppList | object | 租户绑定服务号/小程序列表 |
Tenant.AppList.WxAppId | string | 服务号/小程序原生ID |
Tenant.AppList.AppId | string | 加密后服务号/小程序ID |
Tenant.AppList.Alias | string | 微信号,如果没有设置,则没有 |
Tenant.AppList.NickName | string | 服务号或小程序昵称 |
Tenant.AppList.AppType | string | 1-服务号,2-小程序 |
Tenant.AppList.Category | string | 区分小程序使用场景,1:统一小程序,2:G端小程序 |
{
"TenantId": "zh832142955444101120",
"AppId":"wxaa20e2b20ead6784",
"RequestId": "12121"
}
{
"Response": {
"Error": null,
"Tenant": {
"TenantId": "zh832142955444101120",
"TenantName": "DD测试统一集成商",
"CmuBusinessId": "267214e8a3f3fed180b7b5be65a16e3a",
"CmuBusinessName": "DD测试统一集成商",
"DivisionCode": "CN",
"Mobile": "15260221792",
"SuperAdminName": "dd",
"SysAdminList": [
{
"Mobile": "13401033267",
"Type": 12,
"Name": "nicolas"
},
{
"Mobile": "13488338628",
"Type": 12,
"Name": "heroLiu"
}
],
"AppList": [
{
"WxAppId": "wxaa20e2b20ead6784",
"AppId": "1b00ab64d40369655cf3db250bda1cfc",
"Alias": "",
"NickName": "未来小程序",
"HeadImg": "https://devtest-1257368482.cos.ap-guangzhou.myqcloud.com/mainstayzh_1121/headImg_0_837941594824867841_face.jpg",
"AppType": 2,
"Category": 1
}
]
}
}
}