system
1
Migrated from Redmine #618 | Author: Andrew Brogan
Status: Feedback | Priority: High, I’m very impatient | Created: 2020-12-02
Hi, I have a couple of questions … firstly, using the following request:-
https://user-api-v2.jbsgeneral.simplybook.pro/admin/bookings
I return the payload containing bookings successfully but, it seems to be a limited amount. How can I return all bookings from all time?
My second question is how do i return the intake form for each booking?
Best wishes,
Andy
M - 0787 247 1483
system
2
Dmytro Bondarev wrote:
Hi! You have to use pagination and probably make multiple calls to get all bookings.
The example how to use pagination: https://user-api-v2.jbsgeneral.simplybook.pro/admin/bookings?page=2&on_page=25
To get booking intake forms you have to call booking details: API documentation | SimplyBook.me Online Scheduling
example: GET https://user-api-v2.simplybook.me/admin/bookings/1
But if you need synchronize bookings you have to use notifications. and get booking info as soon as you get notification and sync it in your database.