Migrated from Redmine #1051 | Author: Stu Dio
Status: Rejected | Priority: Immediate, there is BUG! | Created: 2023-04-28
My end point https://user-api-v2.simplybook.me/admin/clients has just started throwing a 400 error when its been working for months.
I am passing the following:
axios.post('https://user-api-v2.simplybook.me/admin/clients', '{"name":"Emily Vinsen","email":"emily@flocc.co","phone":"+447807491565"}', {
headers: {
'X-Company-Login': SIMPLYBOOK_COMPANY,
'X-Token': SIMPLYBOOK_TOKEN,
'Content-Type': 'application/json',
},
})
And then I am getting:
{"message":"Request failed with status code 400","name":"Error","stack":"Error: Request failed with status code 400"}
Any ideas why this would have stopped working?
I came across this issue when I was asked to look into a different issue where the api returned unauthorised when creating a booking, again when there was a valid token etc. But I can’t get to that step to replicate because I can’t get past setting up my client.
We haven’t touched anything to do with this booking process for months, and there have been many successful bookings since then, so I’m inclined to think that its something your end? But any help would be greatly appreciated as the booking system for our client is currently down!