ЕСОЗ - публічна документація

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

  1. Verify the validity of access token
  2. Check user scopes in order to perform this action - contract_request:read
    1. In case error - generate 401 response

Check employee

Contract_request can be viewed by employee with necessary scopes in equal legal_entity_id.

  1. Extract legal_entity_id (client_id) from token. Take contract_request_id.
  2. Check client_id=contractor_legal_entity_id (contractor_side)
    1. In case of error return 422 Error ('Incorrect contractor_legal_entity_id')

Validations

  1. Validate Contract Request $id exists
    1. In case of error return 404 Error ('Contract Request with this ID doesn't exist')
  2. Validate that contract_request has been signed by  nhs side
    1. Check if status=NHS_SIGNED.
      1. In case of error return 422 error ('The contract hasn't been signed yet')


Response

  1. Get url for contract request

    ParameterSource
    action'GET'
    bucket'CONTRACT_REQUESTS'
    resource_id: CONTRACT_REQUEST_ID
    resource_name: CONTRACT_NAME
    timestamp:TIMESTAMP

ЕСОЗ - публічна документація