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

Terminate declaration by person id

n/n
description
inputs
expected result GraphQlactual result GraphQl
TD1Terminate declaration without scopes
  • token
missing allowance declaration:terminate
TD2Terminate declaration  by doctor 
  • doctor token
403401
TD3Terminate declaration  by ID doesn't exist
  • token
  • invalid id 
Could not decode ID valueCould not decode ID value
TD4Terminate declaration  by invalid ID 
  • token
  • {
    "input": {
    "id": "RGVjbGFyYXRpb246MGU0ZjE3ZTktMTgyZi00NTk0LTlhODMtM2E1ZTZmNTRhMDg2Cg=="
    }
    }
not_found

BAD_REQUES

TD5Terminate inactive declaration 
  • token
  • status - inactive
declaration status is not activeCONFLICT
Declaration is not active
TD6Terminate active declaration 
  • token
  • valid person id
200, status = `terminated`, reason = `manual_person`

200, status = `terminated`, reason = `manual_person`

TD7Terminate active declaration with reason more than 255 char
  • token
  • valid person id
200, status = `terminated`, reason = `manual_person`500

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