---
api: 'Open Banking API'
---

# Retrieve all payments of a file payment

Get the state of all individual payments for the given file payment.

:::note
Currently only the `JSON` format is supported.
:::

For more information, see [Tutorials: Create a file payment](/docs/guides/build-banking-apps/tutorials/create-a-file-payment#11-check-the-status-of-all-payments).

## Endpoint

GET `/file-payments/{FilePaymentId}/report-file`

## Parameters

### header parameters

- `x-fapi-financial-id` (string, required)
  The unique ID of the [ASPSP](/docs/guides/build-banking-apps/glossary) that the request is issued to.
  The ID of Revolut is `001580000103UAvAAM`.

- `x-fapi-customer-last-logged-time` (string, optional)
  The date and time when the [PSU](/docs/guides/build-banking-apps/glossary) last logged in with the [TPP](/docs/guides/build-banking-apps/glossary).
  
  All dates in the HTTP headers are represented as [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.1.1) Full Dates.
  For example: <nobr>`Sun, 10 Sep 2017 19:43:31 UTC`</nobr>.

- `x-fapi-customer-ip-address` (string, optional)
  The IP address of the [PSU](/docs/guides/build-banking-apps/glossary) if the PSU is logged in with the [TPP](/docs/guides/build-banking-apps/glossary).

- `x-fapi-interaction-id` (string, optional)
  An [RFC4122](https://datatracker.ietf.org/doc/html/rfc4122) UUID used as a correlation ID.

- `Authorization` (string, required)
  The access token that you've generated.
  For more information, see [Generate an access token](/docs/guides/build-banking-apps/get-started/get-access-token).

- `x-customer-user-agent` (string, optional)
  The user agent that the [PSU](/docs/guides/build-banking-apps/glossary) is using.

### path parameters

- `FilePaymentId` (string, required)
  The ID of the file payment.

## Returns

### 200

File Payments Read

#### Response attributes

- `Payments` (array of object)
    The list of payments included in the file payment.
    Each element in the list corresponds to a single payment and contains the amount, reference, and status of that individual payment.
  - `Payments[].Amount` (object)
      The amount of money paid. Specifies the amount and the currency.
    - `Payments[].Amount.Amount` (string)
        The amount of money.
    - `Payments[].Amount.Currency` (string)
        [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.
  - `Payments[].Reference` (string)
      The unique reference assigned to the payment.
  - `Payments[].Status` (enum)
      The status of the payment.
      Possible enum values:

      - `Created`
      - `Pending`
      - `Completed`
      - `Failed`
      - `Deleted`

## Error responses

| HTTP status code | Description |
| --- | --- |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 405 | Method Not Allowed |
| 406 | Not Acceptable |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
