> For the complete documentation index, see [llms.txt](https://ajuda.amgestor.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.amgestor.com.br/fiscal/nf-e/emissao-de-nf-e-a-partir-de-xml-externo.md).

# Emissão de NF-e a partir de XML externo

Algumas operações com importação ou exportação podem exigir notas fiscais complexas que geralmente são geradas por despachantes aduaneiros. Neste caso o AM Gestor faz a importação dessas notas através do arquivo XML. Veja no passo a passo a seguir como realizar esta operação

### 1 - Importação do arquivo XML

Uma vez que esteja com o arquivo enviado por seu despachante ou gerado por outro aplicativo acesse o menu **Fiscal** / **NF-e**

<figure><img src="/files/JqmF57pOaGWCiKU5GsJN" alt=""><figcaption><p>Menu fiscal</p></figcaption></figure>

Em seguida clique no botão **Operações** / **Importar NF-e**

<figure><img src="/files/8tcU34wmOniy7XrVzZS6" alt=""><figcaption><p>Botão operações</p></figcaption></figure>

Selecione o arquivo clicando em **Escolher arquivo**, depois clique em **Importar NF-e**.

### 2 - Ajustes e envio da NF-e para a Sefaz

Após a importação do arquivo será exibida a tela de edição da NF-e onde será possível realizar ajustes e alterar os itens caso seja necessário. O processo de emissão a partir de agora é o mesmo   das notas geradas diretamente pelo AM Gestor.

<figure><img src="/files/PfHHxSyfsCx01MD5FAMa" alt=""><figcaption><p>Tela de alteração de NF-e</p></figcaption></figure>

Em caso de dúvidas consulte nosso suporte.


---

# 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.amgestor.com.br/fiscal/nf-e/emissao-de-nf-e-a-partir-de-xml-externo.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.
