system
April 30, 2020, 2:20am
1
Migrated from Redmine #526 | Author: Jacob Taljaard
Status: Feedback | Priority: High, I’m very impatient | Created: 2020-04-30
Hi there
I am having a bit of a struggle with cancelling bookings through the api.
I do the following call:
{“jsonrpc” : “2.0”,
“method” : “cancelBooking”,
“params” : [
{
“id” : “2”
}
],
“id” : 1
}
The headers is set as please see the attached screen shot.
I get the following result back.
{
“error”: {
“code”: -32080,
“message”: “Appointment couldn’t be found”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}
Apologies for the escalation to HIGH, I am sure this is an issue from my end, however have a big go live which impacts our business under the current Covid-19 circumstances
system
April 30, 2020, 2:38am
2
Jacob Taljaard wrote:
Calling this with the admin API gives me the following result back
{
“error”: {
“code”: -32600,
“message”: “Access denied”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}
Request:
{“jsonrpc” : “2.0”,
“method” : “cancelBooking”,
“params” : [
{
“id” : “2”
}
],
“id” : 1
}
system
April 30, 2020, 2:46am
3
Jacob Taljaard wrote:
using the user api with request:
{“jsonrpc” : “2.0”,
“method” : “cancelBooking”,
“params” : [
{
“id” : 12,
“sign” : “e1a6655455a5ab7699f241b2a2b4cdf9”
}
],
“id” : 1
}
also gives me an error as below:
{
“error”: {
“code”: -32080,
“message”: “Appointment couldn’t be found”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}
system
April 30, 2020, 2:49am
4
Dmytro Bondarev wrote:
Please use non named parameters:
{
“jsonrpc” : “2.0”,
“method” : “cancelBooking”,
“params” : [2],
“id” : 1
}