_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'}

Last updated