---
spec: account.yaml
operationId: getDocuments
---

Returns 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.

## Response Examples

```json 200
{
  "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
}
```

```json error
{
  "s": "error",
  "errormsg": "Unauthorized"
}
```
