---
title: "Get the pension statement document for the specified id"
method: GET
path: "/statements/{pensionStatementId}/documents"
tags: ["statement"]
---

# Get the pension statement document for the specified id

`GET /statements/{pensionStatementId}/documents`

## Request

- Base URL: `https://pension.common-api.ch`
- URL: `https://pension.common-api.ch/statements/{pensionStatementId}/documents`
- Auth: OAuth 2
  - Authorization code: `https://example.com/oauth/authorize`
  - Token URL: `https://example.com/oauth/token` scopes: `read:basic_pension_data`

Provides the pension statement for the specified id as a PDF document in the insured person's preferred language.
If the pension fund is unable to provide a document for the request id, the error code 400 should be returned.

## Path parameters

- `pensionStatementId` string, required: Technical ID of pension statement used in API calls.

## Response `200`

Binary PDF data of the pension statement.

## Other responses

- `401`: Access token is missing or invalid.
- `404`: Invalid ID / no authorization to access data.
- `500`: Internal Server Error - The server encountered an unexpected condition that prevented it from fulfilling the request.

## Changes

- **2025-02-07** `87835f5abbb4`: 1 breaking, 1 info
  - the response body contentEncoding changed from `binary` to `` for the status `200`
  - added the non-success response with the status `500`
- **2025-01-16** `daf666928ad4`: 1 info
  - the endpoint scheme security `OAuth2` was added to the API

[Operation history](https://skmtc.dev/swissfintechinnovations/apis/pension-2/changes/statements/:pensionStatementId/documents/get.md)

---

[API](https://skmtc.dev/swissfintechinnovations/apis/pension-2.md) - [All operations](https://skmtc.dev/swissfintechinnovations/apis/pension-2/llms.txt) - [OpenAPI document](https://skmtc.dev/swissfintechinnovations/apis/pension-2/revisions/ce7234453575?raw)
