> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.erp.olist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Obter XML da Nota Fiscal

> Serviço para obter o arquivo XML de uma nota fiscal autorizada.

## Endpoint

```
POST https://api.tiny.com.br/api2/nota.fiscal.obter.xml.php
```

## Parâmetros

| Parâmetro | Tipo   | Ocorrência  | Descrição                                 |
| --------- | ------ | ----------- | ----------------------------------------- |
| token     | string | obrigatório | Chave gerada para identificar sua empresa |
| formato   | string | obrigatório | Formato do retorno (json)                 |
| id        | int    | obrigatório | ID da nota fiscal                         |

## Retorno

O retorno inclui o conteúdo completo do XML da NF-e em formato base64.

## Exemplo de chamada

```bash theme={null}
curl -X POST https://api.tiny.com.br/api2/nota.fiscal.obter.xml.php \
  -d "token=SEU_TOKEN&formato=json&id=654321"
```
