# CNPJPesquisaSolicitacao

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths: {}
components:
  schemas:
    MatrizFilial:
      type: string
      enum:
        - MATRIZ
        - FILIAL
      x-apidog-folder: ''
    SituacaoCadastral:
      type: array
      items:
        type: string
        enum:
          - ATIVA
          - BAIXADA
          - INAPTA
          - NULA
          - SUSPENSA
      x-apidog-folder: ''
    CNPJPesquisaSolicitacao:
      type: object
      properties:
        cnpj:
          type: array
          items:
            type: string
          examples:
            - - '29806217000175'
              - '33000167000292'
        busca_textual:
          type: array
          items:
            type: object
            properties:
              texto:
                type: array
                items:
                  type: string
              tipo_busca:
                type: string
                enum:
                  - exata
                  - radical
              razao_social:
                type: boolean
              nome_fantasia:
                type: boolean
              nome_socio:
                type: boolean
            x-apidog-orders:
              - texto
              - tipo_busca
              - razao_social
              - nome_fantasia
              - nome_socio
        codigo_atividade_principal:
          type: array
          items:
            type: string
          examples:
            - - '7112000'
              - '9602501'
              - '6462000'
        incluir_atividade_secundaria:
          type: boolean
        codigo_atividade_secundaria:
          type: array
          items:
            type: string
          examples:
            - - '7112000'
              - '9602501'
              - '6462000'
        codigo_natureza_juridica:
          type: array
          items:
            type: string
          examples:
            - - '7112000'
              - '9602501'
              - '6462000'
        situacao_cadastral:
          $ref: '#/components/schemas/SituacaoCadastral'
        matriz_filial:
          $ref: '#/components/schemas/MatrizFilial'
        cnpj_raiz:
          type: array
          items:
            type: string
          examples:
            - - '33000167'
              - '29806217'
        cep:
          type: array
          items:
            type: string
          examples:
            - - '07115000'
              - '01310930'
        endereco_numero:
          type: array
          items:
            type: string
          examples:
            - - '21'
              - 109B
        uf:
          type: array
          items:
            type: string
          examples:
            - - sp
              - rj
              - mg
        municipio:
          type: array
          items:
            type: string
          examples:
            - - sao paulo
              - guarulhos
              - belo horizonte
        bairro:
          type: array
          items:
            type: string
          examples:
            - - centro
              - vila mariana
        ddd:
          type: array
          items:
            type: string
          examples:
            - - '11'
              - '12'
              - '31'
        telefone:
          type: array
          items:
            type: string
          examples:
            - - '5135277255'
        data_abertura:
          type: object
          properties:
            inicio:
              type: string
              format: date
            fim:
              type: string
              format: date
            ultimos_dias:
              type: integer
          x-apidog-orders:
            - inicio
            - fim
            - ultimos_dias
        capital_social:
          type: object
          properties:
            minimo:
              type: integer
            maximo:
              type: integer
          x-apidog-orders:
            - minimo
            - maximo
        mei:
          type: object
          properties:
            optante:
              type: boolean
            excluir_optante:
              type: boolean
            data_exclusao:
              type: object
              properties:
                inicio:
                  type: string
                  format: date
                fim:
                  type: string
                  format: date
              x-apidog-orders:
                - inicio
                - fim
          x-apidog-orders:
            - optante
            - excluir_optante
            - data_exclusao
        simples:
          type: object
          properties:
            optante:
              type: boolean
            excluir_optante:
              type: boolean
            data_exclusao:
              type: object
              properties:
                inicio:
                  type: string
                  format: date
                fim:
                  type: string
                  format: date
              x-apidog-orders:
                - inicio
                - fim
          x-apidog-orders:
            - optante
            - excluir_optante
            - data_exclusao
        porte_empresa:
          type: object
          properties:
            codigos:
              type: array
              items:
                type: string
                enum:
                  - '01'
                  - '03'
                  - '05'
                x-apidog-enum:
                  - value: '01'
                    name: Micro Empresa
                    description: ''
                  - value: '03'
                    name: Empresa de Pequeno Porte
                    description: ''
                  - value: '05'
                    name: Demais
                    description: ''
          x-apidog-orders:
            - codigos
        mais_filtros:
          type: object
          properties:
            somente_matriz:
              type: boolean
            somente_filial:
              type: boolean
            com_email:
              type: boolean
            com_telefone:
              type: boolean
            somente_fixo:
              type: boolean
            somente_celular:
              type: boolean
            excluir_empresas_visualizadas:
              type: boolean
            excluir_email_contab:
              type: boolean
          x-apidog-orders:
            - somente_matriz
            - somente_filial
            - com_email
            - com_telefone
            - somente_fixo
            - somente_celular
            - excluir_empresas_visualizadas
            - excluir_email_contab
        excluir:
          type: object
          properties:
            cnpj:
              type: array
              items:
                type: string
              examples:
                - - '29806217000175'
                  - '33000167000292'
          x-apidog-orders:
            - cnpj
        limite:
          type: integer
          maximum: 1000
          minimum: 1
          examples:
            - 10
        pagina:
          type: integer
          minimum: 1
          examples:
            - 1
      x-apidog-orders:
        - cnpj
        - busca_textual
        - codigo_atividade_principal
        - incluir_atividade_secundaria
        - codigo_atividade_secundaria
        - codigo_natureza_juridica
        - situacao_cadastral
        - matriz_filial
        - cnpj_raiz
        - cep
        - endereco_numero
        - uf
        - municipio
        - bairro
        - ddd
        - telefone
        - data_abertura
        - capital_social
        - mei
        - simples
        - porte_empresa
        - mais_filtros
        - excluir
        - limite
        - pagina
      x-apidog-folder: ''
  securitySchemes: {}
servers: []
security: []

```
