Table of Contents |
---|
Purpose
This method allows to get all existing in legal entity contracts with GB_CBP type through the MIS
Specification
is designed to obtain list of contracts with filters. This method return shorten information about contract, in order to see all information try to use 'get contract details'
Specification
Page Properties | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
|
Logic
Only authenticated and authorized user can use this service
Deleted records won't be shown in response
Filters
Filter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | id of contract request |
| |
contractor_legal_entity_id | String | id of legal entity which created contract request |
| |
edrpou | String | contractor legal entity EDRPOU |
| |
contractor_owner_id | String | id of legal entity owner |
| |
nhs_signer_id | String | id of nhs employee |
| |
status |
| Enum | current contract status |
|
is_suspended | Boolean | wether contract is active |
| |
date_from_start_date | String |
| ||
date_to_start_date | String |
| ||
date_from_end_date | String |
| ||
date_to_end_date | String |
| ||
contract_number | String | human readable number of contract request |
| |
medical_program_id | String | id of a program that is a subject of a contract |
| |
page | Number | Page number |
| |
page_size | Number | A limit on the number of objects to be returned, between 1 and 300. Default: 50 |
|
Request structure
See Apiary
Authorize
Verify the validity of api-key
Return 401 in case validation fails
Verify the validity of token
Return 401 in case validation fails
Check scopes in order to perform this action (scope = 'contract:read')
Return 403 in case invalid scope(s)
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation
API paragraph not found
Processing
Search contracts in DB according to requested query parameters
If contractor_legal_entity_id from contract according to requested parameters not equal client_id from token, show 404 Not found instead
Exclude deleted records (is_active = false)
Response structure
See Apiary
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
| ||
|
Post-processing processes
API paragraph not found
HTTP status codes
Page Properties | ||||||
---|---|---|---|---|---|---|
| ||||||
|