# cnpj

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v2/cnpj/:
    get:
      summary: cnpj
      deprecated: false
      description: |+

        API da consulta completa do CNPJ. 

        ** Deve possuir acesso API: Sim (Completa)  **

        1. Inclui relacionamentos e dados completos.
        2. Pode ser feita consulta única ou em lotes de até 1.000 CNPJs
        3. Input CNPJs em lotes devem ser separados por vírgula

      tags:
        - API_COMPLETA
      parameters:
        - name: x-api-key
          in: header
          description: Chave da API
          required: false
          example: '{{x-api-key}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                cnpjs:
                  type: string
                  description: Número do CNPJ ou CNPJs separados por vírgulas
              required:
                - cnpjs
              x-apidog-orders:
                - cnpjs
            example:
              cnpjs: '29843839000173'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  pj:
                    type: array
                    items:
                      type: object
                      properties:
                        cnpj:
                          type: string
                        nome:
                          type: string
                        fantasia:
                          type: string
                        cidade:
                          type: string
                        abertura:
                          type: string
                        uf:
                          type: string
                        ddd:
                          type: string
                        tel1:
                          type: string
                        tel2:
                          type: string
                        tel3:
                          type: string
                        website:
                          type: string
                        setor:
                          type: string
                        atividade:
                          type: string
                        cnae_primario:
                          type: string
                        cnae_secundario:
                          type: string
                        nj:
                          type: string
                        endereco:
                          type: string
                        numero:
                          type: string
                        compl:
                          type: string
                        cep:
                          type: string
                        bairro:
                          type: string
                        situacao:
                          type: string
                        mtz:
                          type: string
                        faturamento:
                          type: string
                        ie:
                          type: string
                        funcionarios:
                          type: string
                        dominio:
                          type: string
                        socios:
                          type: array
                          items:
                            type: object
                            properties:
                              cpf:
                                type: string
                              cnpj:
                                type: string
                              nm:
                                type: string
                              cargo:
                                type: string
                              entrada:
                                type: string
                              part:
                                type: string
                              cel1:
                                type: string
                              cel2:
                                type: string
                            x-apidog-orders:
                              - cpf
                              - cnpj
                              - nm
                              - cargo
                              - entrada
                              - part
                              - cel1
                              - cel2
                        contatos:
                          type: array
                          items:
                            type: string
                      x-apidog-orders:
                        - cnpj
                        - nome
                        - fantasia
                        - cidade
                        - abertura
                        - uf
                        - ddd
                        - tel1
                        - tel2
                        - tel3
                        - website
                        - setor
                        - atividade
                        - cnae_primario
                        - cnae_secundario
                        - nj
                        - endereco
                        - numero
                        - compl
                        - cep
                        - bairro
                        - situacao
                        - mtz
                        - faturamento
                        - ie
                        - funcionarios
                        - dominio
                        - socios
                        - contatos
                  status:
                    type: string
                  msgRetorno:
                    type: string
                  response:
                    type: string
                  contagem:
                    type: integer
                  code:
                    type: integer
                  credits:
                    type: integer
                  01JN3PTTYSH2YZB813JEN3F782:
                    type: string
                required:
                  - pj
                  - status
                  - msgRetorno
                  - response
                  - contagem
                  - code
                  - credits
                  - 01JN3PTTYSH2YZB813JEN3F782
                x-apidog-orders:
                  - pj
                  - status
                  - msgRetorno
                  - response
                  - contagem
                  - code
                  - credits
                  - 01JN3PTTYSH2YZB813JEN3F782
              examples:
                '1':
                  summary: Success
                  value:
                    pj:
                      - cnpj: 2984******00173
                        nome: RIF DADOS DO BRASIL LTDA
                        fantasia: ''
                        cidade: SAO PAULO
                        abertura: 05/03/2018
                        uf: SP
                        ddd: '11'
                        tel1: 1136******
                        tel2: 1136******
                        tel3: ''
                        website: ''
                        setor: SERVIÇOS
                        atividade: >-
                          DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB
                          ENCOMENDA
                        cnae_primario: '6201501'
                        cnae_secundario: '6204000'
                        nj: '2305'
                        endereco: RUA FERREIRA DE ARAUJO
                        numero: '221'
                        compl: CONJ  54
                        cep: 05428***
                        bairro: PINHEIROS
                        situacao: ATIVA
                        mtz: MATRIZ
                        faturamento: '******'
                        ie: ''
                        funcionarios: '3'
                        dominio: dataseek.com.br
                        socios:
                          - cpf: '***360628***'
                            cnpj: 2984******00173
                            nm: RICARDO IADELUCA FRASSON
                            cargo: 49-SOCIO-ADMINISTRADOR
                            entrada: '2018-03-05'
                            part: '100'
                            cel1: 1197******
                            cel2: 1194******
                        contatos: []
                    status: OK
                    msgRetorno: Consulta PJ CNPJ
                    response: Liberado
                    contagem: 0
                    code: 1
                    credits: 9
                '2':
                  summary: Exception
                  value:
                    total: -2
                    code: 999
                    credits: -2
                    response: Erro na requisição
          headers: {}
          x-apidog-name: Success
      security:
        - apikey-header-x-api-key: []
      x-apidog-folder: API_COMPLETA
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/826671/apis/api-14372748-run
components:
  schemas: {}
  securitySchemes:
    apikey-header-x-api-key:
      type: apiKey
      in: header
      name: x-api-key
servers: []
security:
  - apikey-header-x-api-key: []

```
