[#965] REST API - Booking with count > 1 return 400

Migrated from Redmine #965 | Author: Endre Gjeldsrud
Status: Feedback | Priority: High, I’m very impatient | Created: 2022-11-22


Hi,

We are trying to use the endpoint:
https://user-api-v2.simplybook.me/admin/bookings

with count > 1 in requestbody.

With count == 1 we can book and everything works as expected. But whenever we increase the count above 1, we get this error:

ERROR: {
code: 400,
message: ‘Selected unit id is not available’,
data: ,
message_data:
}

Which confuses me, since there is no unit_id in the request body.

We have tried with Group bookings enabled and with group bookings disabled. We have a test-instance as well, where we can book with count>1 on the same codebase. Is there any settings in Simplybook which can affect this api call?

Our company is: 22julisenteret

Best Regards,
Endris

Dmytro Bondarev wrote:

Hi, It means that selected time is not available for selected provider and count.
Please make sure that you set available qty for provider.