Cancel booking by booking code

PATCH {{baseUrl}}/bookings/:bookingCode/cancel

Description

This API endpoint enables the cancellation of a specific reservation, identified by the :bookingCode parameter, with a reasonId.

Notes

  • Please ensure that you have the necessary authentication and authorization to access this endpoint.

  • Please be advised that a valid :bookingCode is required in the URL to cancel a specific booking.

  • Please be advised that a valid :reasonId is required in the request body to cancel a specific booking.

Request Body

{"reasonId"=>3}

RESPONSES

status: OK

{"booking":{"id":473,"code":"24310001","status":"Confirmed","paymentStatus":"Received"},"reason":"High Price"}