> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/quote/_documentlink.md).

# \_documentLink

Fetches the PDF or Word document version of a Quote. User settings determine which one is returned.

### Parameters

#### id

The ID of the Quote.

### Example

```
FM_api('Quotes_documentLink', ['id' => '1']);
```

### Result

#### On Success

These examples assume that the User has an ID of 123.

For a PDF file:

```
{'type':'pdf','link':'\/userfiles\/123\/quotes\/1.pdf'}
```

For a Word document file:

```
{'type':'word','link':'\/userfiles\/123\/quotes\/1.doc'}
```

#### On Failure

If the User is not logged in:

```
{'error':'no logged in'}
```

If the specified Quote does not exist:

```
{'error':'quote does not exist'}
```

If an internal error occurs:

```
{'error':'error on database insert, please try again'}
```
