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

Sign Up Step1 tests

STEPn/nDescriptionTest case InputsExpected resultStep by Step ScriptActual ResultActual FE Result
Email
verification
EV1input new correct emailemail: correct200, email sentinput new correct email200, email sent200, email sent
EV2input empty emailemail: ""422, "can't be blank"input empty email422, "can't be blank"422, "can't be blank"
EV3input email which already existsemail: correct, exists409
"User with this email already exists"
input email which already exists409
"User with this email already exists"
Користувач з цим email вже зареєстрований
EV4input incorrect emailemail: "123" 422, "has invalid format"input incorrect email422, "has invalid format"Невірний формат

input few emailsemail: "email1",
email: "email2"
200, link sent to first emailinput few emails200, link sent to first email--
Validate EmailVE1follow the link from emailjwt token200, response with new jwt tokenAuthorize with jwt token200, response with new jwt token
VE2follow eхpired link from emailjwt token - expired409 - link has expiredAuthorize with expired jwt token401, JWT expired401
VE3follow the link from email after the user with this email was registeredjwt token409 Error 'User with this email already exists'Authorize with already used jwt token409, User with this email already exists

Ви вже скористались цим посиланням.

Будь ласка, увійдіть.

VE4input incorrect tokenincorrect jwt token401, access denied
401, access deniedНекоректне посилання. У доступі відмовлено.
Get users by tax_id and emailGU1find user by new tax_id and new_email

jwt token - with new email received in response

tax_id - new

200
  • Validate email
  • Input DS (extract tax_id)
200200
GU2find user by existing email and different tax_idjwt token with existing email 
tax_id - valid, not matching
409, User with such email already exists
  • Validate email
  • Input DS (extract tax_id)

409, User with such email already exists

409

Користувач з такою email-адресою вже існує.

GU3find user by existing tax_id and different emailjwt token - existing email, not matching
tax_id - existing
409, User with such tax_id already exists
  • Validate email
  • Input DS (extract tax_id)
409, User with this tax_id already exists

409

Користувач з таким ідентифікаційним номером вже існує.

GU4find user by existing and matching email and tax_id

jwt token - existing and matching email

tax_id - existing and matching tax_id

409, User with this tax_id already exists
  • Validate email
  • Input DS (extract tax_id)
409, User with this tax_id already exists

409

message: "User with this email already exists"

Користувач з такою email-адресою вже існує.

GU5expired jwt tokenjwt token - expired401 - link has expired
  • Validate email
  • Input DS (extract tax_id)
401, JWT expired401
GU6incorrect jwt token (token from email)incorrect jwt token401, access denied
  • Validate email
  • Input DS (extract tax_id)
401, access denied

401

Некоректне посилання. У доступі відмовлено.

GU7invalid DSinvalid DS409, invalid DS 
  • Validate email
  • Input DS (extract tax_id)

Сертифікат не чинний за строком дії або закінчився строк дії відповідного особистого ключа

Send OTPSO1send top

type = 'SMS' (correct)

factor = '+380' (valid phone number)

jwt token - valid

200, sms sent
200, sms sent
SO2input wrong typetype = 'EMAIL'422, $type
422, $type
SO3input wrong phone number 
"factor": "2242252",
"type": "SMS"
422, factor
422, $.factor
SO3input incorrect jwt tokenjwt from email link401, access denied
401, access denied

Некоректне посилання. У доступі відмовлено.

Будь ласка, перевірте правильність посилання.

SO4input empty phone numberfactor=''422, factor
422, factor
SO5input incorrect smssms incorrect422

no error for incorrect sms(ex. ----)

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