Services
Last updated
Last updated
Get availability for the specified service for each time unit in the specified date interval.
[ApiBaseUrl]/api/distributor/v1/services/getAvailability
Property | Type | Contract | Description |
---|---|---|---|
Get pricing for the specified service for each time unit in the specified date interval.
[ApiBaseUrl]/api/distributor/v1/services/getPricing
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.
EnterpriseId
string
required
Unique identifier of the enterprise.
ServiceId
string
required
Unique identifier of the Service for which availability should be returned.
StartUtc
string
required
Start date of the requested interval.
EndUtc
string
required
End date of the requested interval.
CategoryIds
array of string
optional
Unique identifiers of specific categories for which availability should be returned. If omitted, availability will be returned for all categories.
LanguageCode
string
optional
Code of the language. Supported language codes
TimeUnitStartsUtc
array of string
required
Each time unit specified in request interval. Values are in UTC timezone in ISO 8601 format.
CategoryAvailabilities
array of Category Availability
required
List of availability counts for each category. Each availability number belongs to TimeUnitStartsUtc linked by same index.
CategoryId
string
required
Identifier of the room category.
Availabilities
array of number
required
List of availability counts for each TimeUnitStartsUtc linked by same index.
Client
string
required
Identification of the client as described in Authorization.
EnterpriseId
string
required
Unique identifier of the enterprise.
ServiceId
string
required
Unique identifier of the Service for which availability should be returned.
StartUtc
string
required
Start date of the requested interval.
EndUtc
string
required
End date of the requested interval.
CategoryIds
array of string
optional
Unique identifiers of specific room categories for which pricing should be computed. If omitted, pricing will be computed and returned for all room categories.
RateIds
array of string
optional
Unique identifiers of specific rates for which pricing should be computed. If omitted, pricing will be computed and returned for all rates.
LanguageCode
string
optional
Code of the language. Supported language codes
CurrencyCode
string
optional
Currency code which should be used for prices in the response. Supported currency codes
RateGroups
array of Rate group
required
Information about all available rate groups.
Rates
array of Rate
required
Information about all available rates.
CategoryPrices
array of Category price
required
Prices for all specified categories.
CategoryId
string
required
Unique identifier of category.
OccupancyPrices
array of objects with arrays of Occupancy
required
List of occupancies for age categories against which rate group prices are supplied.
RateGroupPrices
array of Rate group price
required
Prices for the given category for each of the occupancy bands specified in OccupancyPrices.
AgeCategoryId
string
required
Identifier of age category.
PersonCount
number
required
Number of persons of this Age category type.
MinRateId
string
required
Unique identifier of rate.
MinPrice
Min price objects
required
Minimal price for the specified interval for rate.
MaxPrice
Max price objects
required
Maximal price for the specified interval for rate.
TotalAmount
Amount objects
required
Total price for specified interval.
AverageAmountPerTimeUnit
Amount objects
required
Price for one timeUnit. (Day/Night)
TotalAmount
Amount objects
required
Total price for specified interval.
AverageAmountPerTimeUnit
Amount objects
required
Price for one timeUnit. (Day/Night)
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
.
ServiceId
string
required
Unique identifier of the Service to which the rate is bound.
RateGroupId
string
required
Rate group Identifier of the rate.
Ordering
number
required
Number defining the ordering of the rate.
Currency
string
required
ISO 4217 code of the currency.
GrossValue
number
required
Gross value of the amount. (Net + sum of TaxValues
)
NetValue
number
required
Net value of the amount.
Breakdown.Items
array of Complete tax
required
List of taxes related to this amount.
Currency
string
required
Amount currency.
GrossValue
number
required
Gross value of the amount. (Net + sum of Breakdown > Items
)
NetValue
number
required
Net value of the amount.
Breakdown.Items
array of Complete tax
required
List of taxes related to this amount.
TaxRateCode
string
Unique identifier of the tax rate.
NetValue
number
required
Net value taxValue is calculated from.
TaxValue
number
required
Tax value calculated from NetValue
based on Tax configuration.