Routing rules
Get all routing rules
Returns all routing rules. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/routingRules/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.
Response
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.
Routing rule
Id
string
required
Unique identifier of the routing rule.
Applicability
string Applicability
required
Determines if routing rule applies to all future reservations with this company or travel agency, or only future reservations that are prepaid.
CreatedUtc
string
required
Creation date and time of the routing rule in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the routing rule in UTC timezone in ISO 8601 format.
SelectedStayItems
optional
Specific items to which the routing rule applies. Returns only if RouteType value is SelectedStayItems.
Company relation
PartnerCompany
TravelAgency
...
Applicability
Always
PrepaidOnly
...
Route type
AllStayItems
SelectedStayItems
...
Assignment target type
CompanyAsDetails
CompanyAsOwner
...
Selected stay items
Nights
boolean
required
Whether routing rule applies to nights.
CityTax
boolean
required
Whether routing rule applies to city tax.
ProductCategoryIds
array of string
optional
Product categories to which routing rule applies.
Add routing rules
Adds a new routing rules.
Request
[PlatformAddress]/api/connector/v1/routingRules/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.
RoutingRules
array of Routing rule parameters
required, max 1000 items
Collection of Routing rules to be added.
Routing rule parameters
Applicability
string Applicability
required
Determines if routing rule applies to all future reservations with this company or travel agency attached or only future reservations that are prepaid in online travel agency (OTA).
AssignmentTargetType
string Assignment target type
optional
Relation of company to the bill. Defaults to CompanyAsDetails.
SelectedStayItems
optional
To which stay items routing rule applies to. Required only if RouteType value is SelectedStayItems
.
Response
Update routing rules
Updates routing rules.
Request
[PlatformAddress]/api/connector/v1/routingRules/update
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.
RoutingRuleUpdates
array of Routing rule update parameters
required, max 1000 items
Collection of Routing rules to be updated.
Routing rule update parameters
RoutingRuleId
string
required
Unique identifier of the routing rule.
ServiceId
required
Unique identifier of the Service routing rule is assigned to (or null
should it not be updated).
Applicability
required
Applicability that determines if routing rule apply to all future reservations with this company or travel agency attached or only future reservations that are prepaid in online travel agency (OTA) (or null
should it not be updated).
AssignmentTargetType
optional
Relation of company to the bill Assignment target type (or null
should it not be updated).
SelectedStayItems
optional
To which stay items routing rule applies to. Required only if RouteType value is SelectedStayItems.
String array update value
Value
array of string
optional
Value which is to be updated.
Selected stay items update parameters
Nights
optional
Whether routing rule applies to nights (or null
should it not be updated).
CityTax
optional
Whether routing rule applies to city tax (or null
should it not be updated).
ProductCategoryIds
optional
Product categories to which the routing rule applies (or null
should it not be updated).
Response
Delete routing rules
Deletes routing rules.
Request
[PlatformAddress]/api/connector/v1/routingRules/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.
RoutingRuleIds
array of string
required, max 1000 items
Unique identifiers of the routing rules to be deleted.
Response
Last updated