---
title: "Retrieve a previously uploaded payment file"
method: GET
path: "/pay-file/{id}"
tags: ["pay-file"]
---

# Retrieve a previously uploaded payment file

`GET /pay-file/{id}`

## Request

- Base URL: `https://identity.moneyhub.co.uk`
- URL: `https://identity.moneyhub.co.uk/pay-file/{id}`
- Auth: API key in header `Authorization`

Retrieves a previously uploaded payment file by ID. Requires **pay_file:read** scope.

## Path parameters

- `id` string, uuid, required

## Response `200`

Successful Pay File Retrieval. The response is a multipart/form-data containing the following parts: id, fileHash, transactionCount, controlSum, createdAt, expiredAt, fileByteSize, providerId, and file.

## Other responses

- `401`: Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403`: Unsuccessful Response - Forbidden - Invalid scopes
- `404`: Unsuccessful Response - Pay file not found

## Changes

- **2026-11-03** `e004d9ee1fdb`: 6 warning
  - removed the optional property `id` from the response with the `401` status
  - removed the optional property `id` from the response with the `403` status
  - removed the optional property `id` from the response with the `404` status
  - removed the optional property `userId` from the response with the `401` status
  - …2 more

[Operation history](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-identity-service/changes/pay-file/:id/get.md)

---

[API](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-identity-service.md) - [All operations](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-identity-service/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-identity-service/revisions/e004d9ee1fdb?raw)
