Configuration
Get configuration
Get configuration data for the specified booking engine instances, including location, supported room and space categories, products, tax environment, and so on. This operation can be called initially to fetch data which may be important during the booking workflow.
Request
[ApiBaseUrl]/api/distributor/v1/configuration/get
Client
string
required
PrimaryId
string
required
Ids
array of string
required
Response
Cities
required
Cities supported by the enterprise.
CityId
string
required
Unique identifier of the default city.
Configurations
required
Configurations of the booking engine instances.
Services
required
Services that the configurations are set up for.
CurrencyCode
string
optional
DisplayVoucherCode
boolean
required
Determines whether enterprise's voucher codes should be listed in Mews Booking Engine (voucher codes are listed by default).
StartDateOffset
number
optional
Number of days after the day that the customer is booking that will be selected as the default start date in the date picker (for example, if 3
is set and a customer uses the booking engine on the 1st day of the month, the default start date will be the 4th). If left blank, the default will be 0.
EndDateOffset
number
optional
Number of days after the day that the customer is booking that will be selected as the default end date in the date picker (for example, if 3
is set and a customer uses the booking engine on the 1st day of the month, the default end date will be the 3rd). If left blank, the default will be 4
.
GtmContainerId
string
optional
Google Tag Manager identifier.
IntroVideoUrl
string
optional
Booking engine's intro video URL.
LanguageCode
string
optional
NowUtc
string
required
Current server date and time in UTC timezone in ISO 8601 format.
PrimaryColor
string
optional
Booking engine's primary color in Hex format.
Theme
optional
Booking engine's theme variant.
VoucherCode
string
optional
Voucher code which enables special rate offerings.
Theme
Light
Dark
City
Id
string
required
Unique identifier of the city.
ImageId
string
optional
Unique identifier of the city image.
Name
required
City name.
Configuration
Id
string
required
Unique identifier of the configuration.
AdultCount
number
optional
Default number of adults.
ChildCount
number
optional
Default number of children.
ChildSelectionEnabled
boolean
optional
Determines whether to allow adding children to reservations (true by default).
CompetitorPriceRelativeAdjustment
number
optional
Percentage markup with which competitor's prices (listed in the rate comparison banner if DisplayRateComparison
is set to true
) will be shown, compared to enterprise's Best Available Rate (BAR). For example, if enterprise's BAR costs 50, and entered here is 1
, their rate will be shown as 50. If here is entered 1.1
, their rate will be shown as 55 (as here is added a 10% markup).
CompetitorRateDescription
required
Description differentiating enterprise's online booking from competitors booking. (for example, 20% online booking discount
or Breakfast included
).
DisplayAvailability
boolean
optional
Determines whether to display property's availability next to maximum occupancy in space categories (availability will be shown by default).
DisplayRateComparison
boolean
optional
Determines whether to display rate comparison.
DisplaySpecialRequests
boolean
optional
Determines whether to display special requests field during checkout.
Enterprise
required
Enterprise to which the Configuration
belongs.
OnlineTravelAgencies
array of string
required
Array of travel agencies to include in comparison banner.
PaymentCardRequirement
required
Determines how to handle payment cards.
RequiredFields
required
Form fields which are required and need to be filled in.
ServiceId
string
required
Unique identifier of the service to which the configuration is bound.
Service
Id
string
required
Unique identifier of the service.
EnterpriseId
string
required
Identifier of the enterprise the service belongs to.
Ordering
number
required
Number defining the ordering of the services.
CreatedUtc
string
required
Date and time of the service creation in UTC timezone in ISO 8601 format.
IsActive
boolean
required
Whether the service is still active.
Names
required
Service name.
ShortNames
required
Service short name.
Data
required
Additional information about the specific service.
Service data
Discriminator
required
Determines type of value.
Value
object
required
Service data discriminator
Bookable
- Data specific to a bookable service.
Bookable service data
StartOffset
string
required
Offset from the start of the time unit defining the default start of the reservations in ISO 8601 duration format.
EndOffset
string
required
Offset from the end of the time unit defining the default end of the reservations in ISO 8601 duration format.
TimeUnit
required
Time unit of the service.
Time units represent a fixed, finite time interval: a minute, a day, a month, etc. A Time unit defines the operable periods for a bookable service. We currently only support the Day unit. We think of the daily time unit as the physical time unit that starts at midnight and ends at midnight the following day. Start offsets are anchored to the start of the time unit and end offsets are anchored to the end of the time unit. StartOffset
and EndOffset
define the default start and end of the service (so, the service orders).
Positive end offsets of the daily time unit define the nightly service as depicted in the diagram below.
Negative or zero end offsets of the daily time unit define the daily service as depicted in the diagram below.
Time unit
Day
...
Payment card requirement
NotRequired
- Payment card info is never required.AlwaysRequired
- Payment card info is always required and validated.NotRequiredForFullyPaidBookings
- Payment card info is not required for fully paid bookings. Otherwise required.NotRequiredForFullyOrPartiallyPaidBookings
- Payment card info is not required for fully or partially paid bookings. Otherwise required.
Required field
Telephone
Enterprise
Id
string
required
Unique identifier of the enterprise.
AcceptedCurrencyCodes
array of string
required
Array of currency codes in ISO 4217 format accepted by the enterprise.
AdditionalLegalStatements
required
Additional legal statements.
Address
required
Address of the enterprise.
Categories
required
Array of active room categories of the enterprise.
CategoryImageAssignments
required
Array of images representing the category image.
CityId
string
required
DefaultCurrencyCode
string
required
Default enterprise currency code in ISO 4217 format.
DefaultLanguageCode
string
required
Default enterprise language in ISO format.
DefaultRateCurrencyCode
string
required
Default enterprise rate currency code in ISO 4217 format.
Description
required
Enterprise description.
Email
string
required
Email of the enterprise.
IanaTimeZoneIdentifier
string
required
IANA time zone identifer.
ImageId
string
optional
Unique identifier of the enterprise logo.
IntroImageId
string
optional
Unique identifier of the enterprise intro image.
Name
required
Enterprise name.
Pricing
required
Pricing method used by the enterprise.
PrivacyPolicyUrl
required
Enterprise privacy policy URL.
Products
required
Array of active products which can be offered to the customer.
TaxEnvironmentCode
string
required
Tax environment code.
Telephone
string
required
Telephone of the enterprise.
TermsAndConditionsUrl
required
Enterprise terms and conditions URL.
Address
City
string
optional
City.
CountryCode
string
optional
Latitude
number
optional
The latitude.
Longitude
number
optional
The longitude.
Line1
string
optional
First address line.
Line2
string
optional
Second address line.
PostalCode
string
optional
Postal code.
Category image assignment
Id
string
required
Unique identifier of the room category.
CategoryId
string
required
ImageId
string
required
Ordering
number
required
Ordinal number of the image that can be used to display the images in order defined in the administration.
Pricing method
Gross
- The enterprise shows amount with gross prices.Net
- The enterprise shows amount with net prices.
Last updated