Adding Leads to Pipe Drive
This article goes over how you can add a lead to Pipe Drive - we would advise speaking directly to Pipe Drive if you need further assistance, however, this article should help you get started with the basics.
Step 1 - LeadByte Remote System Type
For your LeadByte delivery you should use "Direct Post" method with the "HTTP JSON" CRM/Type.
Step 2 - URL
You will need to use:
https://api.pipedrive.com/v1/leads?api_token=INSERTReplace INSERT with your API Token
Step 3 - Request Body
The request is JSON. When adding a Lead to PipeDrive you need to declare the field key. So, for example, instead of posting to "firstname", you need to post to the firstname key i.e. 9306c72cc3213d52814a797d456283b9a760cd92. See video below on how to get this (its cumbersome!)
{
"title": "New Lead [leadid]",
"9306c72cc3213d52814a797d456283b9a760cd92": "[firstname]",
"0f1bf6de893ac1233b428ab45f245d2861f63f97": "[lastname]",
"1dd0391fbafad42fd233b9b6a8c61247dbc2b4b4": "[email]",
"aca709517df0c6337d4b4c976570f4bb82d1c3af": "[phone1]",
"owner_id": 1,
"person_id": 1,
"organization_id": 1
}The above is an example of posting First Name, Last Name, Email and Phone. They are all custom fields set up against the Add Lead function in Pipe Drive.
"person_id" - If you send a static value (like the example above) you will be updating a lead if that id is found within PD. If want to post a fresh lead, just remove "person_id" row from the body.
Step 4 - Response Handling
For LeadByte to determine that a lead has been successfully added, we rely on a success response. We recommend using the status code 201.
How to create a custom field in Pipe Drive and get the "Field Key"
In this example, it shows you how to add the custom field "Postcode" and then copy the Key for that field. You will need this key to post the data to the field from LeadByte to Pipe Drive.
Comments