POST
/Document
Usage Notes
When
- Create document metadata before file upload
- Register document with type classification and entity association
Requirements
- DocumentTypeID required (query Common/Lookup)
- Entity association (BizEntityID, OrganisationID, or ProductID)
Notes
- Document metadata created first, file uploaded separately
- ExternalDocumentId provides integration identifier
Description
Creates document metadata with type classification and entity association. Upload file separately via POST /Document/File.
Required Headers - See Authentication
| Header | Value | Description |
|---|---|---|
| Content-Type | application/json | Request content type |
| Authorization | {accessToken} | Bearer token for API access |
| Version | 2.0 | API version identifier |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
documentID |
integer | Optional |
The document identifier. Must be null for new documents - will be auto-generated by the system. |
externalDocumentId |
string | Optional |
Your external system identifier for the document. Uniqueness scoped to ProductID - same ID allowed across different products. |
documentTypeID |
integer | The document type classification ID. Determines document handling and retention policies. | |
name |
string | Optional |
Human-readable document name displayed in portals and document lists. |
code |
string | Optional |
Short code for internal reference and document identification. |
description |
string | Optional |
Detailed description of the document's content and purpose. |
password |
string | Optional |
Optional password for document protection. Required to access password-protected documents. |
ordinal |
integer | Optional |
Sort order for document display in lists. Lower numbers appear first. |
ProductID |
integer | The product identifier for document association and security validation. If ProductID > 0, it takes precedence over ExternalProductId. | |
externalProductId |
string | Your external product identifier. Used for product association when ProductID is not provided or equals 0. | |
BizEntityID |
integer | Associates the document with a specific business entity for investor-specific documents. Triggers permission validation. | |
externalBizEntityId |
string | Your external business entity identifier for entity association. Alternative to BizEntityID. Triggers permission validation. | |
OrganisationID |
integer | Associates the document with a specific organisation. Alternative to BizEntity association for corporate-level documents (e.g., trust deeds, constitutional documents, corporate actions). | |
externalOrganisationId |
string | Your external organisation identifier. Used for organisation association when OrganisationID is not provided or equals 0. Alternative to BizEntity for corporate-level document management. | |
showInDocumentsInPortal |
boolean | Controls whether the document appears in client-facing investor portals. | |
isPublic |
boolean | Determines if the document can be accessed without authentication. |
documentID
The document identifier. Must be null for new documents - will be auto-generated by the system.
externalDocumentId
Your external system identifier for the document. Uniqueness scoped to ProductID - same ID allowed across different products.
documentTypeID
The document type classification ID. Determines document handling and retention policies.
name
Human-readable document name displayed in portals and document lists.
code
Short code for internal reference and document identification.
description
Detailed description of the document's content and purpose.
password
Optional password for document protection. Required to access password-protected documents.
ordinal
Sort order for document display in lists. Lower numbers appear first.
ProductID
The product identifier for document association and security validation. If ProductID > 0, it takes precedence over ExternalProductId.
externalProductId
Your external product identifier. Used for product association when ProductID is not provided or equals 0.
BizEntityID
Associates the document with a specific business entity for investor-specific documents. Triggers permission validation.
externalBizEntityId
Your external business entity identifier for entity association. Alternative to BizEntityID. Triggers permission validation.
OrganisationID
Associates the document with a specific organisation. Alternative to BizEntity association for corporate-level documents (e.g., trust deeds, constitutional documents, corporate actions).
externalOrganisationId
Your external organisation identifier. Used for organisation association when OrganisationID is not provided or equals 0. Alternative to BizEntity for corporate-level document management.
showInDocumentsInPortal
Controls whether the document appears in client-facing investor portals.
isPublic
Determines if the document can be accessed without authentication.
Example Requests
bash
# Create investment statement document
curl -X POST 'https://api.7g.com.au/Document' \
-H 'Authorization: {accessToken}' \
-H 'Version: 2.0' \
-H 'Content-Type: application/json' \
-d '{
"externalDocumentId": "STMT_2024_Q1_001",
"documentTypeID": 1,
"name": "Quarterly Investment Statement - Q1 2024",
"code": "Q1_STMT_2024",
"description": "Comprehensive quarterly investment statement",
"ordinal": 1,
"productID": 100,
"externalProductId": "GROWTH_FUND_AU",
"bizEntityID": 67890,
"externalBizEntityId": "CLIENT_ENT_001",
"showInDocumentsInPortal": true,
"isPublic": false
}'Response Examples
json
{
"result": true,
"message": "Document created successfully",
"data": {
"documentID": 12347,
"externalDocumentId": "STMT_2024_Q1_001",
"documentTypeID": 1,
"name": "Quarterly Investment Statement - Q1 2024",
"code": "Q1_STMT_2024",
"description": "Comprehensive quarterly investment statement showing portfolio performance, transactions, and distribution details for Q1 2024",
"password": null,
"ordinal": 1,
"productID": 100,
"externalProductId": "GROWTH_FUND_AU",
"bizEntityID": 67890,
"externalBizEntityId": "CLIENT_ENT_001",
"organisationID": null,
"externalOrganisationId": null,
"showInDocumentsInPortal": true,
"isPublic": false
}
}