Balanços.AI Empresas API

The Empresas API from Balanços.AI — 6 operation(s) for empresas.

Operations 6

GET /v1/empresas Busca empresas por razão social, nome fantasia ou CNPJ #
GET /v1/empresas/{chave} Ficha cadastral e panorama de dados da empresa #
GET /v1/empresas/{chave}/balancos Balanços patrimoniais da empresa, por exercício #
GET /v1/empresas/{chave}/dres Demonstrações de resultado da empresa, por exercício #
GET /v1/empresas/{chave}/documentos Publicações legais da empresa, mais recentes primeiro #
GET /v1/ranking Ranking de empresas por métrica financeira #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/balancos-ai:balancos-ai-empresas-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

balancos-ai-empresas-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Balanços.AI — API pública Empresas API
  description: Dados abertos do balancos.ai — demonstrações financeiras de empresas brasileiras, companhias abertas (CVM) e instituições financeiras (IF.data, BCB). Veja o guia em https://balancos.ai/api/docs.
  version: 1.3.0
tags:
- name: Empresas
paths:
  /v1/empresas:
    get:
      tags:
      - Empresas
      summary: Busca empresas por razão social, nome fantasia ou CNPJ
      operationId: buscar_v1_empresas_get
      security:
      - ChaveAPI: []
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
          description: Razão social, nome fantasia ou CNPJ (inteiro ou raiz)
          title: Q
        description: Razão social, nome fantasia ou CNPJ (inteiro ou raiz)
      responses:
        '200':
          description: Empresas encontradas, até o teto de 20.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeBusca'
        '400':
          description: '`parametro_invalido` ou `requisicao_invalida` (parâmetro desconhecido).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '401':
          description: '`chave_invalida` — Bearer ausente, malformado, inexistente ou revogado.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '429':
          description: '`limite_excedido` (cota da conta) ou `limite_ip` (piso por IP).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '503':
          description: '`indisponivel` — gold ou Supabase fora, ou falha ao concluir a medição.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
  /v1/empresas/{chave}:
    get:
      tags:
      - Empresas
      summary: Ficha cadastral e panorama de dados da empresa
      operationId: ficha_v1_empresas__chave__get
      security:
      - ChaveAPI: []
      parameters:
      - name: chave
        in: path
        required: true
        schema:
          type: string
          title: Chave
      responses:
        '200':
          description: Ficha da empresa.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apps__api__modelos__EnvelopeFicha'
        '400':
          description: '`chave_empresa_invalida` (nem slug nem CNPJ), `parametro_invalido` ou `requisicao_invalida` (parâmetro desconhecido).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '404':
          description: '`empresa_nao_encontrada` — chave válida, empresa fora do gold.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '401':
          description: '`chave_invalida` — Bearer ausente, malformado, inexistente ou revogado.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '429':
          description: '`limite_excedido` (cota da conta) ou `limite_ip` (piso por IP).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '503':
          description: '`indisponivel` — gold ou Supabase fora, ou falha ao concluir a medição.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
  /v1/empresas/{chave}/balancos:
    get:
      tags:
      - Empresas
      summary: Balanços patrimoniais da empresa, por exercício
      operationId: balancos_v1_empresas__chave__balancos_get
      security:
      - ChaveAPI: []
      parameters:
      - name: chave
        in: path
        required: true
        schema:
          type: string
          title: Chave
      - name: ano
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ano
      responses:
        '200':
          description: Balanços da empresa, um por exercício.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apps__api__modelos__EnvelopeBalancos'
        '400':
          description: '`chave_empresa_invalida` (nem slug nem CNPJ), `parametro_invalido` ou `requisicao_invalida` (parâmetro desconhecido).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '404':
          description: '`empresa_nao_encontrada` — chave válida, empresa fora do gold.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '401':
          description: '`chave_invalida` — Bearer ausente, malformado, inexistente ou revogado.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '429':
          description: '`limite_excedido` (cota da conta) ou `limite_ip` (piso por IP).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '503':
          description: '`indisponivel` — gold ou Supabase fora, ou falha ao concluir a medição.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
  /v1/empresas/{chave}/dres:
    get:
      tags:
      - Empresas
      summary: Demonstrações de resultado da empresa, por exercício
      operationId: dres_v1_empresas__chave__dres_get
      security:
      - ChaveAPI: []
      parameters:
      - name: chave
        in: path
        required: true
        schema:
          type: string
          title: Chave
      - name: ano
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ano
      responses:
        '200':
          description: DREs da empresa, uma por exercício.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apps__api__modelos__EnvelopeDres'
        '400':
          description: '`chave_empresa_invalida` (nem slug nem CNPJ), `parametro_invalido` ou `requisicao_invalida` (parâmetro desconhecido).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '404':
          description: '`empresa_nao_encontrada` — chave válida, empresa fora do gold.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '401':
          description: '`chave_invalida` — Bearer ausente, malformado, inexistente ou revogado.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '429':
          description: '`limite_excedido` (cota da conta) ou `limite_ip` (piso por IP).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '503':
          description: '`indisponivel` — gold ou Supabase fora, ou falha ao concluir a medição.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
  /v1/empresas/{chave}/documentos:
    get:
      tags:
      - Empresas
      summary: Publicações legais da empresa, mais recentes primeiro
      operationId: documentos_v1_empresas__chave__documentos_get
      security:
      - ChaveAPI: []
      parameters:
      - name: chave
        in: path
        required: true
        schema:
          type: string
          title: Chave
      responses:
        '200':
          description: Documentos da empresa, até o teto de 100.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeDocumentos'
        '400':
          description: '`chave_empresa_invalida` (nem slug nem CNPJ), `parametro_invalido` ou `requisicao_invalida` (parâmetro desconhecido).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '404':
          description: '`empresa_nao_encontrada` — chave válida, empresa fora do gold.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '401':
          description: '`chave_invalida` — Bearer ausente, malformado, inexistente ou revogado.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '429':
          description: '`limite_excedido` (cota da conta) ou `limite_ip` (piso por IP).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '503':
          description: '`indisponivel` — gold ou Supabase fora, ou falha ao concluir a medição.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
  /v1/ranking:
    get:
      tags:
      - Empresas
      summary: Ranking de empresas por métrica financeira
      operationId: ranking_v1_ranking_get
      security:
      - ChaveAPI: []
      parameters:
      - name: metrica
        in: query
        required: true
        schema:
          type: string
          title: Metrica
      - name: uf
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Uf
      - name: setor
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Setor
      - name: limite
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Empresas por página, até 100; padrão 20.
          title: Limite
        description: Empresas por página, até 100; padrão 20.
      - name: inicio
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Posição do primeiro item da página, a partir de 1.
          default: 1
          title: Inicio
        description: Posição do primeiro item da página, a partir de 1.
      responses:
        '200':
          description: 'Página do ranking: até 100 por chamada; `proximo_inicio` quando há mais.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apps__api__modelos__EnvelopeRanking'
        '400':
          description: '`parametro_invalido` ou `requisicao_invalida` (parâmetro desconhecido).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '401':
          description: '`chave_invalida` — Bearer ausente, malformado, inexistente ou revogado.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '429':
          description: '`limite_excedido` (cota da conta) ou `limite_ip` (piso por IP).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
        '503':
          description: '`indisponivel` — gold ou Supabase fora, ou falha ao concluir a medição.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeErro'
