Завершить legacy-вход
POST
/api/v1/auth/login/complete
const url = 'https://core.example.com/api/v1/auth/login/complete';const options = { method: 'POST', headers: {'session-token': '<session-token>', 'Content-Type': 'application/json'}, body: '{"time_to_live":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://core.example.com/api/v1/auth/login/complete \ --header 'Content-Type: application/json' \ --header 'session-token: <session-token>' \ --data '{ "time_to_live": 1 }'Banking-клиент передаёт желаемый TTL сессии.
Authorizations
Заголовок раздела «Authorizations»Request Body
Заголовок раздела «Request Body»Media typeapplication/json
object
time_to_live
TTL в часах
integer
Examplegenerated
{ "time_to_live": 1}Responses
Заголовок раздела « Responses »Вход завершён
Media typeapplication/json
object
success
required
boolean
status
required
integer
message
string
expiration
string
session
string
Example
{ "success": true, "status": 200, "message": "session confirmed"}Ошибка авторизации, валидации или бизнес-правила
Media typeapplication/json
object
success
required
boolean
status
required
integer
errors
required
One of:
Array<object>
object
code
string
kind
string
expiration
string
session
string
key
additional properties
any
object
key
additional properties
any
string
key
additional properties
any
Example
{ "success": false, "status": 403}