[#564] Generate a Cancel Link with Webhook Hash received

Migrated from Redmine #564 | Author: Olivier Bufalini
Status: New | Priority: Normal | Created: 2020-09-03


Hi

I am using a web hook to collect on our server the booking id and booking hash of every booking made, how can I generate a cancel link that I can use in our email system using the hash ? I have tried the same pattern used in the email sent by Simplybook : https://username.simplybook.it/v2/client/cancel-booking/id/112/hash/e23df3de5c9ef863b70900060bb69271/ however it doesn’t work it looks like the hash sent via web hook is different from the one sent in the email by Simplybook. Is there a way via the api to get that hash so I can generate the link and to use it into an email ?

Rgds

Redmine Admin wrote:

there is no API for cancel link generation.
Of course you can generate link on your server and handle cancellations via API your side.
Then you need to call API documentation | SimplyBook.me Online Scheduling method

Olivier Bufalini wrote:

Redmine Admin wrote:

there is no API for cancel link generation.
Of course you can generate link on your server and handle cancellations via API your side.
Then you need to call API documentation | SimplyBook.me Online Scheduling method

Cancel is one of the link we need to generate and that s correct we can handle the cancellations via api, however we would like to generate a link to display the booking of the user and a reschedule link like :
https://username.simplybook.it/v2/client/bookings/hash/e23df3de5c9ef863b70900060bb69271
https://username.simplybook.it/v2/client/reschedule-booking/id/113/hash/e23df3de5c9ef863b70900060bb69271/

We would like to avoid to do all the front end part and just redirect user to your website. Would it work if we use the client_hash in the link instead of the booking hash received, how can we get the client_hash ?

Rgds

Redmine Admin wrote:

Unfortunately, there is no workaround to solve this without handling cancelations by API

Olivier Bufalini wrote:

how about for the listing of the bookings of a user and reschedule link ? is there a way to get the client hash and use that hash instead ?