system
1
Migrated from Redmine #1342 | Author: soniya james
Status: Feedback | Priority: High, I’m very impatient | Created: 2025-01-06
Booking list only getting 10 recorded, for getting more than that how i need to send request.
https://user-api.simplybook.me/admin
{“jsonrpc”:“2.0”,“method”:“getBookingReport”,“params”:[{“filter”:{
“date_from”: “2024-12-01”,
“date_to”: “2024-12-31”,
“order”: “date_start”,
“page”: 1,
“on_page”: 100
}}],“id”:0}
Response
“metadata”: {
“items_count”: 223,
“pages_count”: 23,
“page”: 1,
“on_page”: 10,
“sms_subscribed_count”: 0,
“email_subscribed_count”: 0,
“push_subscribed_count”: 0
}
system
2
Dmytro Bondarev wrote:
Hi, page, on_page must be outside of filter:
{"jsonrpc":"2.0","method":"getBookingReport","params":[{"filter":{
"date_from": "2024-12-01",
"date_to": "2024-12-31",
"order": "date_start"
},
"page": 1,
"on_page": 100
}],"id":0}
system
3
soniya james wrote:
https://user-api-v2.simplybook.me/admin/bookings
in this request for booking list but I want last record first
system
4
Dmytro Bondarev wrote:
{"jsonrpc":"2.0","method":"getBookingReport","params":[{"filter":{
"date_from": "2024-12-01",
"date_to": "2024-12-31"
},
"order_field": "date_start",
"order_direction": "DESC",
"page": 1,
"on_page": 100
}],"id":0}
system
5
soniya james wrote:
Get bookings list
GET https://user-api-v2.simplybook.me/admin/bookings?filter[upcoming_only]=1
Content-Type: application/json
X-Company-Login:
X-Token:
what about this API?
system
6
Dmytro Bondarev wrote:
&order_field=start_date&order_direction=desc&page=1&on_page=100
system
7
soniya james wrote:
its working thanks for the quick response
system
8
soniya james wrote:
one more doubt if i want to get all records in one page how I can modify the request.
system
9
Dmytro Bondarev wrote:
Hi, this is not possible, max is 100 per page, you can request page by page.