Skip to main content

Commit user session

POST /api/v1/BankStatement/commit-session

Description

This endpoint is used to commit a user session for bank statement verification.

Method: POST

Headers: Accept-Language: optional, allows changing default response message language, type: string

Content-Type:

  • text/plain
  • application/json
  • text/json

ApiKey:

  • No API key required

Request Body:

  • Type: JSON object
  • Schema: $ref to RecommitSessionCommand schema

URL: /api/v1/BankStatement/commit-session

Query Parameters:

  • None

params:

  • Not applicable

Response: The response is a "Success" status with a code of 200.

Schema:

    jsonCopy code{
"sessionId": "example_session_id"
}

Error Codes:

  • 400: Bad Request
  • 404: Resource not found
  • 500: Internal server error

Example:

    bashCopy codePOST /api/v1/BankStatement/commit-session
{
"sessionId": "example_session_id"
}

Response:

    jsonCopy codeHTTP/1.1 200 OK
{
"sessionId": "new_example_session_id"
}

Headers


Accept-Language Change default response message language from English(en). Available languages fr,en Content-Type application/json

Accept text/plain

Body raw(json)

    {
"account": "<string>",
"answer": "<string>",
"otp": "<string>"
}