Timur Mukhatov wrote:
Hello again, this solution also didn’t work out.
Please pay attention that we get this kind of response for other requests. And sometimes they happen and sometimes not. Here is the raw request and response examples:
getBookings request:
{"http":{"method":"POST","timeout":60,"header":"Content-type: application\/json\r\nX-Company-Login: sunshinesmilenlstaging\r\nX-User-Token: *hidden*\r\n","content":"{\"method\":\"getBookings\",\"params\":[{\"date_from\":\"2022-04-06 16:05:00\",\"date_to\":\"2022-05-06 16:05:00\",\"unit_group_id\":89,\"booking_type\":\"non_cancelled\"}],\"id\":7}"}}
getBookings response:
{"error":{"code":-32600,"message":"Invalid request","data":[]},"id":"7"}
getCompanyParams request:
{"http":{"method":"POST","timeout":60,"header":"Content-type: application\/json\r\nX-Company-Login: sunshinesmilenlstaging\r\nX-User-Token: 4bb7d70fd870c96226fea20d990b4beeba4f6d83c5047e584ec69f638ba2dc9a\r\n","content":"{\"method\":\"getCompanyParams\",\"params\":[[\"max_time_till_event\",\"timeframe\"]],\"id\":1}"}}
getCompanyParams response:
{"error":{"code":-32600,"message":"Invalid request","data":[]},"id":"1"}
getStartTimeMatrix request:
{"http":{"method":"POST","timeout":60,"header":"Content-type: application\/json\r\nX-Company-Login: sunshinesmilestaging\r\nX-User-Token: 1b0f03b490a52fd3e1cea1033f1f8bdbe68bea725bb36ee581517c0b72378926\r\n","content":"{\"method\":\"getStartTimeMatrix\",\"params\":[\"2022-04-06\",\"2022-04-13\",1,31,1],\"id\":1}"}}
getStartTimeMatrix response:
{"error":{"code":-32600,"message":"Invalid request","data":[]},"id":"1"}