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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Validate request

    1. Validate request using JSON schema
      1. In case validation failed - generate 422 error

Authorize user

    1. Verify the validity of access token
    2. Check user scopes in order to perform this action
      1. In case error - generate 401 response

Generate verification code

    1. Generate verification code using basic random (default) function or time-based algorithm
    2. Verification code format - digits only ^[1-9][0-9]*$
    3. Verification code length - configuration parameter (default = 4)
    4. Verification code expiration period - configuration parameter (default = 15 min)
    5. Set expiration period using configuration parameter

Deactivate active verification code

    1. Search active verification code(s) for this phone number
    2. If found - change status to INACTIVE

Save verification code

    1. Save generated verification code to DB

Send SMS

    1. Send SMS via API
    2. Message template - configuration parameter
  • No labels