# Documents

List all the documents for a given fund. When providing additional criteria, search results are filtered. Allows documents to be uploaded, downloaded or deleted.

## Fund documents

 - [GET /f/{businessCode}/{fundCode}/dms/documents](https://developers.myhub.com.au/products/class/apis/partner/dms/dms/documents/getallfunddocuments.md): Retrieves all the documents related to the specificentity within a business.
The system document date is derived differently for specific Class generated documents, see below for some examples:
|Document Type| Date Logic| Financial year tag|
|----|----|----|
|Actuarial Certificate|30 June of requested year|Yes|
|Audit report|30 June of requested year|Yes|
|Property Valuation|Date of request|Yes|
|Direct Connect Doc feed|Statement period end date|Yes|
|Data feed authority form|Date uploaded|No|
|Client View|Date msg sent|Yes|
|Title search|Date of request|Yes|
|Class docusign envelope|Date envelope completed (last signer)|No|

## Document download link by doc id

 - [GET /f/{businessCode}/{fundCode}/dms/documents/{documentId}/download](https://developers.myhub.com.au/products/class/apis/partner/dms/dms/documents/getdocumentdownloadlinkbydocid.md): Returns a pre-signed link to download the document for a specific fund within the business by providing a documentId in the path of the endpoint.

## Fund document by doc id

 - [GET /f/{businessCode}/{fundCode}/dms/documents/{documentId}](https://developers.myhub.com.au/products/class/apis/partner/dms/dms/documents/getfunddocumentbydocid.md): Retrieves a document from the system by a unique document Id.

## Delete fund document by doc id

 - [DELETE /f/{businessCode}/{fundCode}/dms/documents/{documentId}](https://developers.myhub.com.au/products/class/apis/partner/dms/dms/documents/deletefunddocumentbydocid.md): Deletes a document of a fund within a business by providing the unique document GUID id.

## Search documents by fund

 - [POST /f/{businessCode}/{fundCode}/dms/documents/search](https://developers.myhub.com.au/products/class/apis/partner/dms/dms/documents/searchdocumentsbyfund.md): Returns a list of the documents based on criteria providd in the body request. Returns the filename, created time, created by and associated tags of the document. Leave the criteria values as null to allow broad searches of the documents

