Hotels
Last updated
Last updated
Get hotels data for a single specified hotel. This operation can be called initially to fetch data which may be important during the booking workflow.
[ApiBaseUrl]/api/distributor/v1/hotels/get
Property | Type | Contract | Description |
---|---|---|---|
The returned list of products contains only the products associated with the first bookable service in the list of services of this enterprise.
A localized text is an object of the property values localized into languages supported by hotel, indexed by language codes.
If the hotel does not use any payment gateway, the value is null. If it does, then you should use a specific API call and the gateway’s library to encode credit card data. The main purpose of a payment gateway is to securely obtain the credit card of the customer before a reservation is created. You can decide not to support any of them and just ignore it, in which case reservations are created with a note about missing credit card.
PciProxy
MasterCard
Visa
Amex
Discover
DinersClub
Jcb
Maestro
...
Absolute
- Data specific to absolutely priced product are represented by Multi-currency amount.
Relative
- Data specific to relatively priced product are represented by Relative price data value.
GrossValue
- The price of the product should be calculated from gross value of dependant products
TaxValue
- The price of the product should be calculated from tax value of dependant products
NetValue
- The price of the product should be calculated from net value of dependant products
Once
PerTimeUnit
PerPersonPerTimeUnit
PerPerson
Once
PerTimeUnit
An object where name corresponds to ISO code and value represents a structure that holds gross price, net price and tax values.
Room
Dorm
Bed
...
Get availability and pricing options for the specified hotel for the specified date interval. Further optional parameters can be supplied, such as room categories and voucher codes. The availability and pricing is returned for each applicable combination of occupancy and rate, for each available room category.
[ApiBaseUrl]/api/distributor/v1/hotels/getAvailability
Automatic
Manual
ChargeCreditCard
CreatePreauthorization
Confirmation
Start
End
StartDate
EndDate
Fetch payment configuration parameters for the specified hotel.
[ApiBaseUrl]/api/distributor/v1/hotels/getPaymentConfiguration
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Client
string
required
Identification of the client, as described in Authorization.
HotelId
string
required
Unique identifier of the hotel.
Countries
array of Country
required
Countries supported by the hotel.
Currencies
array of Currency
required
Currencies accepted by the hotel.
DefaultCurrencyCode
string
required
Code of hotel’s default currency.
DefaultLanguageCode
string
required
Code of hotel’s default language.
DefaultRateCurrencyCode
string
required
Code of currency of hotel’s default rate.
IanaTimezoneIdentifier
string
required
Iana identifier of hotel’s time zone
ImageId
string
optional
Unique identifier of hotel’s logo image.
IntroImageId
string
optional
Unique identifier of hotel’s intro image (usable as background image).
Languages
array of Language
required
Languages supported by the hotel.
Name
required
Name of the hotel.
Description
required
Description of the hotel.
PaymentGateway
one of Payment gateway types
optional
Info about payment gateway used by the hotel.
Products
array of Product
required
All products orderable with rooms associated with the first bookable service in the list of services of this enterprise.
RoomCategories
array of Room category
required
All room categories offered by hotel.
TermsAndConditionsUrl
string
optional
URL of hotel’s terms and conditions.
ImageBaseUrl
string
required
Base URL of images.
Code
string
required
ISO 3166-1 Aplha-2 code of the country.
Name
string
required
Name of the country.
Code
string
required
Code of the currency in ISO 4217 format.
Symbol
string
required
Symbol of the currency.
ValueFormat
string
required
Format of a currency value (for both positive and negative values, including symbol).
DecimalPlaces
number
required
Number of decimal places used with the currency value.
SymbolIsBehindValue
boolean
required
Indicates whether the symbol stands behind a value in standard formatting.
Code
string
required
Language code.
Name
string
required
Name of the language.
DefaultCulture
required
Specifics of a default culture for the language.
CurrencyDecimalSeparator
string
required
Symbol used to separate decimal places in the currency value format.
CurrencyGroupSeparator
string
required
Symbol used to separate thousands in the currency value format.
PaymentCardStorageType
string Payment card storage type
required
Type of the payment card storage used by enterprise.
IsMerchant
boolean
required
Whether the gateway is processed through Mews Payments or not (formerly called Mews Merchant).
SupportedCreditCardTypes
array of Credit card type
required
Supported payment cards, should be used to enhance UX.
PublicKey
string
required
Merchant identifier for which PCI Proxy iframe is connected.
DefaultCurrencyCode
string
required
Currency code of default payment gateway in ISO 4217 format.
Id
string
required
Unique identifier of the product.
CategoryId
string
optional
Unique identifier of the product category.
Name
required
Name of the product localized into all supported languages.
Description
required
Description of the product localized into all supported languages.
ImageId
string
optional
Unique identifier of the product’s image.
IncludedByDefault
boolean
required
Indicates whether the product should be added to order by default.
Pricing
required
Object defining the pricing method and price values.
ChargingMode
string Product charging mode
required
Charging mode of the product.
PostingMode
string Product posting mode
required
Posting mode of the product.
Discriminator
string Pricing data discriminator
required
Determines type of value.
Value
required
Structure of object depends on the Pricing data discriminator
ProductIds
array of string
required
Unique identifiers of Products used to calculate the price of the relatively priced product.
Multiplier
number
required
Percentage of the relative price.
Target
required
Target defining whether the price of a product should be calculated by multiplying gross value, tax value or net value of dependant products.
TaxRateCodes
array of string
required
Tax rate codes that should be applied to the price in order to calculate the taxes of the product.
GrossValue
Number
Net price + taxes
NetValue
Number
Amount without taxes
TaxValues
Collection of Tax values
Tax values for the net value amount
TaxRateCode
string
Unique identifier of the rate.
Value
Number
Amount of tax
Id
string
required
Unique identifier of the room category.
Name
required
Name of the room category localized into all supported languages.
Description
required
Description of the room category localized into all supported languages.
NormalBedCount
number
required
Number of normal beds in the room category.
ExtraBedCount
number
required
Number of extra beds possible in the room category.
SpaceType
required
Type of the room category.
Client
string
required
Identification of the client as described in Authorization.
ConfigurationId
string
required
Unique identifier of the used Distributor configuration.
HotelId
string
required
Unique identifier of hotel.
StartUtc
string
required
Reservation start date (arrival date) in ISO 8601 format.
EndUtc
string
required
Reservation end date (departure date) in ISO 8601 format.
ProductIds
array of string
optional
Unique identifiers of products which should be included into pricing calculations.
CurrencyCode
string
optional
ISO 4217 code of the currency. If specified the prices in response will contain only single currency based on the code provided. Supported currency codes
VoucherCode
string
optional
Voucher code enabling special rate offerings.
OccupancyData
array of Occupancy Data
required
Occupancy numbers for the reservations.
AdultCount
number
optional
Requested number of adults. If provided together with ChildCount, then RoomOccupancyAvailabilities will be computed only for that combination instead of all possible. If RoomCategory doesn’t support the given values, then the nearest applicable values are found. Deprecated!
ChildCount
number
optional
Requested number of children. Deprecated!
CategoryIds
array of string
optional
Unique identifiers of categories for which should be the availability computed only. If omitted, availability of all categories is returned instead.
AvailabilityBlockId
string
optional
Unique identifier of availability block, if present. When provided, only availability for this block is returned.
AgeCategoryId
string
required
Age category identifier - see Where can I get Age Category ID?.
PersonCount
number
required
Number of people in the given age category.
RateGroups
array of Rate group
required
Information about all available rate groups.
Rates
array of Rate
required
Information about all available rates.
RoomCategoryAvailabilites
array of Room category availability
required
Availabilities of room categories. If a room category is not available, it is not included.
Id
string
required
Unique identifier of the rate.
SettlementType
string Settlement type
required
Determines if system will charge reservation cost automatically or if you'd like employees to manually process payments.
SettlementAction
string Settlement action
required
Determines how payment will be taken at time of automatic trigger. Valid if settlement is automatic only.
SettlementTrigger
string Settlement trigger
required
Moment when amount is automatically charged, with offset applying to this time (for example, a 'Creation' trigger with no offset will charge the amount when items are created). If settlement is manual, a task will be created at this moment.
SettlementOffset
string
required
Start of the interval in ISO 8601 format which gets added before or after selected settlement trigger (for example, '-1 day' will charge the amount 1 day before).
SettlementValue
number
optional
Percentage of the total extent cost which is charged automatically (for example, a 1.0
settlement value will charge the full cost of extent included below). Value is charged at the time of settlement trigger plus time difference from offset. When null, FlatValue
is provided with absolute decimal value.
SettlementFlatValue
number
optional
Absolute value of settlement cost in settlement currency code. When provided SettlementValue
is null
SettlementCurrencyCode
number
required
Settlement currency code
SettlementMaximumTimeUnits
number
optional
Maximum number of time units that will be charged automatically (only applies to automatic settlements). The rest will be charged manually.
Id
string
required
Unique identifier of the rate.
Name
required
Name of the rate localized into all supported languages.
Description
required
Description of the rate localized into all supported languages.
IsPrivate
boolean
required
Set to true
for promotion rate enabled by provided VoucherCode
RoomCategoryId
string
required
Unique identifier of the room category.
RoomOccupancyAvailabilities
array of Room occupancy availability
required
Availabilities of rooms in the category by the room occupancy.
AvailableRoomCount
number
required
Number of available rooms from the room category.
AdultCount
number
required
Number of adults for the associated pricing. Deprecated!
ChildCount
number
required
Number of childs for the associated pricing. Deprecated!
OccupancyData
array of OccupancyData
required
List of occupancy data.
Pricing
array of Pricing
required
Pricing information.
RateId
string
required
Unique identifier of a rate.
Price
required
Price of the room.
MaxPrice
required
Max price of the room with the same parameters and conditions among other rates. Can be understood (and possibly displayed) as the value before discount.
TotalAmount
required
Total amount of the room for whole reservation.
AverageAmountPerTimeUnit
required
Average amount per time unit.
Client
string
required
Identification of the client as described in Authorization.
HotelId
string
required
Unique identifier of hotel.
PaymentGateway
required
Object that describes payment gateway of the enterprise.
SurchargeConfiguration
required
Object describing surcharge configuration used by the enterprise.
SurchargeServiceId
string
optional
Unique identifier of surcharge service.
SurchargeFees
required
Surcharge fees are additional fees charged by payment card company.
Key
string Credit card type
required
Credit card type.
Value
number
required
Amount of the surcharge fee itself.