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
EnterpriseId
string
required
Unique identifier of the enterprise.
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.
Response
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.
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
EnterpriseId
string
required
Unique identifier of the enterprise.
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.
CurrencyCode
string
optional
Currency code which should be used for prices in the response. Supported currency codes
Response
Category price
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.
Occupancy
AgeCategoryId
string
required
Identifier of age category.
PersonCount
number
required
Number of persons of this Age category type.
Rate group price
Min price
Max price
Rate
Id
string
required
Unique identifier of the rate.
IsPrivate
boolean
required
Set to true
for promotion rate enabled by provided VoucherCode
.
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.
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.
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