> For the complete documentation index, see [llms.txt](https://manual.gnrx.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.gnrx.com.br/gnrx-gestao-de-acidentes-manual/configuracoes/esocial.md).

# Configurar o eSocial

Prepare o envio da CAT e do afastamento ao eSocial.

**Para que serve:** preparar o GNRx para assinar e enviar ao eSocial a CAT (S-2210) e o afastamento (S-2230).

{% hint style="info" %}
**Quem pode fazer:** Gestor ou Administrador, com a permissão de enviar o certificado digital e configurar a transmissão ao eSocial.
{% endhint %}

## Antes de começar

* Tenha o certificado digital A1 da empresa (e-CNPJ ou e-CPF), em arquivo .pfx ou .p12, e a senha.

## Passo a passo

{% stepper %}
{% step %}

### Envie o certificado

Clique em **Configurações › eSocial**. Clique em **Enviar certificado**, escolha o arquivo e digite a **Senha do certificado**.

<figure><img src="https://78381333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpdiZ9NLqfYTZVo183Wxj%2Fuploads%2Fgit-blob-59e000c777c93ff93b211b37bd36bf78491ac9dc%2Fconfig-esocial-01.png?alt=media" alt="Tela eSocial com os passos Envie o certificado A1, Confira o empregador e Escolha o ambiente e ligue o envio"><figcaption><p>eSocial</p></figcaption></figure>
{% endstep %}

{% step %}

### Confira o empregador

Em **Novo empregador**, informe o nome e a **Raiz do CNPJ** (os 8 primeiros dígitos; o CNPJ completo só vale para órgão público). Escolha o certificado. Salve. Aparece "Empregador salvo.".
{% endstep %}

{% step %}

### Escolha o ambiente e ligue o envio

Comece em **Produção restrita (teste)**: não vale como entrega. Ligue **Transmitir pela GNRx**. Quando estiver tudo certo, use **Passar para produção** e digite PRODUÇÃO para confirmar.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Com o envio desligado, baixe o XML e informe o recibo do envio feito por fora.
{% endhint %}

## Deu errado?

| Mensagem na tela                                                 | O que fazer                                                         |
| ---------------------------------------------------------------- | ------------------------------------------------------------------- |
| "CNPJ inválido."                                                 | Use a raiz do CNPJ (8 dígitos).                                     |
| "Outra raiz: a assinatura exige procuração eletrônica no e-CAC." | Use o certificado da própria empresa ou faça a procuração no e-CAC. |
| "Sem acesso à configuração do eSocial"                           | Peça a permissão de gerenciar certificados do eSocial.              |

## Dúvidas comuns

<details>

<summary>Como tiro o certificado?</summary>

Clique em **Desativar** e confirme em **Desativar e apagar**. O arquivo e a senha são apagados da GNRx.

</details>

<details>

<summary>Tenho mais de um empregador.</summary>

Cadastre cada um em **Novo empregador**. Cada um pode usar o seu ambiente.

</details>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://manual.gnrx.com.br/gnrx-gestao-de-acidentes-manual/configuracoes/esocial.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
