Service specification
Даний метод розроблений для перевірки чи веріфікований номер телефону в системі та потребує скоуп otp:read.
Користувач передає номер телефону в параметрах запиту до системи та отримує у відповідь
...
Якщо введений номер веріфікований в системі
...
Table of Contents | ||||
---|---|---|---|---|
|
Purpose
This method is designed to check if the phone number is verified in the system
Specification
Link | |
Resource | /api/verifications/{{phone_number}} |
Scope | otp:read |
Components | SMS |
Using Dictionaries | API paragraph not found |
Using Microservices | API paragraph not found |
Protocol type | REST |
Request type | GET |
Sync/Async | Sync |
Public/Private/Internal | Public |
Logic
Search requested phone number in verified_phones table
Return 200 (VERIFIED) if phone number found
Return 422 (UNVERIFIED) if phone number not found
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
phone_number | String | Required | +380508887700 |
Filters
None
Request structure
API paragraph not found
Authorize
Request to process the request using a token in the headers
Headers
Example
Expand | ||
---|---|---|
| ||
|
Validation data request
API paragraph not found
Processing
API paragraph not found
Response structure
If the entered number is verified in the system
Example:
Expand | ||
---|---|---|
| ||
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Якщо введений номер неверіфікований в системі
...
|
If the entered number is not verified in the system
Example:
Expand | ||
---|---|---|
| ||
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Search requested phone number in verified_phones table
...
|
Post-processing processes
API paragraph not found
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 | phone number found |
...
422 |
...
phone number is not found |
Backward compatibility
API paragraph not found