Migrated from Redmine #174 | Author: Rahul Mohanachandran
Status: Rejected | Priority: Normal | Created: 2018-05-31
I am unable to create a booking and getting this message :
{“error”:{“code”:-32061,“message”:“Client name value is wrong”,“data”:},“id”:null,“jsonrpc”:“2.0”}
I cannot see any problem with Client Data. Following is the full request.
POST HTTP/1.1
Host: user-api.simplybook.me
Content-Type: application/json; charset=UTF-8
X-Company-Login: testfornow
X-Token: removedforsecurity
Accept: application/json
Cache-Control: no-cache
Postman-Token: 896298e8-505a-44c5-9ad6-36e018a0d9c9
{“jsonrpc”:“2.0”,“method”:“book”,“params”:[{“eventId”:“2”,“unitId”:“1”,“date”:“2018-06-01”,“time”:“14:00:00”,“clientData”:{“name”:“M Test",“email”:"san11051105@gmail.com”,“phone”:“+44741111111”},“count”:“1”}]}