# Credenciamento e Geração do CSC-NFC-e (Estado de São Paulo)

{% hint style="danger" %}

#### Pré-requisito: <a href="#prrequisitos" id="prrequisitos"></a>

* Certificado digital **A1** instalado na máquina.
  {% endhint %}

### 1. Credenciar a Empresa para NFC-e <a href="#id-1credenciaraempresaparanfce" id="id-1credenciaraempresaparanfce"></a>

{% stepper %}
{% step %}
Abra o site da NFC-e SP:

<https://www.nfce.fazenda.sp.gov.br/NFCePortal/>
{% endstep %}

{% step %}
Clique em **Credenciamento › Com validade jurídica**.

<figure><img src="/files/GhVZvcY6drhwtDFalT4a" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
O navegador exibirá a lista de certificados instalados.

* Selecione o **certificado do CNPJ** a ser credenciado.
* Clique em **OK**.

<figure><img src="/files/QNB4t4YLEHiyKvmmrVnT" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Caso escolha o certificado errado, feche totalmente o navegador e reabra para selecionar novamente.
{% endhint %}
{% endstep %}

{% step %}
Na tela seguinte, marque o **CNPJ** desejado (círculo à direita).
{% endstep %}

{% step %}
Preencha:

* **Nome completo do responsável**;
* **E-mail**;
* **Telefone**.
  {% endstep %}

{% step %}
Clique em **Solicitar Credenciamento**.

<figure><img src="/files/MsQabxCwRyFK96d81WLw" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
O portal exibirá mensagem de sucesso e o CNPJ passará ao status *Em Homologação* ou *Credenciado* (dependendo da situação fiscal).
{% endhint %}
{% endstep %}
{% endstepper %}

***

### 2. Gerar o CSC (Código de Segurança) <a href="#id-2gerarocsccdigodesegurana" id="id-2gerarocsccdigodesegurana"></a>

{% stepper %}
{% step %}
Com o certificado ainda instalado, acesse novamente o portal:

<http://www.nfce.fazenda.sp.gov.br/NFCePortal/>
{% endstep %}

{% step %}
Clique em **Gerenciar Cód. Segurança › Com validade jurídica**.

<figure><img src="/files/a11jH4nfyD06PUSnmr8h" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Selecione o **mesmo certificado digital** do passo anterior e clique em **OK**.

<figure><img src="/files/q5sMZEmgNBKQY8FZG2fh" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Clique em **Novo Cód. Segurança**.

<figure><img src="/files/czLSG4ACkWcnle8RwllD" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
O sistema mostrará um **Token** (CSC) e o **ID** correspondente.
{% endhint %}
{% endstep %}

{% step %}
Copie e guarde o **ID CSC** e o **Token** em local seguro.

* Eles serão usados na Retaguarda para configurar a [emissão da NFC-e](/modulo-fiscal/como-configurar-a-emissao-de-nfc-e.md).
  {% endstep %}
  {% endstepper %}

{% hint style="success" %}
Pronto! A empresa está credenciada e já possui um CSC válido para emitir NFC-e no PDV Legal.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://ajuda.pdvlegal.com.br/modulo-fiscal/credenciamento-e-geracao-do-csc-nfc-e-estado-de-sao-paulo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
