Table of Contents | ||||
---|---|---|---|---|
|
...
Request to process the request using a token in the headers
Headers
Наприклад:
Content-Type:application/json
Authorization:Bearer: {{access_token}}
api-key: {{secret}}
...
Get current service request status
Check that status in ('active')
in case of error - return 409 error ('Service request in status %status% cannot be recalled')
Validate
...
recall reason
Validate $.status_reason is a value from eHealth/service_request_recall_reasons dictionary
in case of error - return 422 ("value is not allowed in enum")
Validate content
Signed content must match with service request in DB in order to be recalled
...