Configuration
Last updated
Last updated
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.
[ApiBaseUrl]/api/distributor/v1/configuration/get
Property | Type | Contract | Description |
---|---|---|---|
Light
Dark
Bookable
- Data specific to a bookable 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.
Day
...
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.
Telephone
Gross
- The enterprise shows amount with gross prices.
Net
- The enterprise shows amount with net prices.
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 | Contract | Description |
---|---|---|---|
Client
string
required
Identification of the API client, as described in Authorization.
PrimaryId
string
required
Unique identifier of the primary Configuration.
Ids
array of string
required
Set of unique identifiers of Configurations.
Cities
array of City
required
Cities supported by the enterprise.
CityId
string
required
Unique identifier of the default city.
Configurations
array of Configurations
required
Configurations of the booking engine instances.
Services
array of Services
required
Services that the configurations are set up for.
CurrencyCode
string
optional
ISO 4217 code of the currency which Mews Booking Engine should use when displaying prices. Supported currency codes
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
Language code which Mews Booking Engine should use. Supported language codes
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.
Id
string
required
Unique identifier of the city.
ImageId
string
optional
Unique identifier of the city image.
Name
required
City name.
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
string Payment card requirement
required
Determines how to handle payment cards.
RequiredFields
array of Required fields
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.
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.
Discriminator
string Service data discriminator
required
Determines type of value.
Value
object
required
Structure of object depends on Service data discriminator.
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.
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
array of Localized text
required
Additional legal statements.
Address
required
Address of the enterprise.
Categories
array of Room category
required
Array of active room categories of the enterprise.
CategoryImageAssignments
array of Category image assignment
required
Array of images representing the category image.
CityId
string
required
Unique identifier of the City.
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
string Pricing method
required
Pricing method used by the enterprise.
PrivacyPolicyUrl
required
Enterprise privacy policy URL.
Products
array of Product
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.
City
string
optional
City.
CountryCode
string
optional
ISO 3166-1 code of the Country.
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.
Id
string
required
Unique identifier of the room category.
CategoryId
string
required
Unique identifier of the Room category for which the image is attached.
ImageId
string
required
Unique identifier of the image that can be used in the URL to get the image file.
Ordering
number
required
Ordinal number of the image that can be used to display the images in order defined in the administration.