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
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Identification of the API client, as described in Authorization. |
| string | required | Unique identifier of the primary Configuration. |
| array of string | required | Set of unique identifiers of Configurations. |
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of City | required | Cities supported by the enterprise. |
| string | required | Unique identifier of the default city. |
| array of Configurations | required | Configurations of the booking engine instances. |
| array of Services | required | Services that the configurations are set up for. |
| string | optional | ISO 4217 code of the currency which Mews Booking Engine should use when displaying prices. Supported currency codes |
| boolean | required | Determines whether enterprise's voucher codes should be listed in Mews Booking Engine (voucher codes are listed by default). |
| 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 |
| 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 |
| string | optional | Google Tag Manager identifier. |
| string | optional | Booking engine's intro video URL. |
| string | optional | Language code which Mews Booking Engine should use. Supported language codes |
| string | required | Current server date and time in UTC timezone in ISO 8601 format. |
| string | optional | Booking engine's primary color in Hex format. |
| optional | Booking engine's theme variant. | |
| string | optional | Voucher code which enables special rate offerings. |
Theme
Light
Dark
City
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the city. |
| string | optional | Unique identifier of the city image. |
| required | City name. |
Configuration
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the configuration. |
| number | optional | Default number of adults. |
| number | optional | Default number of children. |
| boolean | optional | Determines whether to allow adding children to reservations (true by default). |
| number | optional | Percentage markup with which competitor's prices (listed in the rate comparison banner if |
| required | Description differentiating enterprise's online booking from competitors booking. (for example, | |
| boolean | optional | Determines whether to display property's availability next to maximum occupancy in space categories (availability will be shown by default). |
| boolean | optional | Determines whether to display rate comparison. |
| boolean | optional | Determines whether to display special requests field during checkout. |
| required | Enterprise to which the | |
| array of string | required | Array of travel agencies to include in comparison banner. |
| string Payment card requirement | required | Determines how to handle payment cards. |
| array of Required fields | required | Form fields which are required and need to be filled in. |
| string | required | Unique identifier of the service to which the configuration is bound. |
Service
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the service. |
| string | required | Identifier of the enterprise the service belongs to. |
| number | required | Number defining the ordering of the services. |
| string | required | Date and time of the service creation in UTC timezone in ISO 8601 format. |
| boolean | required | Whether the service is still active. |
| required | Service name. | |
| required | Service short name. | |
| required | Additional information about the specific service. |
Service data
Property | Type | Contract | Description |
---|---|---|---|
| string Service data discriminator | required | Determines type of value. |
| object | required | Structure of object depends on Service data discriminator. |
Service data discriminator
Bookable
- Data specific to a bookable service.
Bookable service data
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Offset from the start of the time unit defining the default start of the reservations in ISO 8601 duration format. |
| string | required | Offset from the end of the time unit defining the default end of the reservations in ISO 8601 duration format. |
| 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
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the enterprise. |
| array of string | required | Array of currency codes in ISO 4217 format accepted by the enterprise. |
| array of Localized text | required | Additional legal statements. |
| required | Address of the enterprise. | |
| array of Room category | required | Array of active room categories of the enterprise. |
| array of Category image assignment | required | Array of images representing the category image. |
| string | required | Unique identifier of the City. |
| string | required | Default enterprise currency code in ISO 4217 format. |
| string | required | Default enterprise language in ISO format. |
| string | required | Default enterprise rate currency code in ISO 4217 format. |
| required | Enterprise description. | |
| string | required | Email of the enterprise. |
| string | required | IANA time zone identifer. |
| string | optional | Unique identifier of the enterprise logo. |
| string | optional | Unique identifier of the enterprise intro image. |
| required | Enterprise name. | |
| string Pricing method | required | Pricing method used by the enterprise. |
| required | Enterprise privacy policy URL. | |
| array of Product | required | Array of active products which can be offered to the customer. |
| string | required | Tax environment code. |
| string | required | Telephone of the enterprise. |
| required | Enterprise terms and conditions URL. |
Address
Property | Type | Description | |
---|---|---|---|
| string | optional | City. |
| string | optional | ISO 3166-1 code of the Country. |
| number | optional | The latitude. |
| number | optional | The longitude. |
| string | optional | First address line. |
| string | optional | Second address line. |
| string | optional | Postal code. |
Category image assignment
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the room category. |
| string | required | Unique identifier of the Room category for which the image is attached. |
| string | required | Unique identifier of the image that can be used in the URL to get the image file. |
| 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