...

If person.id is not in request then 

  • search persons in mpi , which have the same tax_id or documents.number or authentication number.(Пошук персон. Версія 3)
    . Then 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.

...