Upload Document for Verification
This endpoint enables partners to securely upload supporting documents to Netevia's cloud storage as part of the account application review process. Documents submitted through this endpoint are made available to the review team to complete verification and reach a final decision on the application. Supported documents include identity verification materials, financial records, and other required application artifacts.
Endpoint
POST /uploadDocumentForVerification
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when an account application requires additional document submission before a final approval decision can be made. This is typically triggered after an initial application is submitted and the review team requests supporting documentation. Partners should call this endpoint once per document, associating each upload with the relevant profile and document upload session.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| profileId | integer (int32) | Yes | The unique identifier of the customer profile associated with the application. |
| documentUploadSessionId | string | No | The document upload session ID used to group related document uploads for a single application review. |
| documentType | string | No | The type of document being uploaded (e.g., "IDENTITY", "FINANCIAL_RECORD", "BUSINESS_LICENSE"). |
| fileName | string | No | The name of the file being uploaded, including extension (e.g., "passport_scan.pdf"). |
| data | string | No | The Base64-encoded content of the document file. |
| contentType | string | No | The MIME type of the document (e.g., "application/pdf", "image/jpeg"). |
| verificatedEntity | string | No | The entity being verified by this document (e.g., the name of a business owner or authorized signer). |
{
"profileId": 1048293,
"documentUploadSessionId": "sess_8f3a21bc-44d1-4e78-b90c-d7e92f6a1234",
"documentType": "IDENTITY",
"fileName": "drivers_license_front.jpg",
"data": "iVBORw0KGgoAAAANSUhEUgAA...",
"contentType": "image/jpeg",
"verificatedEntity": "Jane Smith"
}Response
200 OK
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates whether the document was successfully uploaded. true if the upload completed without errors. |
| errors | array of strings | List of error messages if the upload failed or encountered issues. Empty or null on success. |
{
"success": true,
"errors": null
}Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields or validation error (e.g., invalid profileId, malformed Base64 data) |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to upload documents for the specified profile |
| 404 | Profile or document upload session not found |
| 500 | Internal server error |
Common Mistakes
- Sending raw binary file content instead of Base64-encoded data in the
datafield — always encode the file as a Base64 string before submitting. - Omitting the
contentTypefield or providing an incorrect MIME type, which can cause the document to be stored or rendered incorrectly. - Reusing an expired or closed
documentUploadSessionId— ensure the session is active before uploading additional documents. - Uploading oversized files without checking platform size limits, which may result in a 400 or 500 error.
Related Endpoints
POST /api/auth/v2— Obtain a Bearer token for authenticationPOST /api/auth/refresh— Refresh an existing Bearer token before it expires
Example
curl -X POST https://api.banking.netevia.dev/uploadDocumentForVerification \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"profileId": 1048293,
"documentUploadSessionId": "sess_8f3a21bc-44d1-4e78-b90c-d7e92f6a1234",
"documentType": "IDENTITY",
"fileName": "drivers_license_front.jpg",
"data": "iVBORw0KGgoAAAANSUhEUgAA...",
"contentType": "image/jpeg",
"verificatedEntity": "Jane Smith"
}'