Using a Webhook to receive events
You can use a webhook to be notified of events. When an appointment is created or cancelled, the event details are published to the webhook endpoint.
To use webhooks, you will need to create an application or service capable of consuming JSON data.
Configuring the Webhook
- Log into https://schedule.lobbycentral.com
- Click Account in the menu.
- Under Business Detail, enter your webhook URL. For example: http://myserver.com/mywebhook.php
- Click Save Changes.
Receiving a Webhook
A webhook message contains JSON formatted in the request body. Your application will need to consume this data and deserialize it into JSON object. You can program a listener in a variety of different languages. For example, ASP.NET, PHP, Ruby, Python, etc. JSON is language independent format so use whatever tools you are most comfortable with. Please note that support is not provided for creating or troubleshooting your application.
Responding to a Webhook
It is important that your application responds with an HTTP Status Code of 200 (OK). If your application does not return this code, the webhook will be marked as failed-retry and the service will and attempt a retry. We will resend a failed hook every hour until a status code of 200 is received, up to 48 attempts. You can check the status of attempts on the Webhook Events page.