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

Terminate Contract Tests

n/n
Description
Inputs
expected result
actual  result

expected result

GraphQL

actual result

GraphQL

DCR1Terminate Contract without scope
  • token
  • id
  • json
403403, Your scope does not allow to access this resource. Missing allowances: contract:terminate403
"extensions": {
"code": "FORBIDDEN",
"exception": {
"missingAllowances": [
"contract:terminate"]}},
"message": "Current client is not allowed to access this resource",
DCR2Terminate Terminated Contract ( in status='TERMINATED')
  • token 
  • id request in status=TERMINATED
409409, Not active contract can't be updated409"code": "CONFLICT"
Not active contract can't be updated
DCR3Terminate Contract with ID doesn't exist
  • token
  • id doesn't exist
404404, not_found404"code": "NOT_FOUND"
Contract not found
DCR4Terminate contract of another MSP (in case scope is allowed)
  • token with other client_id
  • id 
403

403, Legal entity is not allowed to this action by client_id

403
401
"message": "Invalid access token",
"type": "access_denied"
DCR5Terminate contract by NHS
  • NHS token
  • id of new contract_request
  • json

200, status = 'TERMINATED',

event added to event_manager

200, status = 'TERMINATED',

200, status = 'TERMINATED',
event added to event_manager
200, status = 'TERMINATED',

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