Hey! I have two questions regarding APIs and webhooks.
Currently, I’m working on an integration between my app and Pipeprive. I’m using App market to set up integration between both apps and I’m using tokens provided for developers and https://api-proxy.pipedrive.com/ address to sent API requests.
Everything works fine and I’m able to create webhook that should send events whenever any kind of action occurs on person (so person.*). Now, something unclear is happening for me.
When I create a new person in Pipedrive, I get two events - one is person.added and the other one is person.updated. What’s more weird, they do not always come in this order: added -> updated. Why there are two events sent in the first place? Behaviour like this really makes a mess.
When I add any kind of action to a person, event for person.updated is also sent. Why is that? I see there are sections current / previous and there are differences for example in ‘next_activity_date’, but I wouldn’t expect that adding an activity triggers person.updated. I thought *.activity is reserved for sending such informations. At this moment I need to manually compare previous/current sections to chekc whether there are changes interesting for me and that’s not very handy.