List Documents
/document/{accountId}/documentsReturns a paginated list of account documents filtered by date range and document type. documentCategory can be one of the STATEMENT, DAILY_CONFIRM, TAX_FORM. documentType can have more different values, for example tax documents can have multiple versions of 1099 forms.
Path Parameters
Account identifier
Query Parameters
Start of date range as Unix timestamp in milliseconds
End of date range as Unix timestamp in milliseconds
Page number (1-based)
Number of records per page
Document type filter (e.g. FORM_1099_Q, STATEMENT)
Response
Paginated list of documents
Response status indicator
Current page number
Number of records per page
Total number of matching documents
Total number of pages
Clearing account number
Document date as Unix timestamp in milliseconds
Broad document category
Specific document type
Relative path to the document file
Error message when s is not ok
Response
Unauthorized — missing or invalid authentication
Response Example
{
"s": "ok",
"d": {
"pageNo": 1,
"pageSize": 149,
"totalElement": 149,
"totalPage": 1,
"data": [
{
"clearAccount": "XXXXXXXX",
"documentDate": 1667188800000,
"documentCategory": "STATEMENT",
"documentType": "STATEMENT",
"fullPath": "XXXXXXXX/statements/2022-10-31-STATEMENT.pdf"
}
]
},
"errormsg": null
}