---
title: "Upload a payment file"
method: POST
path: "/pay-file/upload-file"
tags: ["pay-file"]
---

# Upload a payment file

`POST /pay-file/upload-file`

Uploads a payment file for processing. Requires **pay_file:write** scope.

## Response `200`

Successful Pay File Upload Response

- object
  - `data` PayFile
    - `id` string, uuid, required — Unique identifier of the pay file
    - `fileName` string, required — Original name of the uploaded file
    - `fileHash` string, required — Base64 encoded hash of the file content
    - `transactionCount` integer, required — Number of transactions in the file
    - `controlSum` string, required — Total value of all transactions in the file
    - `fileType` 'csv' | 'xml' | 'json', required — Type of the payment file
    - `createdAt` string, date-time, required — Timestamp when the file was uploaded
    - `expiredAt` string, date-time, nullable — Timestamp when the file expires, if applicable
    - `fileData` string, required — Stringified content of the payment file
    - `fileByteSize` integer, required — Size of the file in bytes
    - `providerId` string, required — ID of the destination provider (bank) for the file
  - `meta` object

## Other responses

- `400` — Unsuccessful Response - Bad request - Missing or invalid parameters
- `401` — Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403` — Unsuccessful Response - Forbidden - Invalid scopes

---

[API](https://skmtc.net/moneyhubenterprise/apis/moneyhub-identity-service.md) · [All operations](https://skmtc.net/moneyhubenterprise/apis/moneyhub-identity-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moneyhubenterprise/moneyhub-identity-service/revisions/8841721f7aae/schema)
