Rules
Get all rules
Returns all rules applied with the reservations. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/rules/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.
Rule extent
RuleActions
bool
optional
Whether the response should contain rule actions.
Rates
bool
optional
Whether the response should contain rates.
RateGroups
bool
optional
Whether the response should contain rate groups.
ResourceCategories
bool
optional
Whether the response should contain rate resource categories.
BusinessSegments
bool
optional
Whether the response should contain business segments.
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.
Rule
Id
string
required
Unique identifier of the rule.
CreatedUtc
string
required
Creation date and time of the rule in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the rule in UTC timezone in ISO 8601 format.
Rule conditions
MinimumTimeUnitCount
string
required
Condition based on minimum amount of time units.
MaximumTimeUnitCount
string
required
Condition based on maximum amount of time units.
Rule condition
Value
string
required
Value of the condition depending on the property. E.g. Reservation origin in case of origin condition or unique identifier of a rate in case of rate condition.
Condition type
Equals
NotEquals
Rule action
Id
string
required
Unique identifier of the rule action.
RuleId
string
required
Unique identifier of the rule.
Rule action data
Rule action discriminator
Product
- Data specific to a product.
Rule action product data
ProductId
string
required
Unique identifier of product.
Product action type
Add
- Adds specified item.Delete
- Deletes specified item.
Last updated