HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
shop_request
Request for the shop operation
Fields
request_idUnique value used to identify this request. If provided to us during operational questions, it will help us provide better support.
123e4567-e89b-12d3-a456-426614174000lodging_idsList of lodging IDs to shop for. (1 to 200)
sales_channelDefines the type of device the user is using. This is a non-exhaustive list of enum values, which will be extended in the future.
- web: User is using a web browser on a desktop or laptop
- mobile_web: User is using a web browser on a mobile device
- mobile_app: User is using a mobile app
webmobile_webmobile_app · Example mobile_apprate_optionsSet of rate options to enable. Each option has its own inventory of rates. See RateOption schema enum for the list of supported options.
point_of_saleDescription of the point of sale where the booking is made. This is typically the user's location.
Show fields
countryCountry code (ISO 3166-1 alpha-2)
^[A-Z]{2}$ · Example UScheck_inThe check-in date. Notes:
- Check-in cannot be in the past.
- Check-in date can be at most 1 year in the future.
2022-01-01check_outThe checkout date. Note:
- Checkout date needs to be at least one day after the check-in date.
- Checkout date can be at most 1 year after the check-in date.
2022-01-02occupancyNumber of guests that want to stay in the lodging
Show fields
adultsNumber of adult guests
2childrenList of children guest ages
petsNumber of pets accompanying the guests
1currencyRequested currency code for the owed now portion of the rates, in ISO 4217 format.
USD · Example USDsales_environmentThe sales environment for the shop request. Defaults to lodging_only if not provided.
lodging_onlylodging_package · Default "lodging_only"Show fields
Used by
{
"request_id": "123e4567-e89b-12d3-a456-426614174000",
"lodging_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"sales_channel": "mobile_app",
"sales_environment": {},
"rate_options": [
"member"
],
"point_of_sale": {
"country": "US"
},
"check_in": "2022-01-01",
"check_out": "2022-01-02",
"occupancy": {
"adults": 2,
"children": [
3,
5,
9
],
"pets": 1
},
"currency": "USD"
}