Lead Notification API
Using the CallPotential Lead Notification API on your website to have leads create instantly in CallPotential
We have created a Lead notification API, which can be used to notify CallPotential to create new lead in CallPotential by reservation id from integrated location. The reservation ID will translate to an ID for respective integrations:
SiteLink: waiting_id
CenterShift: quote_id
This is the endpoint that you can use to push to the lead notify API
EndPoint:Â https://api.callpotential.com/v1/notify/lead
After the lead is created via your PMS (SiteLink/CenterShift/etc.) from their create lead method, use the call to do the same for CallPotential, now with the known reservation_id. An example of what that would look like is listed below:
Sample Curl Request:
Linux PuTTY: curl -XPOST https://api.callpotential.com/v1/notify/lead -d "location_id=335&reservation_id=110"
Windows Powershell: curl.exe -X POST https://api.callpotential.com/v1/notify/lead -d "location_id=335&reservation_id=110"
JSON Response:
{"error":true,"message":"Unable to fetch reservation from Sitelink."}