List Documents (Trust)

GET {{baseUrl}}/cas/trusts/:trustId/documents?offset={{offset}}&limit={{limit}}&updatedAfter={{updatedAfter}}

Return a list of documents for a Trust. Document IDs returned can be used for subsequent calls.

Query Parameters

Form ParametertypeMandatoryDescription
offsetnumberRequiredExample = 0
limitnumberRequiredExample = 500
updatedAfterOptionalUTC date in ISO format: yyyy-MM-dd’T’HH:mm:ss. Example: 2000-10-31T01:30:00Z or 2000-10-31T01:30:00

updatedAfter parameter - using this new parameter, the documents list will return just the documents that were updated after the date and time specified. The date must be a UTC date in ISO format: yyyy-MM-dd’T’HH:mm:ss. Example: 2000-10-31T01:30:00Z or 2000-10-31T01:30:00

Response Body

Returns a list of objects as described below

KeyDatatypeMandatoryConstraints
idNumberYes
traceNumberNumberYes
nameStringYes
documentDateStringYesISO 8601 date https://en.wikipedia.org/wiki/ISO_8601
asicDocNumberStringNo
lastUpdatedTimestampDateYesDate and time document was updated

status objects

KeyDatatypeMandatoryConstraints
idNumberYes
createdByStringYesThe name of user who created the document
typeStringYesDescriptive name of Status
typeIdNumberYesStatus Unique Identifier
effectiveDateStringYesFormat will be ISO 8601 date. Equal to status change date

Additional keys

KeyDatatypeMandatoryConstraints
offsetNumberYes
limitNumberYes
totalNumberYes

Request Params

KeyDatatypeRequiredDescription
offsetstringnumber
limitstringnumber
updatedAfterstring
``null

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"documents":[{"documentDate":"2020-07-03","id":1075468,"lastUpdatedTimestamp":"2020-07-03T04:31:46.108264","name":"Trustee Minutes or Resolutions","status":{"createdBy":"Jeevan Tokhi","effectiveDate":"2020-07-03","id":969219,"type":"DOCUMENT PREPARED","typeId":2},"traceNumber":"103"}],"limit":500,"offset":0,"total":1}