Purpose
This method is used when you need to re-send SMS to a person who approve creating or updating data about himself.
This method can be used to send to the same number that was sent after the Create/Update person request.
Specification
Logic
API paragraph not found
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | Required | eeebb86d-5cba-43c9-885b-6482ecaf826b |
Filters
No
Dictionaries
API paragraph not found
Request structure
API paragraph not found
Authorize
Verify the validity of access token
Check user scope person_request:write in order to perform this action.
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
api-key:uXhEczJ56adsfh3Ri9SUkc4en
Request data validation
Validate auth method. Person must has auth_method.type = OTP or THIRD_PERSON( where third_person.auth_method.type = OTP)
Check that person_request.status = NEW.
Processing
Generate verification code
Invoke Initialize OTP to generate one time password and send it to client number.
cURL example
curl -X POST \ http://localhost:4000/verifications \ -H 'content-type: application/json' \ -d '{ "phone_number": "+380958697084" }'
Response structure
Example:
Post-processing processes
API paragraph not found
HTTP status codes
Backward compatibility
API paragraph not found