[#1139] not able to confirm the booking in simplybookme api

Migrated from Redmine #1139 | Author: nishant singh
Status: New | Priority: Immediate, there is BUG! | Created: 2024-01-05


Hi Team on calling the below api to confirm the booking , in the response we are not getting any result. Need your urgent support.
Please find below the request and response:
REQUEST :
{
“jsonrpc”: “2.0”,
“method”: “book”,
“params”: [
“1”,
“1”,
“2024-01-05”,
“11:40:00”,
{
“name”: “EYE TEST”,
“email”: hello@test.com,
“phone”: “971555555555”
}
],
“id”: 14
}

RESPONSE :

{
“result”: null,
“id”: “14”,
“jsonrpc”: “2.0”
}

Redmine Admin wrote:

Hi, please make sure you don’t have client login feature enabled

nishant singh wrote:

Hi, can you please let us know how to check this?

Redmine Admin wrote:

go to additional features/plugins and see if Client login is enabled or not

nishant singh wrote:

Hi Team , It is not enabled

nishant singh wrote:

can we schedule a call to debug this and solve this quickly??

Redmine Admin wrote:

Please take a look at our API documentation, you can also find references here by searching “book” term

nishant singh wrote:

Can you please explain this response:
{
“result”:null,
“id”:“2”,
“jsonrpc”:“2.0”,
“error”:{
“code”:“-32000”,
“message”:“Unexpected error”,
“data”:null
}
}

Redmine Admin wrote:

this means you are calling something wrong (wrong method, wrong parameters, etc.)

nishant singh wrote:

Hi Team,
On 31st Dec we tried doing a booking , and at till then we were able to do the bookings.
Since then there is no change in the calling method from our side.
Please find the OLD REQUEST and RESPONSE:

REQUEST:

{
“jsonrpc”:“2.0”,
“method”:“book”,
“params”:[
“1”,
“1”,
“2023-12-31”,
“14:40:00”,
{
“name”:“EYE TEST”,
email":"hello@test.com”,
“phone”:“971555555555”
}
],
“id”:14
}

RESPONSE:
{“result”:“7a74244aec7bba409bb46f9c9fd388e627b447b2c0b14e3af0d363ced9f45648”,“id”:“2”,“jsonrpc”:“2.0”,“error”:null}

NEW REQUEST AND RESPONSE:

REQUEST:

{
“jsonrpc”:“2.0”,
“method”:“book”,
“params”:[
“1”,
“1”,
“2024-01-05”,
“11:40:00”,
{
“name”:“EYE TEST”,
email":"hello@test.com”,
“phone”:“971555555555”
}
],
“id”:14
}

RESPONSE:
{“result”:null,“id”:“2”,“jsonrpc”:“2.0”,“error”:{“code”:“-32000”,“message”:“Unexpected error”,“data”:null}}",

Can you please explain why this started happening all of a sudden?

Redmine Admin wrote:

hello@test.com” is not a valid email and not allowed to be used

nishant singh wrote:

but earlier we were able to do the bookings using this

nishant singh wrote:

Hi Team,

We tried using the correct mail id ,then also we are not getting result in the response.
{
“jsonrpc”:“2.0”,
“method”:“book”,
“params”:[
“1”,
“1”,
“2024-01-18”,
“10:20:00”,
{
“name”:“EYE TEST”,
email":"nishant.singh@magrabi.com”,
“phone”:“971555555555”
}
],
“id”:14
}

Please address this ASAP

nishant singh wrote:

Hi Team , Any update on this?

Redmine Admin wrote:

please provide raw http request to API and response

nishant singh wrote:

Hi Team, please find below:
request Url:
https://user-api.enterpriseappointments.com
Request body:
“jsonrpc”:“2.0”,
“method”:“book”,
“params”:[
“1”,
“1”,
“2024-01-18”,
“10:20:00”, {
“name”:“EYE TEST”,
email":"nishant.singh@magrabi.com”,
“phone”:“971555555555”
}
],
“id”:14
}
Response :
RESPONSE: {“result”:null,“id”:“2”,“jsonrpc”:“2.0”,“error”:{“code”:“-32000”,“message”:“Unexpected error”,“data”:null}}",

Dmytro Bondarev wrote:

Hi, what is your company loigin?

nishant singh wrote:

company name :dxbibnbattutamall
username:magrabistoreaccount
password:Magrabi@123

Redmine Admin wrote:

you are using wrong parameters, here is link from doc API documentation | SimplyBook.me Online Scheduling

You are trying to use public book() method from admin

nishant singh wrote:

In place of everytime giving the documentation link can you please give some example of what is wrong and what is expected.
As like you asked me raw request and response , same can you provide??