Cancellation policies
Get all cancellation policies
Restricted!This operation is currently in beta-test and as such it is subject to change. Returns all cancellation policies, filtered by services, rate groups and other filters. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/cancellationPolicies/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.
CancellationPolicyIds
array of string
optional, max 1000 items
Unique identifiers of the Cancellation Policy. Required if no other filter is provided.
RateGroupIds
array of string
optional, max 1000 items
Unique identifiers of the Rate group. Required if no other filter is provided.
UpdatedUtc
optional, max length 3 months
Interval in which the Cancellation Policy was updated. Required if no other filter is provided.
ActivityStates
array of Activity state
optional
Whether to return only active, only deleted, or both types of record. If not specified, only active records will be returned.
Limitation
required
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
Response
CancellationPolicies
array of Cancellation Policy
required, max 1000 items
The filtered cancellation policies.
Cursor
string
optional
Unique identifier of the last and hence oldest cancellation policy returned. This can be used in Limitation in a subsequent request to fetch the next batch of older cancellation policies.
Cancellation Policy
Id
string
required
Unique identifier of the cancellation policy.
RateGroupId
string
required
Unique identifier of the rate group the cancellation policy belongs to.
CreatedUtc
string
required
Date and time of the cancellation policy creation in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Date and time of the cancellation policy update in UTC timezone in ISO 8601 format.
Applicability
required
Applicability mode of the cancellation policy.
FeeExtent
array of Cancellation Fee Extent
required
Extent for the cancellation fee, i.e. what should be in scope for the automatic payment.
ApplicabilityOffset
string
required
Offset for order start (assuming Applicability is set to Start) from which the fee is applied.
FeeMaximumTimeUnits
integer
optional
Maximum number of time units the cancellation fee is applicable to.
RelativeFee
number
required
Relative value of the fee, as a percentage of the reservation price.
IsActive
boolean
required
Whether the cancellation policy is still active.
Cancellation Policy Applicability
Creation
Start
StartDate
Cancellation Fee Extent
TimeUnits
Products
Get cancellation policies by reservations
Restricted!This operation is currently in beta-test and as such it is subject to change.
Gets cancellation policies for enterprise grouped by reservation for granular cancellation policies flow. This operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/cancellationPolicies/getByReservations
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.
ReservationIds
array of string
required, max 100 items
Unique identifiers of the Reservation
.
Response
CancellationPolicies
required, max 1300 items
List of cancellation policies data grouped by reservation.
Cancellation policy data grouped by reservation
ReservationId
string
required
Unique identifier of the reservation.
Cancellation policy data
Applicability
required
Applicability mode of the cancellation policy.
FeeExtents
array of Cancellation Fee Extent
required
Extent for the cancellation fee, i.e. what should be in scope for the automatic payment.
ApplicabilityOffset
string
required
Offset for order start (assuming Applicability is set to Start) from which the fee is applied in ISO 8601 duration format.
FeeMaximumTimeUnits
integer
optional
Maximum number of time units the cancellation fee is applicable to.
RelativeFee
number
required
Relative value of the fee, as a percentage of the reservation price.
Cancellation Policy Applicability
Creation
Start
StartDate
Cancellation Fee Extent
Nothing
TimeUnits
Products
Everything
Get cancellation policies by rates
Restricted!This operation is currently in beta-test and as such it is subject to change.
Gets cancellation policies for enterprise grouped by rate for granular cancellation policies flow. This operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/cancellationPolicies/getByRates
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.
RateIds
array of string
required, max 100 items
Unique identifiers of the Rate
.
ReservationStartUtc
string
required
Start of the reservation interval in UTC timezone in ISO 8601 format.
ReservationEndUtc
string
required
End of the reservation interval in UTC timezone in ISO 8601 format.
Response
CancellationPolicies
required, max 1300 items
List of cancellation policies data grouped by rate.
Cancellation policy data grouped by rate
RateId
string
required
Unique identifier of the Rate
.
Last updated