Transferring Data From LeadByte To Go High Level

Follow

This article shows you what you need to do to transfer your lead data from LeadByte to a GHL Marketing Campaign and Adding a Contact.

Marketing Campaign
For this to work you will need to have A Marketing Campaign in GHL

Example
ghl_marketing_campaign.png

With every Marketing Campaign a Campaign ID is generated.  This is required in the JSON Delivery POST from LeadByte.  When you create a contact in GHL to start a Marketing Campaign you not only need to pass over the personal data but also declare for what Marketing Campaign ID.

LeadByte Delivery Set Up

The delivery in LeadByte is a JSON POST request. 
The Request URL is: https://api.gohighlevel.com/campaign/start

Example JSON Body

{
"campaign_id": "ENTER_YOUR_ID",
"first_name": "[firstname]",
"last_name": "[lastname]",
"phone": "[phone1]",
"extrafield": "[ssid]"
}

In the above example we have created the custom field called "extrafield".  The JSON is how you would pass in a value to that field.

Screenshot_2021-03-10_at_13.30.07.png

Response
The success response for Go High Level can be handled using a Status 200 OK
Image_2020-10-12_at_3.26.31_pm.png


Adding a Contact

1. When adding a contact, you need to use a different Request URL: https://rest.gohighlevel.com/v1/contacts/

2. Your JSON is different if you are using custom fields (example below) and your field names are different

JSON Body example

{
"firstName": "[firstname]",
"lastName": "[lastname]",
"phone": "[phone1]",
"customField": {
"extrafield": "ExtraTest"
}
}

3. You need to use Header Authorization.  Example below in LeadByte delivery.  You get the Bearer token in GHL under Settings > Company.

Screenshot_2021-03-10_at_13.48.36.png


When booking an appointment into a calendar via api

1. The request URL is different: https://rest.gohighlevel.com/v1/appointments/

2. JSON format is largely similar with a few extra fields as below: 

{
"firstName": "[firstname]",
"lastName": "[lastname]",
"phone": "[phone1]",
"selectedSlot": "2021-08-21T15:00:00-05:00",
"selectedTimezone": "US/Central",
"calendarId": "[CALENDAR ID FOR THE SPECIFIC CALENDAR HERE]",
"customField": {
"extrafield": "ExtraTest"
}
}

3. Points to note:
- The selected slot MUST be in the format as specified above. YYYY-MM-DDTHH:MM:SS
- the extension, in the above this is "-05:00" Is the time zone offset from GMT. The Time zone relates to the time zone in the settings in Go High Level. This MUST match the calendar you are booking the appointment into. 
as an example, if I had the calendar set to the time zone in the screenshot:


GHL_APPT.jpeg


Then when adding a selected slot it must be like so: 


"selectedSlot": "2021-08-21T15:00:00-04:00",
"selectedTimezone": "America/New_York",

Where the time zone and the offset from GMT match the calendar you are pushing into. Its important that the selectedTimezone is one of Go High Levels specified time zones in the drop down. For example using "EDT" would not work. 

- Finding the calendar ID - The calendar ID is located in the URL when you load a specific calendar. Example below: 


GHL_calendar_id.jpeg

4. You also need to make sure in the calendar settings there is available time between appointments and they are available to book. 

5. Response is the same as when adding a contact as explained above. 

6. Authorization is the same as adding a contact also explained above.

More information here https://developers.gohighlevel.com/

Was this article helpful?
0 out of 0 found this helpful

Comments