Routing rules
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns all routing rules. Note this operation uses and supports .
[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.
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.
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.
PartnerCompany
TravelAgency
...
Always
PrepaidOnly
...
AllStayItems
SelectedStayItems
...
CompanyAsDetails
CompanyAsOwner
...
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.
Adds a new routing rules.
[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.
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
.
RoutingRules
required
Routing rules.
Updates routing rules.
[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.
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.
Value
array of string
optional
Value which is to be updated.
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).
RoutingRules
required
Collection of Routing rules.
Deletes routing rules.
[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.
Unique identifiers of the . If not specified, the operation returns data for all enterprises within scope of the Access Token.
Unique identifier of the .
Unique identifier of the .
Interval in which was updated.
array of
Unique identifier of the .
Unique identifier of the routing rule is assigned to.
string
string
Unique identifier of the routing rule is assigned to.
string
array of
Unique identifier of the routing rule is assigned to.
string
string
Unique identifier of the routing rule is assigned to.
string
string
array of
array of
Unique identifier of the (or null
should it not be updated).
to the routing rule (or null
should it not be updated).
Unique identifier of the routing rule is assigned to (or null
should it not be updated).
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).
What should be routed (or null
should it not be updated).
Relation of company to the bill (or null
should it not be updated).
array of