[#478] Action on Callback Return

Migrated from Redmine #478 | Author: Vu La
Status: Closed | Priority: Normal | Created: 2020-02-26


Hi there,

Can the API callback perform any action based on what is returned from the callback URL?

For example

  1. When user makes a booking in SimplyBook Me it then triggers the callback URL.
  2. The URL returns say ‘Unavailable’.
  3. Is there a way to then prevent the user from making that booking and tell them to choose another booking?

Thanks!

Vu La wrote:

Sorry, it is not a bug, not sure how to change it.

Redmine Admin wrote:

there is definitely some way to achieve this in your code. This must be done on your side because API is just set of methods to manipulate bookings and data. And your code should contain logic to operate with this methods.
Maybe I did not got your question well, please explain it better if it is the case.

Vu La wrote:

Hi,

So what we want is that before a user makes a booking it first calls our code to check whether that slot is actually available or not in our own system. If it is not then the user should be prompted to select another slot.

Is this possible? If so what methods can we call in code to do this?

Thanks!

Redmine Admin wrote:

hi, this is only possible if user will make booking on your site and you will call your availability check code and then simplybook API to book.