components:
  schemas:
    ErroDetalhe:
      properties:
        codigo:
          type: string
          title: Codigo
        mensagem:
          type: string
          title: Mensagem
      additionalProperties: false
      type: object
      required:
      - codigo
      - mensagem
      title: ErroDetalhe
    EmpresaResumo:
      properties:
        razao_social:
          type: string
          title: Razao Social
        slug:
          type: string
          title: Slug
        link:
          type: string
          title: Link
      additionalProperties: false
      type: object
      required:
      - razao_social
      - slug
      - link
      title: EmpresaResumo
      description: '`{razao_social, slug, link}` — o ponteiro leve usado dentro de

        balanços, DREs e documentos.'
    EnvelopeErro:
      properties:
        erro:
          $ref: '#/components/schemas/ErroDetalhe'
        requisicao_id:
          type: string
          title: Requisicao Id
      additionalProperties: false
      type: object
      required:
      - erro
      - requisicao_id
      title: EnvelopeErro
    apps__api__modelos__Ranking:
      properties:
        metrica:
          type: string
          title: Metrica
        nota:
          type: string
          title: Nota
        inicio:
          type: integer
          title: Inicio
        total:
          anyOf:
          - type: integer
          - type: 'null'
          title: Total
        proximo_inicio:
          anyOf:
          - type: integer
          - type: 'null'
          title: Proximo Inicio
        empresas:
          anyOf:
          - items:
              $ref: '#/components/schemas/EmpresaRankingValor'
            type: array
          - items:
              $ref: '#/components/schemas/EmpresaRankingCrescimento'
            type: array
          title: Empresas
        dica:
          anyOf:
          - type: string
          - type: 'null'
          title: Dica
      additionalProperties: false
      type: object
      required:
      - metrica
      - nota
      - inicio
      - total
      - empresas
      title: Ranking
    apps__api__modelos__Dres:
      properties:
        empresa:
          $ref: '#/components/schemas/EmpresaResumo'
        dres:
          items:
            $ref: '#/components/schemas/DRE'
          type: array
          title: Dres
        dica:
          anyOf:
          - type: string
          - type: 'null'
          title: Dica
      additionalProperties: false
      type: object
      required:
      - empresa
      - dres
      title: Dres
    ValoresBalanco:
      properties:
        ativo_total:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Ativo Total
        ativo_circulante:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Ativo Circulante
        ativo_nao_circulante:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Ativo Nao Circulante
        passivo_circulante:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Passivo Circulante
        passivo_nao_circulante:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Passivo Nao Circulante
        passivo_total:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Passivo Total
        patrimonio_liquido:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Patrimonio Liquido
        passivo_e_pl_total:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Passivo E Pl Total
      additionalProperties: false
      type: object
      required:
      - ativo_total
      - ativo_circulante
      - ativo_nao_circulante
      - passivo_circulante
      - passivo_nao_circulante
      - passivo_total
      - patrimonio_liquido
      - passivo_e_pl_total
      title: ValoresBalanco
    Empresa:
      properties:
        razao_social:
          type: string
          title: Razao Social
        nome_fantasia:
          anyOf:
          - type: string
          - type: 'null'
          title: Nome Fantasia
        cnpj:
          anyOf:
          - type: string
          - type: 'null'
          title: Cnpj
        slug:
          type: string
          title: Slug
        setor:
          anyOf:
          - type: string
          - type: 'null'
          title: Setor
        porte:
          anyOf:
          - type: string
          - type: 'null'
          title: Porte
        uf:
          anyOf:
          - type: string
          - type: 'null'
          title: Uf
        municipio:
          anyOf:
          - type: string
          - type: 'null'
          title: Municipio
        cnae_principal:
          anyOf:
          - type: string
          - type: 'null'
          title: Cnae Principal
        cnae_descricao:
          anyOf:
          - type: string
          - type: 'null'
          title: Cnae Descricao
        natureza_juridica:
          anyOf:
          - type: string
          - type: 'null'
          title: Natureza Juridica
        situacao_cadastral:
          anyOf:
          - type: string
          - type: 'null'
          title: Situacao Cadastral
        capital_social:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Capital Social
        publicacoes_total:
          anyOf:
          - type: integer
          - type: 'null'
          title: Publicacoes Total
        publicacoes_financeiras:
          anyOf:
          - type: integer
          - type: 'null'
          title: Publicacoes Financeiras
        ultima_publicacao:
          anyOf:
          - type: string
          - type: 'null'
          title: Ultima Publicacao
        anos_com_balanco:
          items:
            type: integer
          type: array
          title: Anos Com Balanco
        anos_com_dre:
          items:
            type: integer
          type: array
          title: Anos Com Dre
        link:
          type: string
          title: Link
      additionalProperties: false
      type: object
      required:
      - razao_social
      - nome_fantasia
      - cnpj
      - slug
      - setor
      - porte
      - uf
      - municipio
      - cnae_principal
      - cnae_descricao
      - natureza_juridica
      - situacao_cadastral
      - capital_social
      - publicacoes_total
      - publicacoes_financeiras
      - ultima_publicacao
      - anos_com_balanco
      - anos_com_dre
      - link
      title: Empresa
      description: Ficha cadastral completa (`GET /empresas/{chave}`).
    EnvelopeBusca:
      properties:
        dados:
          $ref: '#/components/schemas/Busca'
        meta:
          $ref: '#/components/schemas/Meta'
      additionalProperties: false
      type: object
      required:
      - dados
      - meta
      title: EnvelopeBusca
    Documento:
      properties:
        id:
          type: string
          title: Id
        tipo:
          anyOf:
          - type: string
          - type: 'null'
          title: Tipo
        publicado_em:
          anyOf:
          - type: string
          - type: 'null'
          title: Publicado Em
        ano_referencia:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ano Referencia
        titulo:
          anyOf:
          - type: string
          - type: 'null'
          title: Titulo
        paginas:
          anyOf:
          - type: integer
          - type: 'null'
          title: Paginas
        link:
          type: string
          title: Link
      additionalProperties: false
      type: object
      required:
      - id
      - tipo
      - publicado_em
      - ano_referencia
      - titulo
      - paginas
      - link
      title: Documento
    apps__api__modelos__EnvelopeRanking:
      properties:
        dados:
          $ref: '#/components/schemas/apps__api__modelos__Ranking'
        meta:
          $ref: '#/components/schemas/Meta'
      additionalProperties: false
      type: object
      required:
      - dados
      - meta
      title: EnvelopeRanking
    EmpresaRankingValor:
      properties:
        posicao:
          type: integer
          title: Posicao
        razao_social:
          type: string
          title: Razao Social
        slug:
          type: string
          title: Slug
        uf:
          anyOf:
          - type: string
          - type: 'null'
          title: Uf
        setor:
          anyOf:
          - type: string
          - type: 'null'
          title: Setor
        valor_em_reais:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Valor Em Reais
        exercicio:
          anyOf:
          - type: integer
          - type: 'null'
          title: Exercicio
        link:
          type: string
          title: Link
      additionalProperties: false
      type: object
      required:
      - posicao
      - razao_social
      - slug
      - uf
      - setor
      - valor_em_reais
      - exercicio
      - link
      title: EmpresaRankingValor
    ValoresDRE:
      properties:
        receita_bruta:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Receita Bruta
        receita_liquida:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Receita Liquida
        custo:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Custo
        lucro_bruto:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Lucro Bruto
        lucro_operacional:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Lucro Operacional
        lucro_liquido:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Lucro Liquido
      additionalProperties: false
      type: object
      required:
      - receita_bruta
      - receita_liquida
      - custo
      - lucro_bruto
      - lucro_operacional
      - lucro_liquido
      title: ValoresDRE
    EmpresaRankingCrescimento:
      properties:
        posicao:
          type: integer
          title: Posicao
        razao_social:
          type: string
          title: Razao Social
        slug:
          type: string
          title: Slug
        uf:
          anyOf:
          - type: string
          - type: 'null'
          title: Uf
        setor:
          anyOf:
          - type: string
          - type: 'null'
          title: Setor
        crescimento_ativo_total_pct:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Crescimento Ativo Total Pct
        ativo_base:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Ativo Base
        ativo_atual:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Ativo Atual
        de_ano:
          type: integer
          title: De Ano
        para_ano:
          type: integer
          title: Para Ano
        link:
          type: string
          title: Link
      additionalProperties: false
      type: object
      required:
      - posicao
      - razao_social
      - slug
      - uf
      - setor
      - crescimento_ativo_total_pct
      - ativo_base
      - ativo_atual
      - de_ano
      - para_ano
      - link
      title: EmpresaRankingCrescimento
    Documentos:
      properties:
        empresa:
          $ref: '#/components/schemas/EmpresaResumo'
        documentos:
          items:
            $ref: '#/components/schemas/Documento'
          type: array
          title: Documentos
        total:
          type: integer
          title: Total
        aviso:
          anyOf:
          - type: string
          - type: 'null'
          title: Aviso
      additionalProperties: false
      type: object
      required:
      - empresa
      - documentos
      - total
      title: Documentos
    apps__api__modelos__EnvelopeFicha:
      properties:
        dados:
          $ref: '#/components/schemas/apps__api__modelos__Ficha'
        meta:
          $ref: '#/components/schemas/Meta'
      additionalProperties: false
      type: object
      required:
      - dados
      - meta
      title: EnvelopeFicha
    EnvelopeDocumentos:
      properties:
        dados:
          $ref: '#/components/schemas/Documentos'
        meta:
          $ref: '#/components/schemas/Meta'
      additionalProperties: false
      type: object
      required:
      - dados
      - meta
      title: EnvelopeDocumentos
    Busca:
      properties:
        empresas:
          items:
            $ref: '#/components/schemas/EmpresaBusca'
          type: array
          title: Empresas
        total:
          type: integer
          title: Total
        dica:
          anyOf:
          - type: string
          - type: 'null'
          title: Dica
      additionalProperties: false
      type: object
      required:
      - empresas
      - total
      title: Busca
    Balanco:
      properties:
        exercicio:
          type: integer
          title: Exercicio
        data_referencia:
          anyOf:
          - type: string
          - type: 'null'
          title: Data Referencia
        fonte:
          type: string
          title: Fonte
        consolidado:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Consolidado
        contexto:
          anyOf:
          - type: string
          - type: 'null'
          title: Contexto
        valores_em_reais:
          $ref: '#/components/schemas/ValoresBalanco'
        escala_publicada:
          anyOf:
          - type: string
          - type: 'null'
          title: Escala Publicada
      additionalProperties: false
      type: object
      required:
      - exercicio
      - data_referencia
      - fonte
      - consolidado
      - contexto
      - valores_em_reais
      - escala_publicada
      title: Balanco
    apps__api__modelos__Ficha:
      properties:
        empresa:
          $ref: '#/components/schemas/Empresa'
      additionalProperties: false
      type: object
      required:
      - empresa
      title: Ficha
    EmpresaBusca:
      properties:
        razao_social:
          type: string
          title: Razao Social
        cnpj:
          anyOf:
          - type: string
          - type: 'null'
          title: Cnpj
        slug:
          type: string
          title: Slug
        link:
          type: string
          title: Link
      additionalProperties: false
      type: object
      required:
      - razao_social
      - cnpj
      - slug
      - link
      title: EmpresaBusca
    apps__api__modelos__EnvelopeDres:
      properties:
        dados:
          $ref: '#/components/schemas/apps__api__modelos__Dres'
        meta:
          $ref: '#/components/schemas/Meta'
      additionalProperties: false
      type: object
      required:
      - dados
      - meta
      title: EnvelopeDres
    Meta:
      properties:
        versao:
          type: string
          title: Versao
          default: v1
        release:
          type: string
          title: Release
          default: 1.3.0
        dados_atualizados_em:
          anyOf:
          - type: string
          - type: 'null'
          title: Dados Atualizados Em
        requisicao_id:
          type: string
          title: Requisicao Id
      additionalProperties: false
      type: object
      required:
      - dados_atualizados_em
      - requisicao_id
      title: Meta
    apps__api__modelos__EnvelopeBalancos:
      properties:
        dados:
          $ref: '#/components/schemas/apps__api__modelos__Balancos'
        meta:
          $ref: '#/components/schemas/Meta'
      additionalProperties: false
      type: object
      required:
      - dados
      - meta
      title: EnvelopeBalancos
    DRE:
      properties:
        exercicio:
          type: integer
          title: Exercicio
        data_referencia:
          anyOf:
          - type: string
          - type: 'null'
          title: Data Referencia
        data_inicio:
          anyOf:
          - type: string
          - type: 'null'
          title: Data Inicio
        fonte:
          type: string
          title: Fonte
        periodo_tipo:
          anyOf:
          - type: string
          - type: 'null'
          title: Periodo Tipo
        consolidado:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Consolidado
        contexto:
          anyOf:
          - type: string
          - type: 'null'
          title: Contexto
        valores_em_reais:
          $ref: '#/components/schemas/ValoresDRE'
        escala_publicada:
          anyOf:
          - type: string
          - type: 'null'
          title: Escala Publicada
      additionalProperties: false
      type: object
      required:
      - exercicio
      - data_referencia
      - data_inicio
      - fonte
      - periodo_tipo
      - consolidado
      - contexto
      - valores_em_reais
      - escala_publicada
      title: DRE
    apps__api__modelos__Balancos:
      properties:
        empresa:
          $ref: '#/components/schemas/EmpresaResumo'
        balancos:
          items:
            $ref: '#/components/schemas/Balanco'
          type: array
          title: Balancos
        dica:
          anyOf:
          - type: string
          - type: 'null'
          title: Dica
      additionalProperties: false
      type: object
      required:
      - empresa
      - balancos
      title: Balancos
  securitySchemes:
    ChaveAPI:
      type: http
      scheme: bearer