List Documents

GET {{baseUrl}}/companies/:companyId/documents?offset={{offset}}&limit={{limit}}&updatedAfter={{updatedAfter}}

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

Query Parameters

Form ParametertypeMandatoryDescription
offsetnumberRequiredExample = 0
limitnumberRequiredExample = 500
updatedAfterdateOptionalUTC 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

Example - ‘/companies/:companyId/documents?offset=0&limit=500&updatedAfter=2019-10-31T01:30:00Z’

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
updatedAfterstringdate

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"documents":[{"id":1011421,"traceNumber":"1190","asicDocNumber":null,"name":"Form - 484 CHANGE TO COMPANY DETAILS","documentDate":"2019-01-01","status":{"id":926875,"createdBy":"MIGRATION USER","type":"SENT TO CLIENT","typeId":3,"effectiveDate":"2019-01-01"}},{"id":1011452,"traceNumber":"386654","asicDocNumber":null,"name":"Form - 484 CHANGE TO COMPANY DETAILS","documentDate":"2019-09-06","status":{"id":926891,"createdBy":"Bec Smith","type":"DOCUMENT PREPARED","typeId":2,"effectiveDate":"2019-09-06"}}],"offset":0,"limit":2,"total":2}