---
title: "Get Statement file by StatementId for an AccountId"
method: GET
path: "/accounts/{AccountId}/statements/{StatementId}/file"
tags: ["Statements"]
---

# Get Statement file by StatementId for an AccountId

`GET /accounts/{AccountId}/statements/{StatementId}/file`

## Request

- Base URL: `/open-banking/v4.0/aisp` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/open-banking/v4.0/aisp/accounts/{AccountId}/statements/{StatementId}/file`
- Auth: OAuth 2
  - Authorization code: `https://authserver.example/authorization`
  - Token URL: `https://authserver.example/token` scopes: `accounts`

Enables an AISP to retrieve a non-json representation of a specific statement.

## Path parameters

- `StatementId` string, required
- `AccountId` string, required

## Headers

- `x-fapi-auth-date` string
- `x-fapi-customer-ip-address` string
- `x-fapi-interaction-id` string
- `Authorization` string, required
- `x-customer-user-agent` string
- `x-client-id` string

## Response `200`

Statements Read

ASPSP will specify all available content types

- File

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method Not Allowed
- `406`: Not Acceptable
- `429`: Too Many Requests
- `500`: Internal Server Error

## Changes

- **2025-11-20** `a96a922860eb`: 1 info
  - added the new optional `header` request parameter `x-client-id`

[Operation history](https://skmtc.dev/openbankinguk/apis/account-and-transaction-api-specification/changes/accounts/:AccountId/statements/:StatementId/file/get.md)

---

[API](https://skmtc.dev/openbankinguk/apis/account-and-transaction-api-specification.md) - [All operations](https://skmtc.dev/openbankinguk/apis/account-and-transaction-api-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/openbankinguk/apis/account-and-transaction-api-specification/revisions/705bbf8a4a65?raw)
