[#1146] Webhook Callback not being called

Migrated from Redmine #1146 | Author: James Hilton-Barber
Status: New | Priority: Immediate, there is BUG! | Created: 2024-01-25


Hi, I have been trying to test the Webhook part of the API, configured via the Simplybook dashboard. Two days ago, it worked and my supplied callback URL was called.

However, since then, I can’t get anything (create, change, delete) to trigger a call, no matter how many callbacks I try.

Tried to fix it by:

  • deactivated & reactivated the API
  • generated new keys
  • switched all the triggers off and on again
  • deleted the callback URL & re-added it
  • changed max tries

Nicholas Alias wrote:

Hello. Please provide you company login

James Hilton-Barber wrote:

circlehealth

(Short original content)

James Hilton-Barber wrote:

Nicholas Alias wrote:

Hello. Please provide you company login

circlehealth

Redmine Admin wrote:

hi, according to our logs API did call your url but got status different from 200 which means your url is wrong or your script is not working

James Hilton-Barber wrote:

Yes, thanks - that makes sense. I was using ngrok to test the payload.

But surely it’s not expected behavior that I can’t get any results again?

It now seems Zapier doesn’t trigger either…

James Hilton-Barber wrote:

would really appreciate some assistance with this, we’ve been blocked for 6 days because we can’t sync our systems with Simplybook. Even just Zapier. Anything. Please.

Redmine Admin wrote:

as per our logs it was called but we receive non 200 status. Please check your url address and script which is listening on this address. Unfortunately this is your url and it is out of our controll

James Hilton-Barber wrote:

but zapier doesn’t trigger. THere’s nothing I can do about that, right?

Redmine Admin wrote:

please check this with zapier

James Hilton-Barber wrote:

so there’s nothing in the Simplybook API that has blacklisted us for the non-200 or broken the webhook config to the point they’re not executing? As far as you’re concerned, those POST requests (to Zapier or another URL) are being made. Can you please confirm when the last POST request for a cancel event was made. I’ve just cancelled a booking, so it should be within a minute of the timestamp on this.

Redmine Admin wrote:

I would suggest you to use service like https://webhook.site/ and put its url as callback, trigger action and see the result. If you will get nothing please contact us

James Hilton-Barber wrote:

I have done so (and had before). I get nothing.

Redmine Admin wrote:

I can see it is working for you Webhook.site - Test, transform and automate Web requests and emails

James Hilton-Barber wrote:

Hey, thanks for testing it, I appreciate that.

Okay, then it is only triggering for things booked through the booking site, which we don’t use. If you check the webhook.site you’ll see that 147 didn’t come through (made via api). Is this expected behaviour?

and cancellations definitely don’t show.

James Hilton-Barber wrote:

change events also not triggering

James Hilton-Barber wrote:

Oh wait! it works if I cancel as a client. But not from within Simplybook.

James Hilton-Barber wrote:

Hi, please could you confirm whether it is expected behavior for webhooks (including Zapier) to only trigger from the Simplybook Client Booking Page, and not from actions performed within Simplybook Dashboard or via the API?

James Hilton-Barber wrote:

Hi, following up again. Please confirm what is expected behavior.

Redmine Admin wrote:

just made a test booking from your admin interface and cancelled it - got webhook url called as it should.

{"booking_id":"168","booking_hash":"00ba2dd06072b82276370570c1afb967","company":"circlehealth","notification_type":"create"}
{"booking_id":"168","booking_hash":"00ba2dd06072b82276370570c1afb967","company":"circlehealth","notification_type":"cancel"}

Same applies to API. If you believe you have this problem please provide us API RAW HTTP request and response.