---
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

---

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