With the above call, we are limited in terms of parameters, for example “date_from” is not available.
But with your answer, I understand that if we use the URL https://api.simplybook.me/v2/getBookings from our script still with curl we can call the getBookings API and give it the available parameters?
Get bookings list
Return bookings list.
Please note that result is wrapped into paginated result.
Throws AccessDenied error in case user does not have access to bookings report.
In GET parameters you can pass page, on_page and filter with following parameters: upcoming_only - return upcomming bookings only status - booking status (can be confirmed/confirmed_pending/pending/canceled) services - array of service ids to filter by services providers - array of provider ids to filter by providers client_id - client id. to filter by client id date - filter by date search - search string (by code, client data) additional_fields - search by additional fields (&filter[additional_fields][field] = value)
Endpoint:
/admin/bookings
Method:
GET
Request parameters:
int page - page in list
int on_page - items per page
object filter - filter object