Migrated from Redmine #203 | Author: Karl Oskar Andersen
Status: Closed | Priority: Normal | Created: 2018-07-26
Hello,
I am having trouble with the “Company public service methods” (http://user-api.simplybook.it/) “confirmBookingBatch” method.
I have created a batch, and added 1-3 booking into the batch (amount does not matter).
When I call the method to confirm the batch, this is the result I get:
{
“error”: {
“code”: -32090,
“message”: “Confirmation with this key type is not available”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}
Here is one of the batches I attempted to use:
{
“require_confirm”: true,
“bookings”: [
{
“id”: “394”,
“event_id”: “2”,
“unit_id”: “2”,
“client_id”: “32”,
“client_hash”: “11fa5937914dd04be045f95ac7bee3a8”,
“start_date_time”: “2018-07-26 07:00:00”,
“end_date_time”: “2018-07-26 08:00:00”,
“time_offset”: “0”,
“is_confirmed”: “1”,
“code”: “38caxks2”,
“hash”: “3870024f6922364d0e0a09bf1f60f774”
}
],
“batch_type”: “batch_multiple_booking”,
“group_booking_batch_id”: 14,
“batch_hash”: “992816e71680bd8100242e1262a2a2c1”
}
I double checked this was not an expiration issue.
What is strange about this, is that I am able to call the the “Company public service methods” (http://user-api.simplybook.it/) “confirmBookingBatchPayment” method without any problems.
{
“result”: true,
“id”: “1”,
“jsonrpc”: “2.0”
}
I am not sure if this is a bug, or if I am doing something wrong?