...
...
...
...
...
...
...
...
Table of Contents |
---|
Purpose
Use this end-point to obtain all Employees of the legal entity specified by the legal_entity_id
.
Specification
Page Properties | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Logic
API paragraph not found
Preconditions
API paragraph not found
Global and configurable parameters
No
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | Required | d290f1ee-6c54-4b01-90e6-d701748f0851 |
Filters
API paragraph not found
Dictionaries
API paragraph not found
Request structure
API paragraph not found
Authorize
Verify the validity of access token
Check user scope declaration:reject in order to perform this action
In case error - return 401 error.
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation
Validate transition
Validate transitionю Allowed transitions:
pending_verification → closed
Check is_active = true
If not passed, Return Error 403 message "Invalid transition"
Processing
Update Declaration status
$declaration.status = closed
$declaration.updated_by = user_id
$declaration.updated_at = timestamp
Response structure
See on Apiary
Example:
Expand | ||
---|---|---|
| ||
|
Post-processing processes
API paragraph not found
HTTP status codes
Page Properties | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Backward compatibility
API paragraph not found
This WS is designed to search employees by legal_entity_id.
Verify the validity of access token
Check user scopes in order to perform this action
Search employees by filters in ws url:
required filters
legal_entity_id (MSP id),
optional filters:
status (employees status APPROVED, DISMISSED). By default
used APPROVEDused APPROVED
type (employees type DOCTOR, HR, ACCOUNTANT, PHARMACIST, etc).
ByBy default returned all types of employees.
limit (limit response size - quantity of employee objects). By default returned 50 objects.
starting_after (cursor to fetch next page)
ending_before (cursor to fetch previous page)
If according to filters employees are not found, WS returns empty data array.
WS returns shortened details, which consist of:
employee and party objects
for DOCTOR
and PHARMACISTand PHARMACIST - additional
returns specialitiesreturns specialities information
pagination data - for tecnical info.