Rates
Get all rates
Returns all rates (pricing setups) of the default service provided by the enterprise. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/rates/getAll
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseIds
array of string
optional, max 1000 items
Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.
Extent
optional
Extent of data to be returned. If not specified, both Rates
and RateGroups
will be included.
RateIds
array of string
optional, max 1000 items
UpdatedUtc
optional, max length 3 months
Interval in which Rate
was updated.
ServiceIds
array of string
required, max 1000 items
ExternalIdentifiers
array of string
optional, max 1000 items
ActivityStates
optional
Whether to return only active, only deleted, or both types of record. If not specified, both active and deleted will be returned.
Limitation
required
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
Rate extent
Extent of data to be returned.
Rates
boolean
optional
Whether the response should contain rates.
AvailabilityBlockAssignments
boolean
required
Whether the response should contain availability block assignments.
RateGroups
boolean
optional
Whether the response should contain rate groups. Deprecated! Use rateGroups/getAll
Response
Rates
required, max 1000 items
Rates of the default service.
Cursor
string
optional
Unique identifier of the item one newer in time order than the items to be returned. If Cursor is not specified, i.e. null, then the latest or most recent items will be returned.
RateGroups
required, max 1000 items
RateRestrictions
required
Rate
Id
string
required
Unique identifier of the rate.
GroupId
string
required
Unique identifier of Rate Group
where the rate belongs.
ServiceId
string
required
Unique identifier of the Service
.
BaseRateId
string
optional
Unique identifier of the base Rate
.
IsBaseRate
boolean
required
Indicates if this is a base rate.
BusinessSegmentId
string
optional
Unique identifier of the Business Segment
.
IsActive
boolean
required
Indicates if this rate is active.
IsEnabled
boolean
required
Indicates if this rate is currently available to customers.
IsPublic
boolean
required
Indicates if this rate is publicly available.
Type
required
Type of the rate.
Names
required
All translations of the name.
ShortName
string
optional
Short name of the rate (in the default language).
UpdatedUtc
string
required
Interval in which the rates were updated.
ExternalNames
optional
All translations of the external name of the rate.
Description
optional
All translations of the description of the rate.
ExternalIdentifier
string
optional, max length 255 characters
Identifier of the rate from external system.
Name
string
optional
Name of the rate (in the default language). Deprecated! Use Names
instead
Rate type
Public
Private
AvailabilityBlock
Rate group (ver 2017-04-12)
Id
string
required
Unique identifier of the rate group.
ServiceId
string
required
Unique identifier of the Service that the rate group belongs to.
IsActive
boolean
required
Whether the rate group is still active.
Name
string
optional
Name of the rate group.
ExternalIdentifier
string
optional, max length 255 characters
External identifier of the rate group.
Rate restriction result
DateRestrictions
required
Date restrictions for the rate.
EarlinessRestrictions
required
Earliness restrictions for the rates that are only available up to before arrival.
LengthRestrictions
required
Length restrictions for the rate.
Date restriction
Id
string
required
Unique identifier of the rate restriction.
RateId
string
required
Unique identifier of the rate.
IsInherited
boolean
required
Whether the rate restriction is inherited from the parent rate.
StartUtc
string
optional
Start of the rate restriction in UTC timezone in ISO 8601 format.
EndUtc
string
optional
End of the rate restriction in UTC timezone in ISO 8601 format.
Days
array of string
optional
The restricted days of week.
ExternalIdentifier
string
optional
Identifiers of from external systems.
Earliness restriction
Id
string
required
Unique identifier of the rate restriction.
RateId
string
required
Unique identifier of the rate.
IsInherited
boolean
required
Whether the rate restriction is inherited from the parent rate.
StartUtc
string
optional
Start of the rate restriction in UTC timezone in ISO 8601 format.
EndUtc
string
optional
End of the rate restriction in UTC timezone in ISO 8601 format.
Days
array of string
optional
The restricted days of week.
ExternalIdentifier
string
optional
Identifiers of from external systems.
MinAdvance
string
optional
The minimum time before the reservation starts, you can reserve in ISO 8601 duration format.
MaxAdvance
string
optional
The maximum time before the reservation starts, you can reserve in ISO 8601 duration format.
Length restriction
Id
string
required
Unique identifier of the rate restriction.
RateId
string
required
Unique identifier of the rate.
IsInherited
boolean
required
Whether the rate restriction is inherited from the parent rate.
StartUtc
string
optional
Start of the rate restriction in UTC timezone in ISO 8601 format.
EndUtc
string
optional
End of the rate restriction in UTC timezone in ISO 8601 format.
Days
array of string
optional
The restricted days of week.
ExternalIdentifier
string
optional
Identifiers of from external systems.
MinLength
string
optional
Minimal reservation length in ISO 8601 duration format.
MaxLength
string
optional
Maximal reservation length in ISO 8601 duration format.
Get rate pricing
Returns prices for a given rate for a specified time interval. Prices will be returned for all service time units that the specified time interval intersects. So, for example, an interval 1st Jan 23:00 UTC - 1st Jan 23:00 UTC
will result in one price for 2nd Jan
, while Interval 1st Jan 23:00 UTC - 2nd Jan 23:00 UTC
will result in two prices for 2nd Jan
and 3rd Jan
(assuming a time unit period of "Day"). UTC timestamps must correspond to the start boundary of a time unit, e.g. 00:00 converted to UTC for a time unit of "Day". Other timestamps are not permitted. The maximum size of time interval depends on the service's time unit: 367 hours if hours, 367 days if days, or 60 months if months. For more information about time units, see Time units.
Request
[PlatformAddress]/api/connector/v1/rates/getPricing
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
RateId
string
required
Unique identifier of the Rate
.
ProductId
string
optional
Unique identifier of the Product
.
FirstTimeUnitStartUtc
string
required
LastTimeUnitStartUtc
string
required
Response
Currency
string
required
TimeUnitStartsUtc
array of string
required
Set of all time units covered by the time interval; expressed in UTC timezone ISO 8601 format.
BaseAmountPrices
required
Base prices of the rates for each time unit covered by the time interval.
CategoryPrices
required
Resource category prices.
CategoryAdjustments
required
Resource category adjustments.
AgeCategoryAdjustments
required
Assigns different pricing or occupancy based on the guest's age.
RelativeAdjustment
number
required
Specific amount which shows the difference between this rate and the base rate.
AbsoluteAdjustment
number
required
Relative amount which shows the difference between this rate and the base rate.
EmptyUnitAdjustment
number
required
Price adjustment for when the resource booked with this rate is not full to capacity.
ExtraUnitAdjustment
number
required
Price adjustment for when the resource booked with this rate exceeds capacity.
DatesUtc
array of string
optional
Deprecated! Use TimeUnitStartsUtc
instead.
BasePrices
array of number
required
Deprecated! Use BaseAmountPrices
instead.
Resource category pricing
CategoryId
string
required
Unique identifier of the category.
AmountPrices
required
Prices of the rate for the resource category in the covered dates.
Prices
array of number
required
Prices of the rate for the resource category in the covered dates. Deprecated! Use AmountPrices
instead.
Resource category adjustment
CategoryId
string
required
Unique identifier of the adjustment category.
ParentCategoryId
string
optional
Unique identifier of the parent category that serves as a base price for the current category.
AbsoluteValue
number
required
Absolute value of the adjustment (e.g. 50
represents 50 EUR in case the rate currency is EUR
).
RelativeValue
number
required
Relative value of the adjustment (e.g. 0.5
represents 50% increase).
Age category adjustment
AgeCategoryId
string
required
Unique identifier of the age category.
AbsoluteValue
number
required
Absolute value of the adjustment (e.g. 50
represents 50 EUR in case the rate currency is EUR
).
Type
required
Age category adjustment type
Age category adjustment type
ExtraOccupancyAdjustment
NegativeOccupancyAdjustment
StandardOccupancyAdjustment
Add rates
Adds rates to the enterprise. Note this operation supports Portfolio Access Tokens. Rate type of AvailabilityBlock
cannot be created via this operation.
Request
[PlatformAddress]/api/connector/v1/rates/add
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
Rates
required, max 1000 items
Information about rates to be created.
EnterpriseId
string
optional
Rate parameters
ServiceId
string
required
Unique identifier of the service.
RateGroupId
string
required
Unique identifier of the rate group under which rate is assigned.
IsEnabled
boolean
optional
Whether the rate is available to customers. false
will be used as a default when not provided.
Type
required
Type of the rate.
AccountingCategoryId
string
optional
Unique identifier of the accounting category the rate belongs to.
BusinessSegmentId
string
optional
Unique identifier of the business segment.
Names
required
All translations of the name of the rate.
ShortNames
optional
All translations of the short name of the rate.
ExternalNames
optional
All translations of the external name of the rate.
Descriptions
optional
All translations of the description.
PricingType
required
Discriminator in which field inside Pricing
contains additional data.
ExternalIdentifier
string
optional, max length 255 characters
Identifier of the rate from external system.
Pricing
optional
Contains additional data about pricing of the rate.
Rate Add Type
Public
Private
Rate pricing discriminator
BaseRatePricing
DependentRatePricing
Rate pricing data parameters
BaseRatePricing
optional
Additional data for rate with base rate pricing. Required when PricingType
is BaseRatePricing
.
DependentRatePricing
optional
Additional data for rate with dependent rate pricing. Required when PricingType
is DependentRatePricing
.
Base rate pricing parameters
Amount
optional
Price of the product that overrides the price defined in Mews.
NegativeOccupancyAdjustment
number
required
This is the amount added to the price when occupancy of the space is less than the Space Category Capacity. To provide a discount price for under-occupancy, simply use a negative value.
ExtraOccupancyAdjustment
number
required
This is the amount added to the price when the Space Category Capacity is exceeded.
Dependent rate pricing parameters
BaseRateId
string
required
Unique identifier of the base rate.
RelativeAdjustment
number
required
Relative amount which shows the difference between this rate and the base rate.
AbsoluteAdjustment
number
required
Specific amount which shows the difference between this rate and the base rate.
Response
Rates
optional, max 1000 items
Rates that have been added.
Update rate price
Updates the prices for a given rate. You can make multiple price updates with one API call, and for each one specify the time interval for which the update applies, the price value and the applicable resource category. The price will be updated for all service time units that the specified time interval intersects. The price is per time unit, e.g. per day or per month. If the resource category CategoryId
is not specified, the updated price will apply to the base price for all resource categories. Note that prices are defined daily, so when the server receives the UTC interval, it first converts it to the enterprise timezone and updates the price on all dates that the interval intersects. Only root rates can be updated (the rates that have no base rate, that have BaseRateId
set to null
). It is not permitted to update historical prices older than specified by EditableHistoryInterval
. Future prices may be updated up to 5 years in the future. The maximum size of time interval is 100 time units or 2 years, whichever is the shorter amount of time.
Request
[PlatformAddress]/api/connector/v1/rates/updatePrice
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
RateId
required
Unique identifier of the Rate
.
ProductId
string
optional
Unique identifier of the Product
.
PriceUpdates
required, max 1000 items
Price adjustments for specific time intervals.
Rate price update
CategoryId
string
optional
Unique identifier of the Resource category whose prices to update. If not specified, base price is updated.
Value
number
optional
New value of the rate on the interval. If not specified, removes all adjustments within the interval.
FirstTimeUnitStartUtc
string
optional
LastTimeUnitStartUtc
string
optional
Response
Set rates
Restricted!This operation is currently in beta-test and as such it is subject to change.
Adds new Rates or updates existing ones if they are matched by Id
or ExternalIdentifier
property. This operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/rates/set
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseId
string
optional
Rates
required, max 100 items
Rates to be added or updated.
Set rate parameters
Id
string
optional
Unique identifier of the rate. If it matches an existing rate, that rate will be updated. If no match is found, an error will be returned.
ExternalIdentifier
string
optional, max length 255 characters
Unique identifier of the rate in the external system. If Id
is not provided and ExternalIdentifier
matches an existing rate, the corresponding rate will be updated. If no match is found, a new rate will be created.
ServiceId
string
required
Unique identifier of the service. Ignored in case of updating an existing rate.
RateGroupId
string
required
Unique identifier of the rate group under which rate is assigned. Ignored in case of updating an existing rate.
IsEnabled
boolean
optional
Whether the rate is available to customers. false
will be used as a default when not provided.
Type
required
Type of the rate.
AccountingCategoryId
string
optional
Unique identifier of the accounting category the rate belongs to.
BusinessSegmentId
string
optional
Unique identifier of the business segment.
Names
required
All translations of the name of the rate.
ShortNames
optional
All translations of the short name of the rate.
ExternalNames
optional
All translations of the external name of the rate.
Descriptions
optional
All translations of the description.
PricingType
required
Rate pricing type. Must match existing pricing type in case of update.
Pricing
required
Contains additional data about pricing of the rate.
Response
Rates
optional, max 1000 items
Rates that were added or updated.
Delete rates
Deletes specified rates. This operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/rates/delete
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseId
string
optional
RateIds
array of string
required, max 10 items
Unique identifiers of the rates to be deleted.
Response
Last updated