of course.
- add person:
https://different.pipedrive.com/api/v1/persons?api_token=API-TOKEN
{“name”:“New Customer 098621528”,“phone”:“098621528”}
response:
{“success”:true,“data”:{“id”:240105,“company_id”:7397860,“owner_id”:{“id”:11428246,“name”:"\u05d3\u05e0\u05d9\u05d0\u05dc \u05de",“email”:"danieldifferent6681@gmail.com",“has_pic”:0,“pic_hash”:null,“active_flag”:true,“value”:11428246},“org_id”:null,“name”:“New Customer 098621528”,“first_name”:“New Customer”,“last_name”:“098621528”,“open_deals_count”:0,“related_open_deals_count”:0,“closed_deals_count”:0,“related_closed_deals_count”:0,“participant_open_deals_count”:0,“participant_closed_deals_count”:0,“email_messages_count”:0,“activities_count”:0,“done_activities_count”:0,“undone_activities_count”:0,“files_count”:0,“notes_count”:0,“followers_count”:0,“won_deals_count”:0,“related_won_deals_count”:0,“lost_deals_count”:0,“related_lost_deals_count”:0,“active_flag”:true,“phone”:[{“label”:"",“value”:“098621528”,“primary”:true}],“email”:[{“value”:"",“primary”:true}],“first_char”:“n”,“update_time”:“2021-01-28 14:26:35”,“add_time”:“2021-01-28 14:26:35",“visible_to”:“3”,“picture_id”:null,“next_activity_date”:null,“next_activity_time”:null,“next_activity_id”:null,“last_activity_id”:null,“last_activity_date”:null,“last_incoming_mail_time”:null,“last_outgoing_mail_time”:null,“label”:null,“customer_type”:null,“28aaaab4a1b37b6146a3a083aca16dd2fac38ef0”:null,“85bd12a1534f3c6d86d03806cef282f86ba47edc”:null,“f0287d196b7c84cabbfacc5b25163338a6691965”:null,“e10135f4d3cc2f3722fa3a605191404d3383cece”:null,“a743b728a9844c7ae7ff32d26543c217c990a12f”:null,“ff4abb8889da1bfe8836ddd8d34dccefbd9a34a0”:null,“d897c1abeda781a58020792c9d86191b29858681”:null,“2346b4d4cb58b0c884baaaaf8b6679247f2fc22e”:null,“8fb317b4bce62f60a3c4bfc4d43ce3fdd91f7cea”:null,“44fb3f73af0955255995c0a99b9d22857b5b1016”:null,“d1ddf2eb8d479a13718ae21f4a3d5518f1459dee”:null,“d11fddb18cc8284b74401861818fd64551b816f3”:null,“0d806d117b0a81ba86cc6f410ab73cac85bce9c1”:null,“54987ff4836a3323a9693b9dc968c3dba06b7439”:null,“b607b473d8633ad7c6dee0f302697490ac98a4c5”:null,“f7f6467151039cc41c0b01efeb388d2ec8a62bfd”:null,“216984f3bca8dfae4fa706d7d2a879b7175d3840”:null,“b692296cef5eabca7fa6672bd33b4cd93d59b400”:null,“49246820f1ded8f17ed6f9040abcc09f11aacedf”:null,“62d7ce401160ea25825f0ecd45ff9756b0501ae5”:null,“2de9be0942f5469fdcc40126a9702635c474aa63”:null,“ec20f1cb2edabaa0da0701134d677ef17c14fa43”:null,“493ee77fd915fe4081069b86c2eefbf0cfe95f10”:null,“52a3d36f18de407bed53302ae876a98246de28a0”:null,“b29edc29920c0b4d9757baf842585d2f4b17b564”:null,“88ff3927d098d1d48f0f41dac1ea341ffa376dff”:null,“f940bc425fab97ac5c4a417c9535ad4ea202acca”:null,“ee9b01b42273ccc78034db693ee726aaf2303eb3”:null,“2a4ca57b07f8b6a36c62ed9866abc5c810d53cc5”:null,“af1737c10441cd36f1b176cb8da37510705af663”:null,“7b320f7536dd97c811586634511933a88f093124”:null,“e100d8c1127ef617585c702ef4f167d6bf0406b4”:null,“6ab806a68a9473db3ae327885d8151662ec5f770”:null,“5ed137728dc9fe91ab41c445244bae87dc3db48b”:null,“59aa47f5caa288766ef0f4d6b0bab8f29a5316c7”:null,“cb306d8b9a612aa1625120a4d9a596ae1a644871”:null,“9f4113dea0009799a94a6ae6eb7de4b2aeebe5d1”:null,“c9d8353c64cca882a509f4d9ef4a059bd3f336a5”:null,“6a5d1a63ad7a4caab88b4ebecd03bd66890c184e”:null,“6a6c571c1d5fa4965d6be5f1c021f0b0329a4557”:null,“ffdff3cbc18f697af746d6ea0a35c2dc685efe9f”:null,“580a0cab87293aba615889208072ad3609309706”:null,“2b20955198b305a844924f56d7eeb76a3dac3c80”:null,“6501c5133cc9183a8f63f5a8484ae4d251a33bb0”:null,“d105efb1bd3352368fcf49110abe542619ad1a06”:null,“0a00de8963af169d1dd17b2a692fcdc0196c010e”:null,“a5f73293c30f2c8a7b12d84c32960cdf18701940”:null,“eeeef17a900acab79728b9a00a1b5ed921962d0f”:null,“cf9c29069b0b50635cccbc1b6c78b3bec27b0485”:null,“6c09746bd0ad444b1c29a985c99df1a3d3707947”:null,“4cbdfb333ea042ae3092d02019a8cea2c1010b11”:null,“4d46296efcc40f709c5265ebcdb898f23234663a”:null,“3c05c4a544f896aed8c1c1003c97fa6ca7c5a98c”:null,“dcd59754a7c538ac6269db03b440ed8fcd1be976”:null,“db7d933fe40d28c5890c356eceeb91140a893c9b”:null,“aff16442024429d39b25f84938967c1ea9ee01c7”:null,“112f744bb2f18b7dd1035d7c0bb18178bae3f9b5”:null,“1b6f394dd493884dd80d5f4c44ac1a5272f9eb51”:null,“ada6dfb718ffd6f41bbc20d950404f7954c62c6b”:null,“d684c4c275b83441498bceae63912bba98b1c203”:null,“e48702c3fa6bee9db1a8346c0812a560fe77f22c”:null,“efbe8ab65c7dbc6aedfc95c33b8c82aea88ae834”:null,“4c49a7b8ce193342395979d54954bb636b761aa6”:null,“26b6a19ade17100ded07edc9b5f6de8c9f8dc1f8”:null,“c5b0003fa6fa89439d311ab833dad1353198a2ac”:null,“2f8a1af5f9b60d143bada4bcbbe6119bf163b71d”:null,“43ae32a8d89f5a1f43becf585d62b2fa9bff29b5”:null,“21f56f256179b6386922d6249625d87090176afb”:null,“org_name”:null,“cc_email”:"different@pipedrivemail.com”,“owner_name”:"\u05d3\u05e0\u05d9\u05d0\u05dc \u05de"},“related_objects”:{“user”:{“11428246”:{“id”:11428246,“name”:"\u05d3\u05e0\u05d9\u05d0\u05dc \u05de",“email”:"danieldifferent6681@gmail.com",“has_pic”:0,“pic_hash”:null,“active_flag”:true}}}}
- first search- with full phone number:
https://different.pipedrive.com/api/v1/persons/search?api_token=API-TOKEN&term=098621528&fields=phone&start=0&limit=100
response
{“success”:true,“data”:{“items”:[]},“additional_data”:{“pagination”:{“start”:0,“limit”:100,“more_items_in_collection”:false}}}
- second search- with last 4 characters:
https://different.pipedrive.com/api/v1/persons/search?api_token=API-TOKEN&term=1528&fields=phone&start=0&limit=100
response:
{“success”:true,“data”:{“items”:[{“result_score”:0.1997,“item”:{“id”:239961,“type”:“person”,“name”:"…",“phones”:[“0508381528”],“emails”:[],“visible_to”:3,“owner”:{“id”:11498510},“organization”:null,“custom_fields”:[“yad2”,“1413”],“notes”:[]}},{“result_score”:0.1997,“item”:{“id”:227714,“type”:“person”,“name”:“רן”,“phones”:[“0525111528”],“emails”:[],“visible_to”:3,“owner”:{“id”:11651670},“organization”:null,“custom_fields”:[“yad2”,“1413”,“1498”],“notes”:[]}},{“result_score”:0.049925,“item”:{“id”:227546,“type”:“person”,“name”:“ליד ×˜×œ×¤×•× ×™ - יש להזין שה,“phones”:[“0507152825”],“emails”:[],“visible_to”:3,“owner”:{“id”:11498510},“organization”:null,“custom_fields”:[“1499”],“notes”:[]}}]},“additional_data”:{“pagination”:{“start”:0,“limit”:100,“more_items_in_collection”:false}}}
–
the add person request was at 2021-01-28 14:26:35
the first search request was at 2021-01-28 14:26:36
only on the third search at 2021-01-28 14:26:38 the person was found
this is the third search same as the first one
https://different.pipedrive.com/api/v1/persons/search?api_token=API-TOKEN&term=098621528&fields=phone&start=0&limit=100