Table of Contents | ||||
---|---|---|---|---|
|
Purpose
This method is designed to verify that provided in the declaration request phone number is valid and is in service. Initialization phase
Specification
Link | |
Resource | /api/verifications |
Scope | API paragraph not found |
Components | |
Using Dictionaries | API paragraph not found |
Using Microservices | API paragraph not found |
Protocol type | REST |
Request type | POST |
Sync/Async | Sync |
Logic
The user enters the phone number into the system.
...
id = хххх |
---|
Generate verification code
Generate verification code using basic random (default) function or time-based algorithm
Verification code format - digits only ^[1-9][0-9]*$
Verification code length - configuration parameter (default = 4)
Verification code expiration period - configuration parameter (default = 15 min)
Set expiration period using configuration parameter
Deactivate active verification code
Search active verification code(s) for this phone number
If found - change status to INACTIVE
Save verification code
Save generated verification code to DB
Preconditions
API paragraph not found
Global and configuration parameters
API paragraph not found
Input parameters
Attributes
Attribute | Values | Type | Description | Example |
---|---|---|---|---|
phone_number (required) | String | +380508887700 |
Filters
None
Request structure
Example
Expand | ||
---|---|---|
| ||
|
Authorize
Request to process the request using a token in the headers
Headers
Example
Expand | ||
---|---|---|
| ||
|
Validate request (JSON schema)
API paragraph not found
Validation data request
API paragraph not found
Processing
API paragraph not found
Response structure
Example:
Expand | ||
---|---|---|
| ||
|
Post-processing processes
API paragraph not found
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 |
|
Backward compatibility
API paragraph not found