Upload Document
Loans
Upload Loan Document
Upload a supporting document for a loan application. One file per request.
POST
Upload Document
Overview
Uploads a single document to the loan application. Send one request per file. Accepted formats are PDF, JPEG, and PNG (max 10 MB). Thefile_url returned in the response is required when calling POST /v1/loans/:applicationId/board-resolution.
Content-Type: multipart/form-data
Request
Method:POSTURL:
/v1/loans/:applicationId/documents
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-carbon-key | Header | string | Yes | API key for authentication. |
applicationId | Path | string | Yes | Application ID. |
Form Fields
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Yes | PDF, JPEG, or PNG. Max 10 MB. |
file_tag | string | Yes | Document category. See enum below. |
file_tag values:
| Value | Description |
|---|---|
ADDITIONAL_DOCS | Miscellaneous supporting documents |
BANK_STATEMENTS | Bank statement documents |
BUSINESS_REG_DOCS | CAC certificate — unlocks the CAC underwriting stage |
CAC_FORM7_DOCS | CAC Form 7 — also unlocks the CAC underwriting stage |
FIN_ACCT_DOCS | Financial account documents |
ID_CARD_DOCS | Identity card documents |
PAYEE_PAYMENTS_DOCS | Payee/PAYE payment receipts |
PENSION_PAYMENTS_DOCS | Pension payment records |
TAX_RETURNS_DOCS | Tax return documents |
ADDRESS_VERIFICATION_DOC | Utility bills or rent receipt for address verification |
BOARD_RESOLUTION_DOC | Board resolution document — use file_url from this response in POST /board-resolution |
Response
200 OK
| Field | Description |
|---|---|
file_url | URL of the uploaded file. Save this — required for POST /board-resolution. |
file_tag | The tag that was submitted |
uploaded | true on success |
Error Responses
| Status | Message | Cause |
|---|---|---|
| 400 | file is required | No file attached |
| 400 | Only PDF and image files (JPEG, PNG) are accepted | Unsupported file type |
| 400 | File size must not exceed 10 MB | File too large |
| 400 | file_tag is required | Missing tag |
| 400 | file_tag must be one of: ... | Invalid tag value |
| 400 | Application not found | Invalid applicationId |
| 422 | Application has no loan ID | Application not yet registered |
Authorizations
Provide your API key in the 'apikey' header.
Headers
Path Parameters
Body
multipart/form-data
Upload a document file.
Response
200 - application/json
Successful response
The response is of type object.