ЕСОЗ - публічна документація
Get Partially Signed Contract Reqeust by ID
This WS allows to get link following which it's possible to download the pkcs7 format file with contract which was signed by NHS side. Legal entity can see only its' own contract request.
Input parameters
- Authorization token
- Contract request id
Authorize user
- Verify the validity of access token
- Check user scopes in order to perform this action - contract_request:read
- In case error - generate 401 response
Check employee
Contract_request can be viewed by employee with necessary scopes in equal legal_entity_id.
- Extract legal_entity_id (client_id) from token. Take contract_request_id.
- Check client_id=contractor_legal_entity_id (contractor_side)
- In case of error return 422 Error ('Incorrect contractor_legal_entity_id')
Validations
- Validate Contract Request $id exists
- In case of error return 404 Error ('Contract Request with this ID doesn't exist')
- Validate that contract_request has been signed by nhs side
- Check if status=NHS_SIGNED.
- In case of error return 422 error ('The contract hasn't been signed yet')
- Check if status=NHS_SIGNED.
Response
Get url for contract request
Parameter Source action 'GET' bucket 'CONTRACT_REQUESTS' resource_id : CONTRACT_REQUEST_ID resource_name : CONTRACT_NAME timestamp :TIMESTAMP
ЕСОЗ - публічна документація