---
title: "Submits a request to upload the file."
method: POST
path: "/"
tags: ["Files API"]
---

# Submits a request to upload the file.

`POST /`

Submits a request to upload the file.

## Headers

- `Idempotency-Key` string

## Response `2XX`

Success

- FileUploadResponse
  - `file_id` string, required — A unique identifier for file object.
  - `file_name` string, required — A value indicating the name of the file.
  - `created` string, date-time, required — Date that the file was uploaded.
  - `purpose` 'dispute_evidence', required — A value indicating the purpose of the uploaded file.

## Other responses

- `400` — Invalid Input
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `413` — Request entity too large
- `500` — Internal server error

---

[API](https://skmtc.dev/affirm/apis/merchant-transaction-api.md) · [All operations](https://skmtc.dev/affirm/apis/merchant-transaction-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/affirm/merchant-transaction-api/revisions/f2f4252c946f/schema)
