Upload a file to a case. Optionally posts a system chat message to notify the collection partner.
POST/cases/:caseId/files
Uploads a file and associates it with a case owned by one of the referral partner's clients.
File requirements:
- Maximum file size: 25 MB
- Allowed types: PDF, Excel (.xls, .xlsx), CSV, Text (.txt), Images (.jpg, .jpeg, .png, .gif)
documentType (optional form field, case-insensitive) says what the document is. Omit it when you do not know it; the file is then stored as not specified. Valid values: OriginalInvoice, AccountStatement, Contract, TermsAndConditions, ProofOfDelivery, DemandLetter, Correspondence, PaymentProof, CourtDocument, IdentityDocument, Miscellaneous. Still accepted for existing integrations: DebtorDocuments, CreditorDocuments, PartnerDocuments. Any other value is rejected with 400 and error InvalidDocumentType.
When sendChatNotification is true (default), a system message is posted on the case chat to notify the collection partner that a new file was uploaded.
Request
Responses
- 200
- 400
- 404
- 413
- 415
- 500
File uploaded successfully
Validation error
Case not found
File too large
Unsupported file type
Internal server error