Purpose
This WS is designed to obtain a declaration list.
Specification
Key points
This is a REST method used by MIS.
Only authenticated and authorized employee with appropriate scope can get declarations list.
Method returns shortened declaration details, to obtain full information - use Get Declaration by ID method.
Logic
Filter declarations by search params
Render found declarations with shortened details according to specification.
Use this method to obtain a list of Declarations for an employee_id
and legal_entity_id
. If you want to reduce the amount of data that is going trough your application, use status
filter and show only requests that Doctor is interested in the current UI section.
Filters
Name | Type | Value | Example |
---|---|---|---|
employee_id | String |
|
|
legal_entity_id | String | MSP ID |
|
declaration_number | String | unique human redable number of declaration |
|
status | String | Default: |
|
reason | String | filter declaration by reason |
|
page | Number | Page number | 2 |
page_size | Number | A limit on the number of objects to be returned, between 1 and 300. Default: 50 | 50 |
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 = 'declaration:read')
return 403 (“Your scope does not allow to access this resource. Missing allowances: declaration:read”) in case of invalid scope(s)
Request data validation
API paragraph not found
Processing
API paragraph not found
Response structure
See on Apiary
Example:
Post-processing processes
API paragraph not found