Upload a file to a case
Changed onUploads a file and attaches it to a case. Mirrors the file upload action available in the Partner portal.
Access: Collection partners only. Managing partners are rejected.
Status gate: Allowed on all non-Merged statuses, including Closed. Only Merged cases are rejected.
File requirements:
- Maximum size: 25 MB
- Allowed extensions: .pdf .doc .docx .xls .xlsx .jpg .jpeg .png .txt .zip .csv .eml
DocumentType (optional): Omit it when the type is unknown; the file is stored as not specified and returned as null. Values are case-insensitive: OriginalInvoice, AccountStatement, Contract, TermsAndConditions, ProofOfDelivery, DemandLetter, Correspondence, PaymentProof, CourtDocument, IdentityDocument, Miscellaneous. Legacy names remain accepted for existing integrations: DebtorDocuments, CreditorDocuments, PartnerDocuments. Unknown names, numeric values, and AutoGeneratedSummary are rejected with 400 and error InvalidDocumentType.
The file is immediately visible to the creditor.
Request
- Base URLhttps://collectionpartner-api.debitura.com
- URLhttps://collectionpartner-api.debitura.com/cases/{id}/files
- AuthAPI key in header XApiKey
Path parameters
Headers
Optional non-empty, non-whitespace idempotency key (max 255 characters) for safely retrying this request. If a previous request used the same key with an identical body, the original terminal response is replayed verbatim. Reusing the key with a different body returns 422 with businessErrors[0].type: "IdempotencyConflict". Field-level 400 validation errors are not stored, so you may fix the request and retry with the same key.
Request body multipart/form-data
Response
File uploaded successfully
Changes
- breaking
for the
headerrequest parameterIdempotency-Key, the minLength was increased from0to1
- breaking
- info
added the new optional
headerrequest parameterIdempotency-Key
- info