CalcPackage
Version 3.1 by Giorgi Mdivnishvili on 2023/12/14 12:46
Contents
Method Description
The initial method of the integration process is authorization. You will be provided with a test user username and password to generate the access token that you will need to pass in all the following methods.
Endpoint URL - [GET]
Request Parameters
Request Body
none{
"packageId": "string",
"extraServicePriceCodes": [
"string"
]
}
"packageId": "string",
"extraServicePriceCodes": [
"string"
]
}
Request Body example
{
"packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
"extraServicePriceCodes": [
]
}
"packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
"extraServicePriceCodes": [
]
}
Response
[
{
"hotelCode": "string",
"hotelName": "string",
"hotelClass": "string",
"cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"countryCode": "string",
"countryName": "string",
"districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"cityName": "string",
"districtName": "string",
"hotelType": "CityHotel",
"latitude": "string",
"longitude": "string",
"hasAlcohol": true,
"hasFreeWifi": true,
"hasMetro": true,
"hasPool": true,
"hasMall": true
}
]
{
"hotelCode": "string",
"hotelName": "string",
"hotelClass": "string",
"cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"countryCode": "string",
"countryName": "string",
"districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"cityName": "string",
"districtName": "string",
"hotelType": "CityHotel",
"latitude": "string",
"longitude": "string",
"hasAlcohol": true,
"hasFreeWifi": true,
"hasMetro": true,
"hasPool": true,
"hasMall": true
}
]
Response example
{
"package": {
"id": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
"priceCurrency": "USD",
"totalPrice": 381.70,
"agentCommissionPercent": 0.00,
"agentCommissionAmount": 0.00,
"hotel": {
"hotelPriceId": "504f63ca-6dd5-4d84-8245-cf7e77ccff73",
"providerId": 13,
"hotelName": "Golden Tulip Al Barsha Hotel",
"hotelCode": "ed0820c5-29b0-4e1b-8bcf-9f3c181e7961",
"nigths": 4,
"mealPlan": "RO",
"hotelClass": "4",
"availabilityType": "FreeSale",
"availableRoomsCount": 0,
"fewRooms": true,
"roomCategoryCode": "e63ea5ac-4883-4059-bb0a-795a534bbbfb",
"roomCategoryName": "Superior Twin",
"placementTypeName": "SNGL + CHILD(6-11.99)sharing",
"checkInDate": "2024-02-17T08:00:00.000Z",
"checkOutDate": "2024-02-21T08:00:00.000Z",
"adults": 1,
"children": 1,
"districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e",
"districtName": "Al Barsha",
"cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
"cityName": "Dubai",
"countryCode": "AE",
"countryName": "United Arab Emirates",
"hasAlcohol": true,
"hasFreeWifi": true,
"hasMetro": false,
"hasPool": true,
"hasMall": false,
"cancellationPolicyDescription": "Cancellation Policy: 15 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %",
"cancellationPolicy": {
"noShowChargeValue": 100.00,
"noShowChargeValueType": "%",
"earlyDepartureChargeValue": 100.00,
"earlyDepartureChargeValueType": "%",
"conditions": [
{
"timeunits": 15,
"timeunitType": "Day",
"timeOffsetTypeName": "Before Arrival",
"chargeValue": 100.00,
"chargeValueType": "%"
}
]
}
},
"extraServices": []
},
"error": false
}
"package": {
"id": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
"priceCurrency": "USD",
"totalPrice": 381.70,
"agentCommissionPercent": 0.00,
"agentCommissionAmount": 0.00,
"hotel": {
"hotelPriceId": "504f63ca-6dd5-4d84-8245-cf7e77ccff73",
"providerId": 13,
"hotelName": "Golden Tulip Al Barsha Hotel",
"hotelCode": "ed0820c5-29b0-4e1b-8bcf-9f3c181e7961",
"nigths": 4,
"mealPlan": "RO",
"hotelClass": "4",
"availabilityType": "FreeSale",
"availableRoomsCount": 0,
"fewRooms": true,
"roomCategoryCode": "e63ea5ac-4883-4059-bb0a-795a534bbbfb",
"roomCategoryName": "Superior Twin",
"placementTypeName": "SNGL + CHILD(6-11.99)sharing",
"checkInDate": "2024-02-17T08:00:00.000Z",
"checkOutDate": "2024-02-21T08:00:00.000Z",
"adults": 1,
"children": 1,
"districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e",
"districtName": "Al Barsha",
"cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
"cityName": "Dubai",
"countryCode": "AE",
"countryName": "United Arab Emirates",
"hasAlcohol": true,
"hasFreeWifi": true,
"hasMetro": false,
"hasPool": true,
"hasMall": false,
"cancellationPolicyDescription": "Cancellation Policy: 15 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %",
"cancellationPolicy": {
"noShowChargeValue": 100.00,
"noShowChargeValueType": "%",
"earlyDepartureChargeValue": 100.00,
"earlyDepartureChargeValueType": "%",
"conditions": [
{
"timeunits": 15,
"timeunitType": "Day",
"timeOffsetTypeName": "Before Arrival",
"chargeValue": 100.00,
"chargeValueType": "%"
}
]
}
},
"extraServices": []
},
"error": false
}
Schema
[Hotel{
hotelCode string
nullable: true
hotelName string
nullable: true
hotelClass string
nullable: true
cityUID string($uuid)
nullable: true
countryCode string
nullable: true
countryName string
nullable: true
districtUID string($uuid)
nullable: true
cityName string
nullable: true
districtName string
nullable: true
hotelType HotelTypeEnumstring
Enum:
[ CityHotel, BeachHotel, SecondLineBeach ]
latitude string
nullable: true
longitude string
nullable: true
hasAlcohol boolean
hasFreeWifi boolean
hasMetro boolean
hasPool boolean
hasMall boolean
}]
hotelCode string
nullable: true
hotelName string
nullable: true
hotelClass string
nullable: true
cityUID string($uuid)
nullable: true
countryCode string
nullable: true
countryName string
nullable: true
districtUID string($uuid)
nullable: true
cityName string
nullable: true
districtName string
nullable: true
hotelType HotelTypeEnumstring
Enum:
[ CityHotel, BeachHotel, SecondLineBeach ]
latitude string
nullable: true
longitude string
nullable: true
hasAlcohol boolean
hasFreeWifi boolean
hasMetro boolean
hasPool boolean
hasMall boolean
}]