Migrated from Redmine #481 | Author: Antonio Cabrera Status: New | Priority: Low, I can wait | Created: 2020-03-02
Buenas tardes, necesito capturar los datos de una reserva después de que un cliente realice una reserva. Los pasos que estoy siguiendo son:
1.- Hago login para obtener un token: https://user-api.simplybook.me/login
2.- Uso getClientList para obtener el id del usuario a partir de un nombre de cliente. Aquí obtengo este error usando esta petición:
Hi, please check User/Admin API (Company administration service) authorization section here API documentation | SimplyBook.me Online Scheduling
there is no admin token but authorization instead.
You can also use API callback to have your script called each time when new booking appears
Hi, please check User/Admin API (Company administration service) authorization section here API documentation | SimplyBook.me Online Scheduling
there is no admin token but authorization instead.
You can also use API callback to have your script called each time when new booking appears
API callback will resolve all my problems. But I have configured that parameter with this value www.dietfarma.com/reserva-confirmada and when a client makes a reservation this URL is not called and my script in this URL is not executed.
Sorry for insisting, but I can’t capture the data of a reservation after it will be done. In the URL www.dietfarma.com/reserva-confirmada I have a PHP code to write the result in the log but I don’t get it to work:
Hi Antonio,
If I understand your problem correctly, you will need to receive your booking data after the client completes the booking.
You have a Callback URL field in the API custom feature settings. After each reservation you will receive a callback to your url with the following parameters:
booking_id - Booking ID
booking_hash - Booking hash
company - Your company login
notification_type - Notification type. Can be 'create', 'cancel', 'notify', 'change'