I’ve recently gotten into Pipedrive and want to automate my website to generate deals to follow up on when someone reachs a certain part of my wordpress website. I used the default instructions for how to create a deal (https://pipedrive.readme.io/docs/creating-a-deal) and pasted the full code into a function which is called on a certain page.
I’ve also set up a webhook to receive requests from that particular Endpoint URL.
When the function is triggered the deal is added to my pipedrive with the information I set it to. Great. However, after this first successful request is finished my pipedrive is FILLED with duplicates of the same deal containing the exact same information. Approximately 1 new deal is created every second and I need to delete the webhook for the deals to stop generating and flooding my pipedrive.
I use the exact same code as in the example above. I’m not sending more than one request from my website since the code only runs once.
What am I doing wrong? I only want one deal to be created, not multiple.