API Reference

Create a reservation (Direct Booking) in Hostex.

Body Params
string
required

The id of the property for the reservation.

integer
required

The id of the custom channel through which the reservation is booked. See Query Custom Channel for retrieving custom channels.

date
required

The check-in date for the reservation in YYYY-MM-DD format.

date
required

The check-out date for the reservation in YYYY-MM-DD format.

integer

The total number of guests included in the reservation.

string
required

The name of the primary guest.

string

The mobile phone number of the primary guest.

string
required

The currency code for the reservation amounts. See Supported Currencies for more information.

integer
required

The total rate amount for the reservation.

integer
required

The commission amount for the reservation.

integer
required

The total amount received for the reservation.

integer
required

The identifier for the income method used for the reservation payment. See Query Income methods for retrieving all income methods.

string

Any additional remarks related to the reservation.

Response

Response body
object
string
required

Unique identifier for the request.

integer
required

Numeric error code representing the status of the response. A value of 200 indicates success.
See the Error Codes section for more information.

string
required

Message detailing the status of the response.

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