POST

/Document

When to Use

  • Create document metadata records before uploading file content
  • Register investor statements, tax documents, or distribution notices
  • Record compliance documents and regulatory filings
  • Set up documents with portal visibility controls

Prerequisites

  • Valid documentTypeID configured in system

Considerations

  • Creates document record without file content (use /Document/File for file upload)
  • showInDocumentsInPortal controls investor portal visibility
  • ProductID takes precedence if > 0, otherwise ExternalProductId is used
  • ExternalDocumentId uniqueness is scoped per ProductID
  • Associating with BizEntity triggers permission validation (fails if user lacks access)

Description

Creates a new document metadata record in the 7G system. This establishes the document's properties, type classification, entity associations, and visibility settings without uploading file content. Returns the created document with system-generated documentID.

Required Headers - See Authentication

HeaderValueDescription
Content-Typeapplication/jsonRequest content type
Authorization{accessToken}Bearer token for API access
Version2.0API 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
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.

Example Requests

json
{
  "documentID": null,
  "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
}

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