Skip to main content

Upload Documents

Attach files to a case using POST /cases/{id}/files. Documents strengthen collection efforts by providing evidence of the debt.

Upload a File

Send a multipart form request with the file and optional metadata:

curl -X POST https://customer-api.debitura.com/cases/{caseId}/files \
-H "XApiKey: YOUR_API_KEY" \
-F "File=@invoice.pdf" \
-F "DocumentType=OriginalInvoice" \
-F "Description=Invoice #1234 dated 2025-01-15"

Request Fields

FieldRequiredDescription
FileYesThe file to upload (binary)
DocumentTypeNoCategory for the document (defaults to OriginalInvoice)
DescriptionNoHuman-readable label

Document Types

ValueUse for
OriginalInvoiceThe invoice being collected (default)
CreditorDocumentsContracts, agreements, delivery confirmations
DebtorDocumentsDocuments provided by the debtor
DemandLetterFormal payment demands you've sent
MiscellaneousOther supporting evidence

Response

{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"caseId": "d3051d9e-8b4a-4c5f-9e1a-123456789abc",
"fileName": "invoice.pdf",
"documentType": "OriginalInvoice",
"description": "Invoice #1234 dated 2025-01-15",
"url": "https://admino.blob.core.windows.net/...",
"dateCreated": "2025-06-25T10:30:00Z"
}

The url is a signed download link valid for approximately 1 hour. To get a fresh URL, call the list endpoint again.

List Files

Retrieve all files attached to a case:

curl https://customer-api.debitura.com/cases/{caseId}/files \
-H "XApiKey: YOUR_API_KEY"

Returns an array of file objects with the same structure as the upload response.

Constraints

ConstraintLimit
Maximum file size25 MB
Allowed formats.pdf, .doc, .docx, .xls, .xlsx, .jpg, .jpeg, .png, .txt, .zip, .csv, .eml

Error Handling

StatusCause
400File missing, empty, or failed validation
404Case not found or belongs to another account
413File exceeds 25 MB limit
415File type not in allowed list

For error response formats, see Error Handling.