---
title: "Upload a file to a case"
method: POST
path: "/cases/{id}/files"
tags: ["Cases"]
---

# Upload a file to a case

`POST /cases/{id}/files`

Uploads a file and associates it with a case.

File requirements:
- Maximum file size: 25MB
- Allowed file types: PDF (.pdf), Excel (.xls, .xlsx), CSV (.csv), Text (.TXT), Images (.jpg, .jpeg, .png, .gif)

The file will be stored securely and associated with the specified case.

Document types:
- OriginalInvoice (default) - The original invoice document
- DebtorDocuments - Documents provided by the debtor
- CreditorDocuments - Documents provided by the creditor
- PartnerDocuments - Documents provided by collection partners
- DemandLetter - Formal demand letter
- Miscellaneous - Other supporting documents

## Path parameters

- `id` string, uuid, required

## Response `200`

File uploaded successfully

- DebituraWebExternalApiContractsV1FilesCaseFileDto
  - `id` string, uuid
  - `dateCreated` string, date-time
  - `dateUpdated` string, date-time
  - `caseId` string, uuid
  - `entityType` string, nullable
  - `entityId` string, uuid
  - `fileName` string, nullable
  - `url` string, nullable
  - `description` string, nullable
  - `documentType` string, nullable

## Other responses

- `400` — Invalid request
- `404` — Case not found
- `413` — File too large
- `415` — Unsupported file type
- `500` — Server error

---

[API](https://skmtc.net/debitura/apis/debitura-customer-api.md) · [All operations](https://skmtc.net/debitura/apis/debitura-customer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/debitura/debitura-customer-api/versions/46478f2e476f/schema)
