---
title: "Get Documents"
method: GET
path: "/za/pb/v1/accounts/{accountId}/documents"
tags: ["Documents"]
---

# Get Documents

`GET /za/pb/v1/accounts/{accountId}/documents`

## Request

- Base URL: `https://openapi.investec.com`
- URL: `https://openapi.investec.com/za/pb/v1/accounts/{accountId}/documents`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://openapi.investec.com/identity/v2/oauth2/token` scopes: `documents.statements`, `documents.taxcertificates`

List all the documents available.

## Path parameters

- `accountId` string, required

## Query parameters

- `fromDate` string, required
- `toDate` string, required

## Response `200`

Resource has been retrieved

- object
  - `data` object[], required: Set of elements used to define the documents.
    - `documentType` string: The type of documents available.
    - `documentDate` string: The date of the documents.
  - `meta` object, required: Meta Data relevant to the payload
    - `totalPages` integer
  - `links` object, required: Links relevant to the payload
    - `self` string, required

## Other responses

- `400`: Bad Request - The requested operation will not be carried out
- `401`: Unauthorized - The requested operation was refused access
- `403`: Forbidden - Not permitted to make this request
- `429`: Too Many Requests - To many requests in quick succession, Retry the request.
- `500`: Internal Server Error - The requested operation failed to execute

---

[API](https://skmtc.dev/rijnhardtkotze/apis/sa-pb-account-information.md) - [All operations](https://skmtc.dev/rijnhardtkotze/apis/sa-pb-account-information/llms.txt) - [OpenAPI document](https://skmtc.dev/rijnhardtkotze/apis/sa-pb-account-information/revisions/1ab926851d29?raw)
