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

CRC_(CSI-2483,CR-441)_Approval - resend sms

Specification

user POST /api/patients/{id}/approvals/{id}/actions/resend_sms

Validate request

Authorize

  1. Verify the validity of access token

  2. Check user scope approval:create in order to perform this action

Validate authorize with

If authorize_with exists in approval and is not empty, check:

Logic

  1. Search for approval by patient_id + approval_id

  2. If not found

    1. return error

  3. send SMS to the auth_phone via otp_verification service POST /verifications

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