Products
Get all products
Returns all products offered together with the specified services. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/products/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.
ProductIds
array of string
optional, max 1000 items
Unique identifiers of the product.
IncludeDefault
boolean
optional
Whether or not to include default products for the service, i.e. products which are standard includes and not true extras. For example, the night's stay would be the default product for a room reservation. These may be useful for accounting purposes but should not be displayed to customers for selection. If ProductIds
are provided, IncludeDefault
defaults to true, otherwise it defaults to false.
Limitation
required
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
Response
Cursor
string
optional
Unique identifier of the last and hence oldest product returned. This can be used in Limitation
in a subsequent request to fetch the next batch of older products.
Product
Id
string
required
Unique identifier of the product.
CategoryId
string
optional
Unique identifier of the Product category.
IsActive
boolean
required
Whether the product is still active.
ImageIds
array of string
optional
Unique identifier of the product image.
Ordering
integer
required
Order value for presentation purposes.
ExternalIdentifier
string
optional, max length 255 characters
Identifier of the product from external system.
CreatedUtc
string
required
Creation date and time of the product in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the product in UTC timezone in ISO 8601 format.
IsDefault
boolean
required
Deprecated!
Name
string
optional
Name of the product. Deprecated! Please use Names Deprecated! Use Names
instead.
ExternalName
string
optional
Name of the product meant to be displayed to customer. Deprecated! Please use ExternalNames Deprecated! Use ExternalNames
instead.
ShortName
string
optional
Short name of the product. Deprecated! Please use ShortNames Deprecated! Use ShortNames
instead.
Description
string
optional
Description of the product. Deprecated! Please use Descriptions Deprecated! Use Descriptions
instead.
Product charging mode
Once
PerTimeUnit
PerPersonPerTimeUnit
PerPerson
Product posting
Once
Daily
Product posting mode
Once
PerTimeUnit
Product options
BillAsPackage
boolean
required
Product should be displayed as part of a package.
Product classifications
Food
boolean
required
Product is classified as food.
Beverage
boolean
required
Product is classified as beverage.
Wellness
boolean
required
Product is classified as wellness.
CityTax
boolean
required
Product is classified as city tax.
Product pricing
Value
object
required
Structure of object depends on Discriminator
.
Product pricing data discriminator
Absolute
Relative
Relative product price
Multiplier
number
required
Deprecated!
Target
string
optional
Deprecated!
TaxRateCodes
array of string
optional
Deprecated!
ProductIds
array of string
optional
Deprecated!
Product consumption moment
ServiceOrderEnd
ServiceOrderStart
PostingTimeUnit
NextTimeUnit
Get product pricing
Restricted!This operation is currently in beta-test and as such it is subject to change.
Returns prices for a given product for a specified time interval. 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: 100 hours if hours, 100 days if days, or 24 months if months. For more information about time units, see Time unit. This operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/products/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.
ProductId
string
required
Unique identifier of the product.
FirstTimeUnitStartUtc
string
required
Start of the time interval, expressed as the timestamp for the start of the first time unit, in UTC timezone ISO 8601 format.
LastTimeUnitStartUtc
string
required
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.
Response
ProductId
string
required
Unique identifier of the product.
TimeUnitStartsUtc
array of string
required
Set of all time units covered by the time interval; expressed in UTC timezone ISO 8601 format.
BaseAmountPrices
array of Amount
required
Base prices of the product for each time unit covered by the time interval.
Age category price
AgeCategoryId
string
required
Unique identifier of the age category.
Update product pricing
Updates the prices for a given product. You can make multiple price updates with one API call, and for each one specify the price amount per Time unit and the time interval for which it applies. The price will be updated for all service time units that the specified time interval intersects. It is not permitted to update historical prices older than specified by EditableHistoryInterval
. This operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/products/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.
EnterpriseId
string
optional
Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.
PriceUpdates
array of Product price update
required, max 100 items
Price adjustments for specific time intervals.
Product price update
Value
number
optional
New value of the product on the interval. If not specified, removes all price adjustments within the interval.
FirstTimeUnitStartUtc
string
optional
Start of the time interval, expressed as the timestamp for the start of the first time unit, in UTC timezone ISO 8601 format.
LastTimeUnitStartUtc
string
optional
End of the time interval, expressed as the timestamp for the start of the last time unit, in UTC timezone ISO 8601 format. The maximum size of time interval depends on the service's time unit: 367 hours if hours, 367 days if days, or 24 months if months.
Response
Delete products
Deletes specified products. This operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/products/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
Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.
ProductIds
array of string
required, max 1000 items
Unique identifiers of the products to delete.
Response
Last updated