> ## 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 Link do DANFE

> Serviço para obter URL de acesso ao DANFE em PDF de uma nota fiscal.

## Endpoint

```
POST https://api.tiny.com.br/api2/nota.fiscal.obter.link.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                         |

## Descrição

Retorna a URL para download do DANFE (Documento Auxiliar da Nota Fiscal Eletrônica) em formato PDF.

## Exemplo de chamada

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

## Retorno

```json theme={null}
{
  "retorno": {
    "status": "OK",
    "link_danfe": "https://cdn.tiny.com.br/nfe/danfe/654321.pdf"
  }
}
```
