ЕСОЗ - публічна документація
(GraphQL) Review Legal Entity by NHS
Purpose
This WS is designed to allow NHS employee with assigned appropriate scopes to review new Legal Entities or if the Legal Entity data or its license was changes.
Key points
This is a graphQl query method used in Administration panel only.
Only authenticated and authorized NHS employee with appropriate scope can verify Legal Entity.
Specification
Authorize
Verify the validity of access token
Return
401
in case validation fails
Verify that token is not expired
in case of error - return (
401
, 'Invalid access token')
Check user scopes
legal_entity:nhs_verify
in order to search personIn case of invalid scope, return: "
You don't have permission to access this resource
“
Validate request
Check Legal entity status (
active
orsuspended
)in case of error - return (
"Legal entity cannot be reviewed due to its status"
)
Check LE was reviewed status
if
nhs_reviewed
=true
return (
"LegalEntity has been already reviewed."
)
Processing
Update LE nhs_reviewed
Update LE (PRM)
set
nhs_reviewed
= 'true'
Return LE details include new status
nhs_reviewed
ЕСОЗ - публічна документація