[#1153] confirmBooking and confirmBookingPayment both returned unexpected error

Migrated from Redmine #1153 | Author: Aria W
Status: Feedback | Priority: High, I’m very impatient | Created: 2024-02-01


Hi,

I was trying to confirm a booking or confirm a booking payment after I create the booking with handle_invoice set to true to avoid the booking being canceled. I tried both “confirmBooking” method and “confirmBookingPayment” method, they both returned me with “Unexpected error”.

What I tried were: {“jsonrpc”:“2.0”,“method”:“confirmBookingPayment”,“params”:[“32”,“manual”, “398234c2eaa6beba0a1834bad90984df”],“id”:1}
and {“jsonrpc”:“2.0”,“method”:“confirmBooking”,“params”:[“32”,“398234c2eaa6beba0a1834bad90984df”],“id”:1}, but none of them worked.

Hope you can help me with this.
Thank you in advance.

Dmytro Bondarev wrote:

Hi, these methods were deprecated. Please use

or

Aria W wrote:

Dmytro Bondarev wrote:

Hi, these methods were deprecated. Please use
API documentation | SimplyBook.me Online Scheduling
or
API documentation | SimplyBook.me Online Scheduling

Thank you for the reply.

I saw confirmInvoice requires “$paymentSystem” as a parameter, could you also tell me what exactly is the value that needs to be passed?

Thank you in advance

Dmytro Bondarev wrote:

You can pass name of payment processor or something like Cash, Wire transfer, etc.

Aria W wrote:

Dmytro Bondarev wrote:

You can pass name of payment processor or something like Cash, Wire transfer, etc.

Thank you.

I have another question. Do you also have API available that can change the invoice status to refund?

Thank you.

Dmytro Bondarev wrote:

Unfortunately we don’t have this method in API at the moment.