...

  • search persons in mpi (Пошук персон. Версія 3)
      . Then we
      • If we found person by tax_id and authentication_number
        • return error 409, "such person exists. Update this person."
      • In case authentication_method = OFFLINE, or don't found authentication_number, or we found authentication_number but tax_id don't match - We create pairs of new person with people from cluster and send to the model.
        • in case deduplication model gave score <  PERSON_ONLINE_DEDUPLICATION_MATCH_SCORE, create new person
        • else return error 409, "such person exists. Update this person.

    Validate phone number limit

    ...