> For the complete documentation index, see [llms.txt](https://docs.cnpj.ws/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cnpj.ws/modelos-de-dados/estabelecimentos.md).

# Estabelecimentos

Abaixo o modelo de dados referente aos estabelecimentos:

### Estabelecimento

| Campo                       | Tipo | Descrição                     |
| --------------------------- | :--: | ----------------------------- |
| cnpj                        |   S  | CNPJ                          |
| cnpj\_raiz                  |   S  | Raiz do CNPJ                  |
| cnpj\_ordem                 |   S  | Orderm do CNPJ                |
| cnpj\_digito\_verificador   |   S  | Dígito verificador do CNPJ    |
| tipo                        |   S  | Tipo (Filial ou Matriz)       |
| nome\_fantasia              |   S  | Nome fantasia                 |
| situacao\_cadastral         |   S  | Situação cadastral            |
| data\_situacao\_cadastral   |   D  | Data da situação cadastral    |
| data\_inicio\_atividade     |   D  | Data de início das atividades |
| nome\_cidade\_exterior      |   S  | Nome da Cidade (Exterior)     |
| pais                        |   O  | Pais                          |
| estado                      |   O  | Estado                        |
| cidade                      |   O  | Cidade                        |
| cep                         |   S  | CEP                           |
| tipo\_logradouro            |   S  | Tipo de Logradouro            |
| logradouro                  |   S  | Logradouro                    |
| numero                      |   S  | Número                        |
| complemento                 |   S  | Complemento                   |
| bairro                      |   S  | Bairro                        |
| ddd1                        |   S  | DDD Telefone 1                |
| telefone1                   |   S  | Telefone 1                    |
| ddd2                        |   S  | DDD Telefone 2                |
| telefone2                   |   S  | Telefone 2                    |
| ddd\_fax                    |   S  | DDD Fax                       |
| fax                         |   S  | Fax                           |
| email                       |   S  | E-mail                        |
| situacao\_especial          |   S  | Situação especial             |
| data\_situacao\_especial    |   D  | Data da situação especial     |
| atividade\_principal        |   O  | Atividade principal           |
| atividades\_secundarias     |   A  | Atividades secundárias        |
| motivo\_situacao\_cadastral |   O  | Motivo situação cadastral     |
| inscricoes\_estaduais       |   A  | Inscrições Estaduais          |
| inscricoes\_suframa\*       |   A  | Inscrições Suframa            |
| regimes\_tributarios\*      |   A  | Regimes Tributários           |

{% hint style="warning" %}
**Atenção** As incrições no Suframa e os Regimes Tributários estão disponíveis apenas na API Comercial
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cnpj.ws/modelos-de-dados/estabelecimentos.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
