> For the complete documentation index, see [llms.txt](https://atualizacoes.consumer.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atualizacoes.consumer.com.br/pdv/anteriores/15.5.1/15.5.1.3/melhoria-no-retorno-de-notas-rejeitadas-por-timeout-evitando-falha-de-registro-no-pdv.md).

# Melhoria no retorno de notas rejeitadas por timeout evitando falha de registro no PDV

Durante a emissão de notas fiscais pelo Consumer, em situações de instabilidade na Sefaz, as notas eram enviadas, porém, não armazenadas no banco de dados.\
Quando a Sefaz autorizava essas notas, o retorno não era recebido pelo Consumer, ocasionando:

* Inconsistência nos dados internos.

Foi implementado um novo controle de exceções na emissão fiscal via componente, garantindo que:

* Toda exceção gerada durante a emissão fiscal resulte em um registro de nota rejeitada.
* Esse controle permite aproveitar a mesma numeração da nota, evitando gaps e inconsistências no sequencial.
* O processo de autorização com a Sefaz torna-se mais seguro e rastreável, reduzindo falhas em cenários de instabilidade.

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


---

# 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://atualizacoes.consumer.com.br/pdv/anteriores/15.5.1/15.5.1.3/melhoria-no-retorno-de-notas-rejeitadas-por-timeout-evitando-falha-de-registro-no-pdv.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.
