[#1261] Booking call throwing unspecified 500 error.

Migrated from Redmine #1261 | Author: Jeremy Downs
Status: New | Priority: Normal | Created: 2024-08-12


I am using the Simplybook API JSONRPC to make other calls successfully but the book call is throwing a 500 error without giving details to the nature of the error. I have followed the documentation and the preview example calls to ensure the format for the booking is correct, but still no success.

Example call here:
{
“jsonrpc”:“2.0”,
“method”:“book”,
“params”:[
“1”,
“25”,
“2024-08-13”
“02:00:00”,
{ “name”: “Jeremy Downs”, “email”: “jdowns@citymattress.com”, “phone”: “+5615550575”},
{ “interest”: “bedroom furniture”, “comments”: “testing bookings - THIS APPT CAN BE CANCELLED”
],
“id”:1
}

Redmine Admin wrote:

hi, you are sending not valid JSON:
Error: Parse error on line 7:
…“25”,"2024-08-13"“02:00:00”, { “name”
--------------------^
Expecting ‘EOF’, ‘}’, ‘:’, ‘,’, ‘]’, got ‘STRING’