Decline Reservation

Decline a pending reservation request. The reservation must be in wait_accept status. This endpoint communicates with the channel to reject the booking.

For Airbnb reservations you can send the decline reason and the message to the guest that Airbnb requires when declining. All fields are optional: if decline_message_to_guest is omitted or empty, Hostex sends a default English message on your behalf (for example: "Sorry, we are unable to accommodate your requested dates."), and decline_reason defaults to not_comfortable. Send your own decline_message_to_guest if you want the guest to read a specific message or a message in their language. For other channels these fields are ignored.

Path Params
string
required

The code of the reservation.

Body Params

Optional. Only used for Airbnb reservations; ignored for other channels.

string
enum
Defaults to not_comfortable

Airbnb only. The reason for declining, sent to Airbnb. Defaults to not_comfortable when omitted.

Allowed:
string

Airbnb only. The message to the guest explaining the decline; the guest sees it on Airbnb. Airbnb requires a message when declining: if omitted or empty, Hostex sends a default English message (for example: "Sorry, we are unable to accommodate your requested dates.").

string

Airbnb only. A private note to Airbnb about the decline; the guest does not see it. Not sent when omitted.

Responses

400

The reservation is not in pending status, the account authorization has been revoked, the account is disconnected, or decline_reason is not one of the allowed values (Airbnb reservations).

404

The reservation or thirdparty account was not found.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json