v1

latestOpenAPI 3.0.02026-07-243271291.7 MB
ReservationPreviews

POST reservation preview

Create a new reservation preview

post/v3/channels/{channel_id}/reservation_previews

Path parameters

channel_idstring required

Channel ID

Query parameters

fields[reservation]string

Fieldset. Specify a comma separated list of attributes to return

includestring

Includes list. Specify a comma separated list of resources to include.

validateboolean

If set to false, does not validate the reservation preview.

validate_minimum_advance_noticeboolean

If set to true, validates that the reservation preview satisfies the minimum advance notice requirements. Ignored when validate is false.

allow_reservations_in_the_pastboolean

If set to true, allows the reservation preview to start in the past.

validate_length_of_stay_does_not_exceed_max_av_cache_length_of_stayboolean

If set to true, validates that the stay of the reservation preview does not exceed the maximum length of stay supported by the availability cache (30). Ignored when validate is false.

Headers

Accept-Languagestring

Supported languages. A comma separated list with one or more of the following locales: cs, da, de, de-AT, de-CH, en, es, fr, fr-BE, fr-LU, it, nb, nl, nl-BE, pl, pt, tr. Default: 'en'.

Response

ReservationResponse