> 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/nfs-e-servico/consultas/municipal.md).

# Municipal

### 🤔 Sobre a consulta de NFS-e (municipal)

A consulta de NFS-e municipal possibilita a pesquisa de notas de serviços dos tipos Prestados, Tomados ou ambos, buscando diretamente na prefeitura. A consulta é realizada de acordo com os [municípios Homologados ao sistema Espião NF-e](/gestao/nfs-e-servico/cidades-homologadas-municipal.md), abrangendo também consultas pela SEFAZ Nacional

{% hint style="info" %}
**NFS-e Nacional**

O Espião NF-e já realiza a consulta dos serviços tomados para todos os municípios aderentes da NFS-e Nacional.

📃 **Maiores informações**

🤔 [Qual a diferença da consulta NFS-e Municipal e Nacional?](/gestao/nfs-e-servico/cidades-homologadas-municipal.md)
{% endhint %}

{% hint style="info" %}
Para acompanhar os municípios que são adicionados na consulta municipal, acesse: [Cidades homologadas](/gestao/nf-e/configuracoes/consulta-automatica.md)
{% endhint %}

{% embed url="<https://espiaonfe.com.br/videos-tutorial/consultar-nfse-municipal-manual.webm>" %}

### 📃 Para consultar siga as etapas a seguir

1. Para realizar uma consulta basta clicar em **Espionar na SEFAZ**.&#x20;

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

2\. Selecione a empresa, em seguida clique em **NFS-e.** Nas configurações de consulta, é possível consultar os municípios que estão homologados ao nosso sistema por meio da **Prefeitura** ou pela **SEFAZ Nacional.**

<div align="left"><figure><img src="/files/6bVt6PPvDlBoqwsfmzF2" alt="" width="563"><figcaption></figcaption></figure></div>

3. Para realizar uma consulta na **Prefeitura**, escolha o tipo de serviço, que pode ser **Tomados ou Prestados** (no caso dos serviços Prestados, é necessário informar a **Inscrição Municipal**). \
   Em seguida, selecione o Período que deseja pesquisar, que deve estar dentro de um intervalo de 30 dias. Após, indique o **Município** que você deseja consultar.

<div align="left"><figure><img src="/files/NUoeLpL943EglZGsyKD6" alt="" width="514"><figcaption></figcaption></figure></div>

4\. Para concluir, é só clicar em **Espionar documentos**.

<div align="left"><figure><img src="/files/KwcvRDRAy9ra72vc2S0Y" alt="" width="563"><figcaption></figcaption></figure></div>

Pronto agora e só aguardar finalizar a consulta, e verificar em [Histórico de NFS-e ](/gestao/nfs-e-servico/historico.md)🤗.


---

# 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/nfs-e-servico/consultas/municipal.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.
