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

Get Contract Request Details tests

n/n
description
inputs
expected_result
actual_result
GCRD1Get NEW contract request details by MSP
  • legal_entity_owner access_token
  • NEW contract_request id
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
GCRD2Get APPROVED contract request details
  • legal_entity_owner access_token
  • APPROVED contract_request id
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
GCRD3Get details of  contract request in PENDING_NHS_SIGN status  
  • legal_entity_owner access_token
  • PENDING_NHS_SIGN contract_request id
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
GCRD4Get details of  contract request in NHS_SIGNED status 
  • legal_entity_owner access_token
  • NHS_SIGNED contract_request id
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 3 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
    • for signed_content
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 3 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
    • for signed_content
GCRD5Get details of  contract request in SIGNED status 
  • legal_entity_owner access_token
  • SIGNED contract_request id
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 3 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
    • for signed_content
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 3 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
    • for signed_content
GCRD6Get details of  contract request in TERMINATED status 
  • legal_entity_owner access_token
  • TERMINATED contract_request id
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute

200,

    • respond contains data according to apiary
    • respond contains urgent with 2 valid  links:
      • for contract_request_additional_document
      • for contract_request_statute
GCRD7Get details of  contract request in  DECLINED status 
  • legal_entity_owner access_token
  • DECLINED contract_request id
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with 2 valid  links:
    • for contract_request_additional_document
    • for contract_request_statute
GCRD8Get  contract request details by NHS 
  • nhs_owner access_token
  • new contract_request id
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with links to the documents
  • 200,
  • respond contains data according to apiary
  • respond contains urgent with links to the documents
GCRD9Get  contract request details without scpoes 
  • doctor access_token
  • new contract_request id
403403
GCRD10Get  contract request details that belongs to other MSP by MSP 
  • other legal_entity_owner  access_token
  • new contract_request id
403403, User is not allowed to perform this action
GCRD11Get  contract request before it was created (only initialized)
  • legal_entity_owner access_token
  • initialized contract request 
404, not found
(should it return urgent with 2 valid  links?)
404, not found
GCRD12Get  contract request which doesn't exist
  • legal_entity_owner access_token
  • invalid ID
404, not found404, not found

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