Table of Contents | ||||
---|---|---|---|---|
|
...
Specification
Page Properties | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
patiend_id | String | mpi_id. Required | aff00bf6-68bf-4b49-b66d-f031d48922b3 | |
id | String | approval_id. Required | aff00bf6-68bf-4b49-b66d-f031d48922b3 |
Logic
If authentication_method_current.type = OTP
system checks verification code via otp_verification service PATCH /verifications/:phone_number/actions/complete
if verification code matches - change status to active
If not - return error
If authentication_method_current.type = offline
change status to active
Request structure
See on Apiary
...
Verify the validity of access token
Check user scope approval:create in order to perform this action
Headers
Наприклад:
Content-Type:application/json
Authorization:Bearer d368a4b0-4a0e-457a-b267-32359fa6288f
Logic
...
If authentication_method_current.type = OTP
system checks verification code via otp_verification service PATCH /verifications/:phone_number/actions/complete
if verification code matches - change status to active
If not - return error
If authentication_method_current.type = offline
...
HTTP status codes
Page Properties | ||||||
---|---|---|---|---|---|---|
|