# 查询企业信息

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/qw/doApi:
    post:
      summary: 查询企业信息
      deprecated: false
      description: >-
        <div style="background: linear-gradient(135deg, rgba(255, 213, 145,
        0.45) 0%, rgba(255, 255, 255, 0.06) 100%); border: 1px solid rgba(255,
        236, 202, 0.7); border-radius: 12px; padding: 20px 28px; margin-bottom:
        20px; box-shadow: 0 4px 12px rgba(250, 140, 22, 0.08);">
          <h3 style="margin: 0 0 8px 0; font-size: 18px; font-weight: 600; color: inherit; border: none; padding-bottom: 0;">查询企业信息</h3>
          <p style="margin: 0; font-size: 14px; color: inherit; line-height: 1.6;">查询当前账号所属企业的基本信息。</p>
        </div><div style="background: rgba(255, 247, 230, 0.25); border: 1px
        solid rgba(255, 213, 145, 0.55); border-radius: 6px; padding: 12px 16px;
        margin-bottom: 16px;"><p style="margin: 0; font-size: 13px; line-height:
        1.6;"><strong>注意：</strong>须传入 <code style="color: inherit; background:
        rgba(82, 196, 26, 0.08); border: 1px solid rgba(82, 196, 26, 0.1);
        padding: 2px 4px; border-radius:
        3px;">guid</code>，为已登录云设备唯一标识，通过创建设备接口获取。</p></div>
      tags:
        - API参考/基础能力/个人模块
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: X-QIWEI-TOKEN
          in: header
          description: >-
            <p style="margin: 0; font-size: 14px; color: inherit; line-height:
            1.6;">进入 <a href="https://new.qiweapi.com/tokens" style="color:
            inherit; text-decoration: underline; font-weight: 600;">应用凭证</a>，复制
            <code style="color: inherit; background: rgba(82, 196, 26, 0.08);
            border: 1px solid rgba(82, 196, 26, 0.1); padding: 2px 4px;
            border-radius: 3px;">TokenId</code>。</p>
          required: true
          example: '{{tokenId}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  title: 执行方法
                  description: >-
                    <code style="color: inherit; background: rgba(82, 196, 26,
                    0.08); border: 1px solid rgba(82, 196, 26, 0.1); padding:
                    2px 4px; border-radius: 3px;">/user/getCorpInfo</code>
                params:
                  type: object
                  properties:
                    guid:
                      type: string
                      title: 设备 ID
                      description: >-
                        <p style="margin: 0; font-size: 14px; color: inherit;
                        line-height: 1.6;">设备唯一标识 <code style="color: inherit;
                        background: rgba(82, 196, 26, 0.08); border: 1px solid
                        rgba(82, 196, 26, 0.1); padding: 2px 4px; border-radius:
                        3px;">guid</code>，由「创建设备」接口返回，业务接口必传。</p>
                    corpIdList:
                      type: array
                      items:
                        type: string
                        description: >-
                          <p style="margin: 0; font-size: 14px; color: inherit;
                          line-height: 1.6;">企业 ID 数组；传空数组 <code style="color:
                          inherit; background: rgba(82, 196, 26, 0.08); border:
                          1px solid rgba(82, 196, 26, 0.1); padding: 2px 4px;
                          border-radius: 3px;">[]</code> 时默认查询当前账号所属企业</p>
                      description: >-
                        <p style="margin: 0; font-size: 14px; color: inherit;
                        line-height: 1.6;">默认为空时，查询当前账号企业</p>
                      title: 企业id列表
                  required:
                    - guid
                    - corpIdList
                  x-apifox-orders:
                    - guid
                    - corpIdList
                  title: 请求参数
              required:
                - method
                - params
              x-apifox-orders:
                - method
                - params
              x-apifox-refs: {}
            example:
              method: /user/getCorpInfo
              params:
                guid: '{{guid}}'
                corpIdList:
                  - 1970325***983916
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">状态码，<code style="color: inherit;
                      background: rgba(82, 196, 26, 0.08); border: 1px solid
                      rgba(82, 196, 26, 0.1); padding: 2px 4px; border-radius:
                      3px;">0</code> 成功。</p>
                  data:
                    type: object
                    properties:
                      corpAdminId:
                        type: string
                        title: 企业管理员Id
                        description: ''
                      corpCreateTime:
                        type: integer
                        title: 创建时间
                        description: ''
                      corpFullName:
                        type: string
                        title: 企业主体名称
                        description: ''
                      corpId:
                        type: string
                        title: 企业ID
                        description: ''
                      corpName:
                        type: string
                        title: 企业全称
                        description: ''
                      corpOwnerName:
                        type: string
                        title: 企业负责人名称
                        description: ''
                      corpLogo:
                        type: string
                        title: 企业logo
                        description: >-
                          <p style="margin: 0; font-size: 14px; color: inherit;
                          line-height: 1.6;">企业 Logo URL。</p>
                      corpDesc:
                        type: string
                        title: 企业描述
                        description: ''
                    required:
                      - corpAdminId
                      - corpCreateTime
                      - corpFullName
                      - corpId
                      - corpLogo
                      - corpName
                      - corpOwnerName
                      - corpDesc
                    x-apifox-orders:
                      - corpAdminId
                      - corpCreateTime
                      - corpFullName
                      - corpId
                      - corpLogo
                      - corpName
                      - corpOwnerName
                      - corpDesc
                    title: 响应数据
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">业务数据。</p>
                  msg:
                    type: string
                    title: 说明
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">返回说明。</p>
                required:
                  - code
                  - data
                  - msg
                x-apifox-orders:
                  - code
                  - data
                  - msg
              example:
                code: 200
                data:
                  corpAdminId: 16888523******
                  corpCreateTime: 1496400169
                  corpFullName: ''
                  corpId: 19703250*****
                  corpLogo: >-
                    https://p.qlogo.cn/bizmail/hIKhyOCCHPppia2jJd22yBvIoEVIjRolpS*****bicg/0
                  corpName: aWNlLnN***5l
                  corpOwnerName: 5byg2****
                  corpDesc: xxxxx***5l
                msg: 成功
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: API参考/基础能力/个人模块
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7051713/apis/api-344613864-run
components:
  schemas: {}
  securitySchemes:
    apiKey:
      type: apikey
      in: header
      name: X-WECOM-TOKEN
servers:
  - url: https://new.qiweapi.com/qiwe
    description: 正式环境
security: []

```
