Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The purpose of this guide is to provide you information on how to use CallPotential's Lead Notification API on your website to have Leads instantly created in CallPotential.

We have created a Lead notification API, which can be used to notify us to create new Leads in CallPotential by Reservation ID from integrated locations. The Reservation ID will translate to an ID for respective integrations.

SiteLink: waiting_id

SSM Next Gen/Hummingbird: reservation_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/SSM Next Gen/Hummingbird/etc.) Lead creation method, use the call to do the same for CallPotential, now with the known reservation_ID. An example of what this looks 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."}