> For the complete documentation index, see [llms.txt](https://ajuda.espiaonfe.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.espiaonfe.com.br/gestao/nf-e/consultas-na-sefaz/certificado-a1.md).

# Certificado A1

### 🤔 Sobre a consulta de NF-e com certificado A1

No Espião Cloud, é possível fazer essa consulta já confirmando uma nota com a Ciência da Operação para receber o XML de maneira prática.\
Caso prefira que as notas não sejam manifestadas, há a opção de realizar uma consulta "**Apenas Espionar Documentos**". O sistema também oferece uma funcionalidade de consulta retroativa, abrangendo os últimos 90 dias.

{% hint style="warning" %}
**ATENÇÃO**

Antes de prosseguir, saiba como funciona as regras exigidas pela SEFAZ para realizar esse tipo de consulta.

[📘](http://api.espiaonfe.com.br/) [Regras da SEFAZ](/gestao/nf-e/consultas-na-sefaz.md)
{% endhint %}

{% embed url="<https://espiaonfe.com.br/videos-tutorial/consultar-nfe-certificado-a1.webm>" fullWidth="false" %}

### 📃 Para consultar NF-e, siga as etapas a seguir

1. Para realizar uma consulta basta clicar em **Espionar na SEFAZ**.

<div align="left"><figure><img src="/files/SbdUARfr6ZbB1nxV9CGQ" alt=""><figcaption></figcaption></figure></div>

2. Selecione a empresa, em seguida clique em **NF-e**. Nas Opções de consulta, você pode optar por manifestar, escolhendo a opção de **Ciência da Operação** (para obter o XML), ou **Não manifestar**.

<div align="left"><figure><img src="/files/tdLIhk5eQU2AU3q8qVzg" alt=""><figcaption></figcaption></figure></div>

{% hint style="warning" %}
**ATENÇÃO**\
Em caso da existência da manifestação do destinatário (Ciência ou Confirmação da Operação), o XML da NF-e será retornada para o destinatário. \
Caso a nota não contenha manifestação, será retornado apenas o **resumo da NF-e**, com o resumo, o destinatário terá as informações necessárias para realizar a manifestação.
{% endhint %}

3. Para concluir, é só clicar em **Espionar documento**

<div align="left"><figure><img src="/files/eSqIQZdsUBQ1ljrUCggy" alt=""><figcaption></figcaption></figure></div>

4\. Pronto agora e só aguardar finalizar a consulta, e verificar o resultado no [**Histórico de NF-e**](/gestao/nf-e/historico.md).

<div align="left"><figure><img src="/files/YijV61ztiqUU2Brqgdfu" alt="" width="545"><figcaption></figcaption></figure></div>


---

# 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://ajuda.espiaonfe.com.br/gestao/nf-e/consultas-na-sefaz/certificado-a1.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.
