POST/Package Booking
This API used to display Save Booking Package .
HOW TO USE?
The SavePackageDetails the ------
HEADERS TO USE FOR REQUEST
|
Parameter |
Value |
|
Content-Type |
application/json |
|
APIKEY |
|
|
TENANTCODE |
|
BODY PARAMETERS
|
Parameter |
Type |
M- Mandatory / O- Optional |
Description |
Example |
|
ArrivalDate |
String |
M |
Date of Arrival to DLP Hotel |
|
|
ReturnDate |
String |
M |
Departure from DLP Hotel |
|
|
TenantCode |
String |
M |
Provide Tenant code |
CODE |
|
NoOfNight |
int |
M |
total number of Nights between Arrival and Return Date |
|
|
DiscountID |
int |
M |
Discount Id Returned in Room Pricing |
|
|
ParkPassID |
int |
O |
Included Park Pass Id |
|
|
SpecialRequest |
String |
O |
Special Request if Any |
|
|
SearchType |
String |
M |
Type of Search to Identify (currently, only HotePark option is to be used, earlier parkpassonly could also be searched but which is no longer supported) |
HotelPark |
|
RoomOnly |
Boolean |
M |
Flag to identify price includes a Park Pass Price or Not |
true/false |
|
HotelRoomObj |
arrayObj |
M |
|
|
|
.HotelID |
int |
M |
Selected Hotel Id |
|
|
.HotelName |
String |
M |
Selected Hotel Name |
|
|
.RoomID |
int |
M |
Selected Room ID |
|
|
.RoomName |
String |
M |
Selected Room Name |
|
|
.RoomPrice |
int |
M |
Room Price |
|
|
.AllotmentCode |
String |
M |
Allotment Code Should O Always |
O |
|
.RatePlanObj |
|
M |
|
|
|
.. RatePlanCategory |
String |
M |
This is applicable Rate Plan Category Code |
ROOM_TICKET_GEN/ ROOM_TICKET_HB/ ROOM_TICKET_GC/ ROOMONLY |
|
.. RatePlanCode |
String |
M |
This is applicable Rate Plan Cod |
Ex. RSTAEVTC0JEE2X9 |
|
.. MealPlanCode |
String |
M |
This is applicable Meal Plan Code |
NOM/ BK/ HalfBoardPlusIncluded/ HalfBoardStandardIncluded |
|
.. RoomTypeCode |
String |
M |
Applicable to this Room Type Code |
Ex. HTLAEVRO4 |
|
.. PropertyCode |
String |
M |
Applicable to this is Hotel Code |
Ex. AEV |
|
HotelExtraObj |
arrayObj |
O |
If Hotel Extra Object is Required, Then All the Parameters for HotelExtraObj below become Mandatory |
|
|
.BookingDateWiseExtraList |
arrayObj |
|
|
|
|
..DatewiseSubTotal |
int |
|
Date wise total for the Extras selected for that Date |
|
|
..ObjDateWiseExtras |
arrayObj |
|
|
|
|
... HotelExtraID |
int |
|
Hotel Extra Id |
|
|
... HotelExtraName |
String |
|
Hotel Extra Name |
|
|
... ServiceInventryCode |
string |
|
To Identify Service & Its Pricing |
Ex. CAKDBITP0JEE2X9_CAKDBITP0_5 |
|
...ExtraSubtotal |
int |
|
Individual Extra Total Price |
|
|
...IncludeExtraOption |
String |
|
Type to Calculate the Extra Price |
P,B, R, A etc |
|
...RoomCount |
int |
|
No of Rooms Required |
|
|
...ObjPricingPeriod |
arrayObj |
|
|
|
|
....PerBookingActualPrice |
int |
|
If Extra is of Type B Then this Price Will be Considered |
|
|
....objAgePrice |
arrayObj |
|
This Includes the Age Category wise Price if Extras is of Type P |
|
|
.....NoOfPersons |
int |
|
No of Persons of the Age Category |
|
|
.....AgeCategoryCode |
string |
|
Age Category Code |
AD,CH1217,CH711,CH36,IN |
|
.....AgeCategoryName |
string |
|
Age Category Name |
|
|
..BookingDay |
string |
|
The Day For Which Extras are Selected |
|
|
..BookingDate |
datetime |
|
The Date For Which Extras are Selected |
|
|
.ExtraGrandTotal |
int |
|
Total of Selected Extras for All Selected Dates |
|
|
TransferObj |
arraObj |
O |
If TransferObj is Required, Then All the Parameters for TransferObj below become Mandatory |
|
|
.SelectedTransferObj |
arraObj |
|
|
|
|
..HotelTransferID |
int |
|
Hotel Transfer ID |
|
|
..TransferName |
string |
|
Transfer Name |
|
|
..TransferTypeCode |
string |
|
P = PerPerson, V = PerVehicle |
P / V |
|
..ObjPerPerson |
arraObj |
|
|
|
|
...ObjPersonPrice |
arraObj |
|
|
|
|
....NoOfPersons |
int |
|
No of Persons |
|
|
....AgeCategoryCode |
string |
|
Age Category Code |
|
|
.FlightTiming |
arraObj |
|
|
|
|
..FlightArrivalTime |
datetime |
|
Flight Arrival Time |
|
|
..FlightDepartureTime |
datetime |
|
Flight Departure Time |
|
|
.TransferSubtotal |
int |
|
Transfer Subtotal |
|
|
.SelectedTransferVehicleTypeID |
int |
|
Selected Vehicle Type Id |
|
|
.NoOfVehicles |
int |
|
No Of Vehicles |
|
|
.JourneyType |
string |
|
One Way or Both Ways |
single/return |
|
.ChildSeatsRequired |
int |
|
Child Seat Required in Case of Private Transfer |
|
|
.JourneyDirection |
string |
|
Single / Return |
|
|
LeadPersonObj |
arrayObj |
M |
|
|
|
.FullName |
string |
M |
Lead Person Name |
|
|
.Address |
string |
M |
Lead Address |
|
|
.PostalCode |
string |
M |
Postal Code |
|
|
|
string |
M |
Email Id |
|
|
.TelephoneNo |
string |
M |
Contact Number |
|
|
PaymentObj |
arrayObj |
M |
|
|
|
.DepositAmount |
int |
M |
Deposit Amount in Case |
|
|
.TotalAmount |
int |
M |
Total Amount |
|
|
MemberList |
arrayObj |
M |
List of all members including lead person |
|
|
.AgeCategoryCode |
string |
M |
Age Category Code |
|
|
.AgeCategoryGroupCode |
string |
M |
Age Category Group Code |
|
|
.AgeCategoryName |
string |
M |
Age Category Name |
|
|
.DateOfBirth |
datetime |
M |
Date of Birth |
|
|
.Title |
string |
M |
Title |
|
|
.FirstName |
string |
M |
Mahesh |
|
|
.LastName |
string |
M |
Gavali |
|
|
AgecategoryWiseNoOfPersonsInSearch |
string |
M |
Age Category wise No Person |
|
|
.AgeCategoryCode |
string |
M |
Age Category Code |
|
|
.PersonCount |
int |
M |
Person Count |
|
|
PassengerAllotment |
arrayObj |
M |
|
|
|
.RoomAllotment |
arrayObj |
M |
|
|
|
..AgeCategoryCode |
string |
M |
Room Wise Age Category Code |
|
|
..PersonCount |
int |
M |
Room Wise Person Count |
|
|
PostageObj |
arrayObj |
M |
|
|
|
..PostageName |
string |
M |
Postage Name |
|
|
..PostageID |
int |
M |
PostageID |
|
|
..PostagePrice |
int |
M |
PostagePrice |
|
|
PostageID |
int |
M |
PostageID |
|
UAT URL: https://uat.breakaway.ie/api/PackageBooking/SavePackageDetails
RESPONSE PARAMETERS
|
Name |
Type |
Description |
Example |
|
Result |
String |
Provide Tenant code |
ETST |
|
Message |
String |
|
|
|
Object |
Array of Objects |
|
|
|
ExtraObject |
Object/Parameter |
Another Object/Parameter Required for Transaction |
|
|
IsTimeout |
boolean |
|
|
|
HttpResponseCode |
int |
|
|
|
ErrorCode |
|
|
|
ERROR CODES
|
HTTP Status |
Type |
|
500 |
INTERNAL_SERVER_ERROR |
IMP Note
1.Please follow the process that every time before showing hotels call API ”GetHotels". So you can get updated prices and offers available for rooms.
2.When the Discount price is there for room send values for DiscountID and DiscountObj in the API.
SAMPLE REQUEST
•With Hotel Extra:
{
"ArrivalDate": "2017-10-20T00:00:00",
"ReturnDate": "2017-10-23T00:00:00",
"TenantCode": "CODE",
"PromoCode": "",
"NoOfNight": 3,
"DiscountID": null,
"ParkPassID": 2,
"SpecialRequest": "Test",
"SearchType": "HotelPark",
"RoomOnly": false,
"TenantReferenceNo": null,
"HotelRoomObj": {
"HotelID": 1,
"HotelName": "Santa fe",
"RoomID": 1,
"RoomName": "Standard Max 4",
"RoomPrice": 859.94,
"AllotmentCode": "O",
"RatePlanObj": {
"RatePlanCategory": "ROOM_TICKET_GEN",
"RatePlanCode": "RSTDSFTE5JEETGX",
"MealPlanCode": "NOM",
"RoomTypeCode": "HTLD6TRO4",
"PropertyCode": "DSF"
}
},
"HotelExtraObj": {
"BookingDateWiseExtraList": [
{
"DatewiseSubTotal": 130,
"ObjDateWiseExtras": [
{
"HotelExtraID": 99,
"HotelExtraName": "Wild West Show Premium Seats Show 06.30pm",
"ServiceInventryCode": "WWSDBITP0JEE2X9_WWSDBITP0_5",
"ExtraSubtotal": 130,
"IncludeExtraOption": "P",
"RoomCount": 0,
"ObjPricingPeriod": [
{
"PerBookingActualPrice": 0,
"objAgePrice": [
{
"NoOfPersons": 2,
"AgeCategoryCode": "AD",
"AgeCategoryName": "Adults (18+ yrs)"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH1218",
"AgeCategoryName": "Adults (12-17 yrs)"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH711",
"AgeCategoryName": "Children (7-11 yrs)"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH36",
"AgeCategoryName": "Children (3-6 yrs)"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH03",
"AgeCategoryName": "Infants (0-2 yrs)"
}
]
}
]
}
],
"BookingDay": "Saturday",
"BookingDate": "2017-07-21T00:00:00"
},
{
"DatewiseSubTotal": 29,
"ObjDateWiseExtras": [
{
"HotelExtraID": 98,
"HotelExtraName": "Birthday Cake (Per Cake 6-8 people)",
"ServiceInventryCode": "CAKDBITP0JEE2X9_CAKDBITP0_5",
"ExtraSubtotal": 29,
"IncludeExtraOption": "B",
"RoomCount": 0,
"ObjPricingPeriod": [
{
"PerBookingActualPrice": 29,
"objAgePrice": []
}
]
}
],
"BookingDay": "Sunday",
"BookingDate": "2017-07-22T00:00:00"
},
{
"DatewiseSubTotal": 50,
"ObjDateWiseExtras": [
{
"HotelExtraID": 100,
"HotelExtraName": "CBDND Character Breakfast 2nd Seating 09.30 Disney",
"ServiceInventryCode": "CAKDBITP0JEE2X9_CAKDBITP0_5",
"ExtraSubtotal": 50,
"IncludeExtraOption": "R",
"RoomCount": 1,
"ObjPricingPeriod": [
{
"PerBookingActualPrice": 50,
"objAgePrice": []
}
]
}
],
"BookingDay": "Monday",
"BookingDate": "2017-07-23T00:00:00"
}
],
"ExtraGrandTotal": 209
},
"TransferObj": {
"SelectedTransferObj": {
"HotelTransferID": 1,
"TransferName": "Magical Shuttle",
"TransferTypeCode": "P",
"ObjPerPerson": [
{
"ObjPersonPrice": [
{
"NoOfPersons": 2,
"AgeCategoryCode": "AD"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH1218"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH711"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH36"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH03"
}
]
}
]
},
"FlightTiming": {
"FlightArrivalTime": null,
"FlightDepartureTime": null
},
"TransferSubtotal": 92,
"SelectedTransferVehicleTypeID": null,
"NoOfVehicles": 1,
"JourneyType": "1",
"ChildSeatsRequired": 1,
"JourneyDirection": "HA"
},
"LeadPersonObj": {
"FullName": "Harry Burke",
"Address": "12 Leinster St S, \r\nDublin 2, \r\nIreland",
"PostalCode": "123456789",
"Email": "test@gmail.com",
"TelephoneNo": "35316079900"
},
"PaymentObj": {
"DepositAmount": 190,
"TotalAmount": 971
},
"MemberList": [
{
"AgeCategoryCode": "AD",
"AgeCategoryGroupCode": "AD",
"AgeCategoryName": "Adults (18+ yrs)",
"DateOfBirth": null,
"Title": "Mr.",
"FirstName": "Harry",
"LastName": "Burke"
},
{
"AgeCategoryCode": "AD",
"AgeCategoryGroupCode": "AD",
"AgeCategoryName": "Adults (18+ yrs)",
"DateOfBirth": null,
"Title": "Mr.",
"FirstName": "Jack",
"LastName": "Burke"
}
],
"AgecategoryWiseNoOfPersonsInSearch": [
{
"AgeCategoryCode": "AD",
"PersonCount": 2
},
{
"AgeCategoryCode": "CH1218",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH711",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH36",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH03",
"PersonCount": 0
}
],
"PassengerAllotment": [
{
"RoomAllotment": [
{
"AgeCategoryCode": "AD",
"PersonCount": 2
},
{
"AgeCategoryCode": "CH1218",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH711",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH36",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH03",
"PersonCount": 0
}
]
}
],
"PostageObj": {
"PostageName": " Express Post +(Ticket Pack) €10",
"PostageID": 2,
"PostagePrice": 0
},
"PostageID": 2
}
•Without Hotel Extra:
{
"ArrivalDate": "2017-10-20T00:00:00",
"ReturnDate": "2017-10-23T00:00:00",
"TenantCode": "BRKY",
"PromoCode": "",
"NoOfNight": 3,
"DiscountID": null,
"ParkPassID": 2,
"SpecialRequest": "Test",
"SearchType": "HotelPark",
"RoomOnly": false,
"TenantReferenceNo": null,
"HotelRoomObj": {
"HotelID": 1,
"HotelName": "Santa fe",
"RoomID": 1,
"RoomName": "Standard Max 4",
"RoomPrice": 859.94,
"AllotmentCode": "O",
"RatePlanObj": {
"RatePlanCategory": "ROOM_TICKET_GEN",
"RatePlanCode": "RSTDSFTE5JEETGX",
"MealPlanCode": "NOM",
"RoomTypeCode": "HTLD6TRO4",
"PropertyCode": "DSF"
}
},
"HotelExtraObj": null,
"TransferObj": {
"SelectedTransferObj": {
"HotelTransferID": 1,
"TransferName": "Magical Shuttle",
"TransferTypeCode": "P",
"ObjPerPerson": [
{
"ObjPersonPrice": [
{
"NoOfPersons": 2,
"AgeCategoryCode": "AD"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH1218"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH711"
},
{
"NoOfPersons": 0,
"AgeCategoryCode": "CH36"
},
{ hanf
"NoOfPersons": 0,
"AgeCategoryCode": "CH03"
}
]
}
]
},
"FlightTiming": {
"FlightArrivalTime": null,
"FlightDepartureTime": null
},
"TransferSubtotal": 92,
"SelectedTransferVehicleTypeID": null,
"NoOfVehicles": 1,
"JourneyType": "1",
"ChildSeatsRequired": 1,
"JourneyDirection": "HA"
},
"LeadPersonObj": {
"FullName": "Harry Burke",
"Address": "12 Leinster St S, \r\nDublin 2, \r\nIreland",
"PostalCode": "123456789",
"Email": "test@gmail.com",
"TelephoneNo": "35316079900"
},
"PaymentObj": {
"DepositAmount": 190,
"TotalAmount": 971
},
"MemberList": [
{
"AgeCategoryCode": "AD",
"AgeCategoryGroupCode": "AD",
"AgeCategoryName": "Adults (18+ yrs)",
"DateOfBirth": null,
"Title": "Mr.",
"FirstName": "Harry",
"LastName": "Burke"
},
{
"AgeCategoryCode": "AD",
"AgeCategoryGroupCode": "AD",
"AgeCategoryName": "Adults (18+ yrs)",
"DateOfBirth": null,
"Title": "Mr.",
"FirstName": "Jack",
"LastName": "Burke"
}
],
"AgecategoryWiseNoOfPersonsInSearch": [
{
"AgeCategoryCode": "AD",
"PersonCount": 2
},
{
"AgeCategoryCode": "CH1218",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH711",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH36",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH03",
"PersonCount": 0
}
],
"PassengerAllotment": [
{
"RoomAllotment": [
{
"AgeCategoryCode": "AD",
"PersonCount": 2
},
{
"AgeCategoryCode": "CH1218",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH711",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH36",
"PersonCount": 0
},
{
"AgeCategoryCode": "CH03",
"PersonCount": 0
}
]
}
],
"PostageObj": {
"PostageName": " Express Post +(Ticket Pack) €10",
"PostageID": 2,
"PostagePrice": 0
},
"PostageID": 2
}
SAMPLE RESPONSE
{
"Result": true,
"ResultMessage": "Booking done successfully.",
"Object": "CODE1001122049",
"ExtraObject": null,
"IsTimeout": false,
"HttpResponseCode": 200,
"ErrorCode": null
}
Created with the Personal Edition of HelpNDoc: Free EPub producer