API Events and Subscriptions are indeed how you would go about this. (
https://www.opendental.com/site/apisubscriptions.html)
1. Send a Subscriptions POST request similar to below: (Note the trailing '/')
Code: Select all
{
"EndPointUrl": "https://webhook.site/.../",
"WatchTable": "Appointment",
"PollingSeconds": 60
}
2. Send an API request that changes an appointment, such as Appointments PUT Confirm.
3. Wait up to the amount of time specified as "PollingSeconds" to receive back the Event. The JSON will appear the same as if you ran an Appointments GET request.
We were able to successfully use the Webhook.site website as an EndPointUrl. It is worth noting that the returned list will be for
any changes made to an appointment, not just AptStatus.