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
RoutingRuleIds
array of string
required, max 1000 items
CompanyIds
array of string
required, max 1000 items
UpdatedUtc
optional, max length 3 months
Limitation
required
Limitation on the quantity of data returned.
Response
RoutingRules
required
Collection of routing rules.
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.
EnterpriseId
string
required
CompanyId
string
required
CompanyRelation
required
Relation of the company to the routing rule.
Applicability
required
Determines if routing rule applies to all future reservations with this company or travel agency, or only future reservations that are prepaid.
ServiceId
string
required
RouteType
required
Determines to which stay items the routing rule applies.
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
required, max 1000 items
Collection of Routing rules to be added.
Routing rule parameters
CompanyId
string
required
CompanyRelation
required
Relation of the company to the routing rule.
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).
ServiceId
string
required
RouteType
required
What should be routed.
AssignmentTargetType
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
RoutingRules
required
Routing rules.
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
required, max 1000 items
Collection of Routing rules to be updated.
Routing rule update parameters
RoutingRuleId
string
required
Unique identifier of the routing rule.
CompanyId
optional
CompanyRelation
optional
ServiceId
required
Applicability
required
RouteType
required
AssignmentTargetType
optional
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
RoutingRules
required
Collection of Routing rules.
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
Was this helpful?