Services
Get services availability
Get availability for the specified service for each time unit in the specified date interval.
Request
[ApiBaseUrl]/api/distributor/v1/services/getAvailability
Client
string
required
EnterpriseId
string
required
Unique identifier of the enterprise.
ServiceId
string
required
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
Response
TimeUnitStartsUtc
array of string
required
Each time unit specified in request interval. Values are in UTC timezone in ISO 8601 format.
CategoryAvailabilities
required
List of availability counts for each category. Each availability number belongs to TimeUnitStartsUtc linked by same index.
Category Availability
CategoryId
string
required
Identifier of the room category.
Availabilities
array of number
required
List of availability counts for each TimeUnitStartsUtc linked by same index.
Get services pricing
Get pricing for the specified service for each time unit in the specified date interval.
Request
[ApiBaseUrl]/api/distributor/v1/services/getPricing
Client
string
required
EnterpriseId
string
required
Unique identifier of the enterprise.
ServiceId
string
required
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
CurrencyCode
string
optional
Response
RateGroups
required
Information about all available rate groups.
Rates
required
Information about all available rates.
CategoryPrices
required
Prices for all specified categories.
Category price
CategoryId
string
required
Unique identifier of category.
OccupancyPrices
required
List of occupancies for age categories against which rate group prices are supplied.
RateGroupPrices
required
Prices for the given category for each of the occupancy bands specified in OccupancyPrices.
Occupancy
AgeCategoryId
string
required
Identifier of age category.
PersonCount
number
required
Number of persons of this Age category type.
Rate group price
MinRateId
string
required
Unique identifier of rate.
MinPrice
required
Minimal price for the specified interval for rate.
MaxPrice
required
Maximal price for the specified interval for rate.
Min price
TotalAmount
required
Total price for specified interval.
AverageAmountPerTimeUnit
required
Price for one timeUnit. (Day/Night)
Max price
TotalAmount
required
Total price for specified interval.
AverageAmountPerTimeUnit
required
Price for one timeUnit. (Day/Night)
Rate
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
RateGroupId
string
required
Ordering
number
required
Number defining the ordering of the rate.
Amount
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
required
List of taxes related to this amount.
Rate
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
required
List of taxes related to this amount.
Complete tax
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.
Response diagram
Last updated
Was this helpful?