---
title: "Upload a File for a ConsentId"
method: POST
path: "/file-payment-consents/{ConsentId}/file"
tags: ["File Payment Consents"]
---

# Upload a File for a ConsentId

`POST /file-payment-consents/{ConsentId}/file`

Enables a PISP to upload a file of payments to the ASPSP for PSU to authenticate.

## Path parameters

- `ConsentId` string, required

## Headers

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

## Request body

- File

## Response `200`

File Payment Consents Created

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `405` — Method Not Allowed
- `406` — Not Acceptable
- `409` — Conflict
- `415` — Unsupported Media Type
- `422` — Duplicate Idempotency key
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2026-02-19** `3bce3f3a4836` — 2 info
  - api tag `File Payment Consents` added
  - api tag `File Payments` removed
- **2025-11-20** `5dbf59c53db8` — 1 info
  - added the new optional `header` request parameter `x-client-id`
- **2025-11-18** `1c8f74b55cd4` — 1 info
  - added the non-success response with the status `422`

[Change history](https://skmtc.dev/openbankinguk/apis/payment-initiation-api/changes/file-payment-consents/:ConsentId/file/post.md)

---

[API](https://skmtc.dev/openbankinguk/apis/payment-initiation-api.md) · [All operations](https://skmtc.dev/openbankinguk/apis/payment-initiation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openbankinguk/payment-initiation-api/revisions/01d3ec5eb703/schema)
