> For the complete documentation index, see [llms.txt](https://ajuda.pdvlegal.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.pdvlegal.com.br/modulo-fiscal/configuracao-do-modulo-fiscal/credenciamento-e-geracao-do-csc-nfc-e-estado-de-sao-paulo.md).

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

Este passo a passo mostra como credenciar o CNPJ para emissão de NFC-e e, em seguida, gerar o Código de Segurança do Contribuinte (CSC) no portal da SEFAZ-SP.

{% 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="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FX7jpbGrGWKhAGWnsUIWM%2Fcsc1.png?alt=media&amp;token=cecba969-6242-4a90-953e-70f6efa73d4c" 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="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FN0sqoo6bOLHjOv2w0MIz%2Fcsc2.png?alt=media&amp;token=6a8bceb0-9479-43a1-951c-b1e4efe417e2" 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="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2F9jPck46mmunSFwIA9bGH%2Fcsc3.png?alt=media&amp;token=d5ab0353-82c5-432c-adbb-673df5edf46c" 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="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FHI38E7D1gqNqo1dg7Suw%2Fcsc4.png?alt=media&amp;token=f73b5c1d-2c71-4ddd-af99-795c0f965425" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FKfYFTWz4ITHOlhj8VUqr%2Fcsc5.png?alt=media&amp;token=3b2736e6-26c4-4ec0-bc86-6acbe3877fad" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FNywQaAhU1Bwt5LhwWrmI%2Fcsc6.png?alt=media&amp;token=51971caa-6af2-4073-98e4-3af0823128fe" 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](https://ajuda.pdvlegal.com.br/modulo-fiscal/configuracao-da-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
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://ajuda.pdvlegal.com.br/modulo-fiscal/configuracao-do-modulo-fiscal/credenciamento-e-geracao-do-csc-nfc-e-estado-de-sao-paulo.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.
