[#768] Fetch Bookings through API

Migrated from Redmine #768 | Author: Rahim Ali
Status: New | Priority: High, I’m very impatient | Created: 2021-08-27


Support,

We are using simple booking hosted page/widget for our alter Altar’D State site. We have a requirement where register user can see their all upcoming/past booking. Here i think the Hosted page/widget would not work so we are thinking to use the API. we have filter few end point from documentation to use

https://user-api-v2.simplybook.me/admin/bookings?filter[upcoming_only]=1 - Fetch All upcoming Booking

DELETE https://user-api-v2.simplybook.me/admin/bookings/1 - Cancel Booking

GET https://user-api-v2.simplybook.me/admin/clients?page=1&on_page=10&filter[search]=al - if we pass the email in the search will it return the associated client object?

Above end point require Auth token and for the auth token we have following end point as per documentation so my question where can we get the ‘company login’,login and password

POST https://user-api-v2.simplybook.me/admin/auth
Content-Type: application/json

{
“company”: “”,
“login”: “”,
“password”: “”
}

For the new booking we are using following script

Can we use similar kind of script to load it in edit mode like passing the booking id if so please provide some guidelines.

Redmine Admin wrote:

Hi, registered user is able to see all his bookings. Please contact live help for more details

Rahim Ali wrote:

Hi

I have mentioned multiple things in my previous comment. can you please go through each of them and provide feedback.