Purpose
This service is designed to verify legal_entity by NHS. The company is created with nhs_verified is false
Specification
Logic
Verify the validity of access token
Check user scopes in order to perform this action
Check legal_entity.status='active'
Update legal_entity parameter nhs_verified on 'true', clear nhs_unverified_at
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | Required | b075f148-7f93-4fc2-b2ec-2d81b19a9b7b |
Request structure
API paragraph not found
Authorize
Verify the validity of access token
Check user scopes in order to perform this action
Headers
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation
Check legal_entity.status='active'
Update legal_entity parameter nhs_verified on 'true', clear nhs_unverified_at
Processing
Available transition: false → true
If legal_entity was previously verified, return Error 409
In successful case, return details by legal_entity
Response structure
Example:
Post-processing processes
API paragraph not found