获取当前账号信息[租户端用户]-openAPI

最近更新时间:5/19/2022, 2:28:34 PM作者:andrewren(任豪)

接口描述

注意

以下接口仅在【v5.9】版本后支持

接口请求域名:http[s]://iam-app-api.{工业环境域名}

接口类型:OpenAPI

接口请求方式:POST

接口名:DescribeAccount

本接口查询当前token所属账号信息。

接口是否需要携带Token:是

输入参数

无额外入参

输出参数

参数名称 类型 描述
Account Account 账号信息

Account

字段名 字段类型 字段描述
NickName String 昵称,用户名
Type Integer 账号类型,1:主账户 2:子账户
Role Integer 用户角色,0:普通用户 1:CP服务商 10:SP运营商 20:客户经理
Strategy Integer 用户策略,0:游客 10:个人认证用户 20:企业管理员 21:企业员工
RegisterType Integer 1:邮箱注册 2:子账户 3:微信注册 4:企业微信注册
MasterId Long 主账户AccountId
AuthType Integer 认证类型,0:个人认证 1:企业认证
AuthStatus Integer 认证状态,0:未认证 1:认证中 2:认证通过 3:认证失败
AccountName String 账户名,主账户登录邮箱, 子账户的创建名
ContactMailStatus Integer 联系邮箱的状态,0:未确认 1:确认中 2:已确认
ContactMail String 联系邮箱
ContactMobileStatus Integer 联系手机的状态,0:未确认 1:确认中 2:已确认
CountryCode String 国家区号
ContactMobile String 联系手机
WxBindStatus Integer 微信的绑定状态,0:未绑定 1:已绑定
WxOpenId String 微信绑定的openId
WxNickName String 微信昵称
MiniProgramBindStatus Integer 微信小程序绑定状态,0:未绑定 1:已绑定
WorkWxBindStatus Integer 企业微信绑定状态,0:未绑定 1:已绑定
WorkWxCorpId String 企业微信的企业Id
WorkWxUserId String 企业微信的用户Id
MasterIsCp bool 子账号的主账号 是否CP服务商
CorpName String 企业认证的企业名称

示例

输出示例

{
    "RequestId":"mun7dm4l-b-yjplugo1r6xrf1-d7v7ml",
    "Account":{
        "AccountId":"511008144529233333",
        "AccountName":"iam_test_3@163.com",
        "RegisterType":1,
        "AppId":0,
        "NickName":"iam_test_3@163.com",
        "Type":1,
        "Role":1,
        "Strategy":20,
        "MasterId":"511008144529233333",
        "Status":2,
        "ContactMailStatus":2,
        "ContactMail":"iam_test_3@163.com",
        "ContactMobileStatus":2,
        "ContactMobile":"177xxxx36",
        "WxBindStatus":0,
        "WxOpenId":"",
        "WxNickName":"",
        "AuthType":1,
        "AuthStatus":2,
        "AuthId":"512383459193233333",
        "IsAuthMod":0,
        "ModAuthType":0,
        "ModAuthId":"0",
        "CorpName":"GuoChang",
        "MailBindStatus":0,
        "WorkWxBindStatus":0,
        "WorkWxUserId":"",
        "WorkWxCorpId":"",
        "MiniProgramBindStatus":0,
        "MasterIsCp":false,
        "AuthTime":1591874496
    }
}

错误码

以下仅列出了接口业务逻辑相关的错误码

错误码 描述