Migrated from Redmine #104 | Author: Ihor Bokatov
Status: Rejected | Priority: Immediate, there is BUG! | Created: 2018-02-01
There is still have an issue with “book” (‘https://user-api.simplybook.me/admin’ enpoint)
{headers={charset=UTF-8, X-User-Token=xxx, Accept=application/json, X-Company-Login=raskrask}, method=post, payload={“jsonrpc”:“2.0”,“method”:“book”,“params”:[2,12,1,“2018-02-12”,“16:00:00”,“2018-02-12”,“17:15:00”,0,{“0db3e7523ba2ad3424742eb1f56826c4”:“Bernhardt Jensens Bouleveard 89, st tv”}],“id”:7}, followRedirects=true, validateHttpsCertificates=true, useIntranet=false, contentType=application/json;charset=utf-8, url=https://user-api.simplybook.me/admin}
returns
{“error”:{“code”:-32054,“message”:“Selected time start is not available”,“data”:},“id”:“7”,“jsonrpc”:“2.0”}
“getReservedTime” method returns empty array for reserved_time for 2018-02-12
Provider(id 12) have no bookings for “2018-02-12” and have a free time from “11:00:00” to “14:00:00”
Can you please explain why “You passing “2018-02-12” but your provider HAS NOT SLOTS this day.” ?
btw. I can create a booking for this time manually.