GET
/Document/File
Usage Notes
When
- Download file content from document
- Retrieve stored document for viewing or distribution
Requirements
- DocumentID or ExternalDocumentId
Notes
- Returns file content with appropriate content type
- Respects document access controls
Description
Downloads file content for a document record.
Required Headers - See Authentication
| Header | Value | Description |
|---|---|---|
| Authorization | {accessToken} | Bearer token for API access |
| Version | 2.0 | API version identifier |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ProductID |
integer | The product identifier for document scope validation. Ensures document belongs to specified product before allowing file download. | |
ExternalProductId |
string | Your external product identifier. Alternative to ProductID for product-scoped document access. | |
DocumentID |
integer | The native 7G identifier for the document. Use this to download file content for a specific document. | |
ExternalDocumentId |
string | Your external system identifier for the document. Alternative to DocumentID for file download. |
ProductID
The product identifier for document scope validation. Ensures document belongs to specified product before allowing file download.
ExternalProductId
Your external product identifier. Alternative to ProductID for product-scoped document access.
DocumentID
The native 7G identifier for the document. Use this to download file content for a specific document.
ExternalDocumentId
Your external system identifier for the document. Alternative to DocumentID for file download.
Example Requests
bash
# Download document file by native IDs
curl -X GET 'https://api.7g.com.au/Document/File?ProductID=100&DocumentID=12345' \
-H 'Authorization: {accessToken}' \
-H 'Version: 2.0' \
--output downloaded_document.pdf
# Download document file by external IDs
curl -X GET 'https://api.7g.com.au/Document/File?ExternalProductId=GROWTH_FUND_AU&ExternalDocumentId=INV-STMT-2024-001' \
-H 'Authorization: {accessToken}' \
-H 'Version: 2.0' \
--output investor_statement.pdfResponse Examples
json
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="Investor_Statement_Q4_2024.pdf"
[Binary file content streamed to client]