Price retrieval
This method allows us to obtain a price list for the requested package, grouping, and date combination.
The definition of the groupings (PaxGroupings) becomes relevant when the package contains several activities and, therefore, potentially different dates for each activity.
Access method
POST /Package/PricesAndCancellationConditions
Request structure
EchoToken: (string)Required. Token that identifies the request sequence. See extended catalog.Packages: (list)Required. List of packages to request.Package: (object)Required. Package information.Id: (string)Required. Package identifier.PaxGroupings: (list)Required. List of groupings.PaxGrouping: (object)Required. Grouping information.Id: (string)Required. Grouping identifier.AccessDate: (date)Required. Activity start date. ISO 8601 format (yyyy-MM-dd).
Request examples
Example
{
"EchoToken": "x3cig4i6oq1dyqskapaeu8i8h6",
"Packages": [
{
"Id": "9eiaaee8qfake",
"PaxGroupings": [
{
"Id": "4gazafx5sjcph",
"AccessDate": "2023-01-25"
}
]
}
]
}
Response structure
EchoToken: (string). Token that identifies the request sequence. See extended catalog.-
Packages: (list). List of packages requested in the call.-
Package: (object). Package information.Id: (string). Package identifier.Price: (decimal). Package price.-
PriceMode: (int). Price type.Possible values
- 1: Retail price
- 2: Net
-
Commission: (object). Commission information.-
Type: (int). Commission type.Possible values
- 1: percentage.
- 2: absolute value.
-
Value: (decimal). Commission value.
-
-
-
Success: (boolean). Value that indicates whether the call was processed correctly or not. Errors: (list). Array of errors.Error: (object).ErrorMessage: (string). Error message explaining why the request was not successful. If it was correct, it will returnnull.ErrorCode: (int). Code that identifies the error.
ErrorEntityBreakDown(list): list that contains objects with the name and ID in case of error.Id(string): identifierName(string): related name of the identifier.
Response examples
Example
{
"EchoToken": "h81ikwmfshzmg5bqg3tj6ehn1o",
"Packages": [
{
"Id": "9eiaaee8qfake",
"Price": 717.3980,
"PriceMode": 1,
"Commission": {
"Type": 2,
"Value": 0.00000000000000
}
}
],
"Success": true
}