---
updatedAt: 2026-05-28T21:20:25.000Z
agentTools:
  projectIndex: https://docs.notagateway.com.br/llms.txt
---

# Baixar o PDF ou XML de uma nota fiscal

Na API do gateway você pode facilmente baixar o PDF ou XML de uma nota fiscal específica usando o ID gerado pelo gateway ou ID Externo.

> 📘 Importante
>
> URL base: **<Anchor label="https://api.notagateway.com.br/v1" target="_blank" href="https://api.notagateway.com.br/v1"><https://api.notagateway.com.br/v1></Anchor>**

> 🚧 Atenção
>
> Atente-se aos parâmetros a serem informados nas url:\
> **empresaId:** Id da sua empresa no gateway\
> **nfeId**: Id da nota gerada pelo gateway\
> **idExterno:** Id fornecido pelo seu sistema

## PDF

**Pelo id do gateway**\ <Anchor label="https://api.notagateway.com.br/v1/empresas/\{empresaId}/nfes/\{nfeId}/pdf" target="_blank" href="https://api.notagateway.com.br/v1/empresas/{empresaId}/nfes/{nfeId}/pdf"><https://api.notagateway.com.br/v1/empresas/\\{empresaId}/nfes/\\{nfeId}/pdf></Anchor>

**Pelo id externo**\ <Anchor label="https://api.notagateway.com.br/v1/empresas/\{empresaId}/nfes/porIdExterno/\{idExterno}/pdf" target="_blank" href="https://api.notagateway.com.br/v1/empresas/{empresaId}/nfes/porIdExterno/{idExterno}/pdf"><https://api.notagateway.com.br/v1/empresas/\\{empresaId}/nfes/porIdExterno/\\{idExterno}/pdf></Anchor>

## XML

**Pelo id do gateway**\ <Anchor label="https://api.notagateway.com.br/v1/empresas/\{empresaId}/nfes/\{nfeId}/xml" target="_blank" href="https://api.notagateway.com.br/v1/empresas/{empresaId}/nfes/{nfeId}/xml"><https://api.notagateway.com.br/v1/empresas/\\{empresaId}/nfes/\\{nfeId}/xml></Anchor>

**Pelo id externo**\ <Anchor label="https://api.notagateway.com.br/v1/empresas/\{empresaId}/nfes/porIdExterno/\{idExterno}/xml" target="_blank" href="https://api.notagateway.com.br/v1/empresas/{empresaId}/nfes/porIdExterno/{idExterno}/xml"><https://api.notagateway.com.br/v1/empresas/\\{empresaId}/nfes/porIdExterno/\\{idExterno}/xml></Anchor>