[#1048] Webhooks for recurring events

Migrated from Redmine #1048 | Author: Tomas Chiller
Status: New | Priority: Normal | Created: 2023-04-20


Hi Simplybook,

I’m integrating SimplyBook with an external service using Webhooks and REST API.

For a single event it works well. After receiving a webhook and parsing its body I can use the “Get booking details” method to get all required information.


{
   "booking_id": "35455",
   "booking_hash": "d6519ea58f0363022a066e8983199904",
   "company": "company_name",
   "notification_type": "create"
}

But when a recurring event happens I still receive just one webhook for the first booking in the sequence. From here I can use the same method to get the details. The response contains fields that describe recurring information:


"batch_type": "recurring",
"batch_id": "5942"

And from here I can’t find any endpoint to get booking ids that are behind this batch event.

Is it a correct behaviour that after recurring event Simplybook sends just one webhook? If it’s correct how to handle recurring events using webhooks and REST API?

Redmine Admin wrote:

hi, thank you for reporting this issue. It is a bug, we will fix it to send a webhook for each booking in a batch.

Tomas Chiller wrote:

How long might it take to fix the bug? And will you message here when it’s fixed?

Gym Master wrote:

Hi, I have similar issue, is there any update related to this?