Send Docs Upload Confirmation
The POST /netevia/endUploadDocumentSession endpoint finalizes a document upload session for business customer boarding. It confirms that all required documents have been submitted, triggers processing and storage of those documents, and closes the session to prevent further modifications. This is the final step in the document submission workflow during business onboarding or account opening.
Endpoint
POST /netevia/endUploadDocumentSession
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 after all required documents have been uploaded via the document upload session workflow during business customer boarding. Once called, the session is locked and no further documents can be added or modified. This endpoint should be called once all supporting documents (e.g., business verification, identity documents) have been successfully submitted for the associated profile.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| profileId | integer (int32) | Yes | The unique identifier of the business customer profile associated with the document upload session. |
| documentUploadSessionId | string | Yes | The unique identifier of the document upload session to finalize. |
| verificatedEntity | string | No | The name or identifier of the entity being verified within this document session (e.g., business name or representative name). |
{
"profileId": 100234,
"documentUploadSessionId": "dus_8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
"verificatedEntity": "Acme Corp LLC"
}Response
200 OK
The response is one of two possible objects depending on whether the session completion triggers a financial account opening.
BoardingResponse
| Field | Type | Description |
|---|---|---|
| profileId | integer (int32) | The profile ID associated with this boarding action. |
| errors | string or null | Error message if the operation encountered issues; null on success. |
| success | boolean | Indicates whether the session was successfully finalized. |
| changeLog | array or null | List of changes made during this boarding step; null if no changes recorded. |
changeLog item fields:
| Field | Type | Description |
|---|---|---|
| requestType | integer (int32) | Numeric code representing the type of boarding request performed (enum value 0–28). |
| changes | string or null | Description of the change applied during this boarding step. |
OpenFinancialAccountResponse (extends BoardingResponse — returned when session finalization triggers a financial account opening)
| Field | Type | Description |
|---|---|---|
| profileId | integer (int32) | The profile ID associated with this boarding action. |
| errors | string or null | Error message if the operation encountered issues; null on success. |
| success | boolean | Indicates whether the session was successfully finalized. |
| changeLog | array or null | List of changes made during this boarding step. |
| financialAccountId | string or null | The unique identifier of the newly opened financial account, if account creation was triggered by session finalization. |
{
"profileId": 100234,
"errors": null,
"success": true,
"changeLog": [
{
"requestType": 5,
"changes": "Document upload session finalized for entity Acme Corp LLC"
}
],
"financialAccountId": "fa_9c8b7a6d-5e4f-3c2b-1a0d-9e8f7c6b5a4d"
}Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields, invalid profileId, or malformed documentUploadSessionId |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to finalize the document session for this profile |
| 404 | Profile or document upload session not found |
| 500 | Internal server error during session finalization or document processing |
Common Mistakes
- Calling this endpoint before all required documents have been uploaded — once the session is closed it cannot be reopened.
- Providing a
documentUploadSessionIdthat belongs to a differentprofileId— the session ID and profile ID must correspond to the same boarding workflow. - Re-calling this endpoint on an already-finalized session, which will result in an error since the session is already closed.
- Omitting
documentUploadSessionId— the system requires a valid session identifier to locate and finalize the correct upload session.
Related Endpoints
POST /netevia/startUploadDocumentSession— Initiates a document upload session before documents are submittedPOST /netevia/uploadDocument— Uploads individual documents within an active document upload sessionPOST /netevia/boardBusiness— Initiates the business customer boarding process that precedes document upload
Example
curl -X POST https://api.banking.netevia.dev/netevia/endUploadDocumentSession \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"profileId": 100234,
"documentUploadSessionId": "dus_8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
"verificatedEntity": "Acme Corp LLC"
}'