API Reference

You can query reservations by making a request to this endpoint.

Query Params
string

Filters the results by the specified reservation code.

integer

Filters the results by the specified property ID.

string

Filters the results by the specified reservation status.

date

Filters the results to include reservations with check-in dates starting from this date (inclusive).

date

Filters the results to include reservations with check-in dates up to this date (inclusive).

date

Filters the results to include reservations with check-out dates starting from this date (inclusive).

date

Filters the results to include reservations with check-out dates up to this date (inclusive).

string
Defaults to booked_at

Sorts the results by the specified field. Default is booked_at.

integer
Defaults to 0

Specifies the starting index from which the results should be returned. Default: 0

integer
Defaults to 20

Determines the maximum number of results to be returned, up to a maximum of 100. Default: 20.

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.

data
object
required
reservations
array of objects
required

List of the properties

reservations*
object
string
required

The reservation code. Multiple stays are allowed for the same reservation. In the case of multiple stays, all stays will share the same reservation code. For example: 0-1234567-abcdef

string
required

The stay code of the reservation. For example: 0-1234567-abcdef or 0-1234567_1-abcdef(if there are multiple stays for the same reservation)

integer
required

The property ID. If an reservation fails to be allocated to a property, 0 will be returned.

string
required

The type of the channel. See Supported Channels for more information.

airbnb booking.com agoda expedia vrbo trip.com booking_site tujia_intl hostex_direct tujia xiaozhu meituan_bnb meituan_hotel muniao fliggy zhukeyun tiktok xiaohongshu ctrip houfy

string
required

The unique identifier for different channels.
For example, the listing id for Airbnb is the Airbnb listing id, and the listing id for Booking.com is the Booking.com room id - rateplan id.

date
required

The check-in date of the reservation in YYYY-MM-DD format. Example: 2019-01-01

date
required

The check-out date of the reservation in YYYY-MM-DD format. Example: 2019-01-01

integer
required

The total number of guests for the reservation

integer

The number of adults for the reservation

integer

The number of children for the reservation

integer

The number of infants for the reservation

integer

The number of pets for the reservation

string
required

wait_accept wait_pay accepted cancelled denied timeout

date-time | null

The datetime when the reservation was cancelled, null will be returned if the reservation is not cancelled in ISO 8601 format. Example: 2019-01-01T00:00:00+00:00

date-time
required

The datetime when the reservation was booked in ISO 8601 format. Example: 2019-01-01T00:00:00+00:00

date-time
required

The datetime when the reservation was created in Hostex in ISO 8601 format. Example: 2019-01-01T00:00:00+00:00

string

The creator name of the reservation

rates
object
check_in_details
object

The check-in details of the reservation

string

Remarks from the Hostex Host Portal

string

Remarks from the channel

string

The conversation ID of the reservation. If not specified, null will be returned.

tags
array of strings

Tags from the Hostex Host Portal

tags
custom_channel
object

Custom channels created from the Custom Options Page. See Query Custom Channel for retrieving custom channels.

guests
array of objects

In some special cases (e.g., the host manually deleted the guest information), the guests field may return an empty array, so you need to handle the empty case.

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