Using this endpoint you can submit a reservation cancellation request.
If the reservation can be cancelled, the endpoint will return 204 and an empty response body.
If we cannot start the cancellation process, the endpoint will return an error message and error codes.
Currently the following error codes can be returned: NON_CANCELLABLE, NOT_FOUND, INTERNAL_SERVER_ERROR
Each error code will have an error message to explain the error code. NON_CANCELLABLE reservations are the ones that either have non cancellable status (e.g CANCELLED, PENDING) or their check in date has already passed and the reservation cannot be cancelled any more.
It's important to fetch the status of the reservation after submitting this request to confirm that the status changes to CANCELLED

Click Try It! to start a request and see the response here!