GET

/Document/File

When to Use

  • Download file content associated with document records
  • Enable members to download statements, tax documents, and notices
  • Retrieve KYC/AML documentation and identity verification files
  • Access generated statements for printing or email distribution

Prerequisites

  • Document record must exist with uploaded file content

Considerations

  • Every download creates permanent audit records
  • Files are served with cryptographic integrity checks
  • Large files may require streaming implementations to prevent timeouts
  • System enforces role-based permissions on document access

Description

Downloads the binary file content associated with a document record. Returns the actual file data as a stream with appropriate content headers for PDF statements, compliance documents, forms, and other stored files.

Required Headers - See Authentication

HeaderValueDescription
Authorization{accessToken}Bearer token for API access
Version2.0API 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
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.

Example Requests

bash
# Download document by ID
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 by external ID
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.pdf

Response 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]