Table of Contents | ||||
---|---|---|---|---|
|
...
Page Properties | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
Expand | |||||
---|---|---|---|---|---|
| |||||
|
...
Set fields in persons table (mpi database):
verification_status = $.verification_status
verification_comment = $.verification_comment, in case of NOT_VERIFIED. And verification_comment = NULL, in case of VERIFIED
verification_reason = MANUAL
updated_by = user_id (from token)
updated_at = current timestamp
Create StateChangeEvent in event manager with verification_status
Add record to audit_log with changed fields
Request structure
...
API paragraph not found
Authorize
Verify the validity of access token
in case of error - return 401 (“Invalid access token”) in case of validation fails
Verify that token is not expired
in case of error - return 401 (“Invalid access token”)
Check user scopes in order to perform this action (scope = 'person:verify')
return 403 (“Your scope does not allow to access this resource. Missing allowances: person:verify”) in case of invalid scope(s)
Headers
API paragraph not found
Request data validation
Validate legal entity
...
if verification_status = NOT_VERIFIED
in case of error - return 409 ('verification status comment is required')
Processing
API paragraph not found
Response structure
See on ApiaryAPI paragraph not found
Post-processing processes
API paragraph not found
HTTP status codes
API paragraph not found