[#151] getBookings call problem

Migrated from Redmine #151 | Author: Egor Timofeev
Status: Resolved | Priority: High, I’m very impatient | Created: 2018-04-19


Hello,

I’m trying to do a call to get bookings with following parameters:
var params = {
date_from: ‘2018-04-25’,
time_from: ‘07:59:00’,
date_to: ‘2018-04-25’,
time_to: ‘10:25:00’,
client_id: ‘978’,
unit_group_id: ‘3’,
event_id: ‘21’,
order: ‘start_date’,
booking_type: ‘all’
}

As a result I’m getting booking:
[ { id: ‘1100’,
record_date: ‘2018-04-19 10:59:17’,
start_date: ‘2018-04-25 10:30:00’,
end_date: ‘2018-04-25 11:50:00’,
unit_id: ‘3’,
event_id: ‘21’,
is_confirm: ‘1’,
client_id: ‘978’,

though this booking is not in the specified range.

Can you advice what am I doing wrong?

Thank you

Dmytro Bondarev wrote:

Please use not named parameters

Dmytro Bondarev wrote:

Please provide full HTTP request.
It seems you pass params as named object, but you should wrap it into array.

Egor Timofeev wrote:

here is it:

{“jsonrpc”:“2.0”,“method”:“getBookings”,“params”:[{“date_from”:“2018-04-25”,“time_from”:“07:59:00”,“date_to”:“2018-04-25”,“time_to”:“10:25:00”,“client_id”:“978”,“unit_group_id”:“3”,“event_id”:“21”,“order”:“start_date”,“is_confirmed”:1}],“id”:1}

Dmytro Bondarev wrote:

Hi! Yes, i see issue. this bug will be fixed in next update.

Egor Timofeev wrote:

Can you let me know when do you plan it?

Egor Timofeev wrote:

I do see this is set to resolved, but problem is still there. Doing the same call and getting the same information. Can you please advice when it could be resolved?

Jason Davis wrote:

@Dmitry,

Can you confirm if this has actually been resolved?

Thanks,

/Jason

Dmytro Bondarev wrote:

Hi, Jason!
Yes it was resolved