Breadcrumb
- Hotel Availability
- Request
- Use Cases
- Additional Guests
Additional Guests
Additional Guests
To show pricing for the requested number of guests and determine the price for additional guests when the number of guests is not finalized:
- Use adults and children to specify the number of adults and children to price the availability.
- Use additionalAdults and additionalChildren to determine price for additional guests.
Parameter | Description | Type |
---|---|---|
additionalAdults | Specifies additional adult counts for pricing. | Integer |
additionalChildren | Specifies additional children counts for pricing. | Integer |
Samples Request
Request for 2 adults plus pricing for a 3rd and 4th adult results in the @Price node showing amounts for 2 guests and the @additionalPrices node showing pricing for 3 adults and 4 adults.
/v1/api/hotel/availability?hotelId=13098&chainId=12723&adults=2&startDate=2020-12-17&endDate=2020-12-20&numRooms=1&primaryChannel=WEB&secondaryChannel=WEB&adults=2&additionalAdults=3,4
Response (partial)
{
"productAvailability": {
"Prices": [{
"Product": {
"Prices": {
"Daily": [{
"Price": {
"Fees": {
"Amount": 0
},
"Tax": {
"Amount": 20
},
"Total": {
"Amount": 80,
"AmountWithTaxesFees": 100,
"AmountWithInclusiveTaxes": 100
},
"Amount": 80,
"CurrencyCode": "USD"
},
"Date": "2020-12-17T00:00:00",
"AvailableInventory": 1
}],
"PerNight": {},
"Total": {
"Price": {
"Fees": {
"BreakDown": [],
"Amount": 0
},
"Tax": {
"BreakDown": [{
"Amount": 20,
"Code": "City1-10"
}],
"Amount": 20
},
"Total": {
"Amount": 80,
"AmountWithTaxesFees": 100,
"AmountWithInclusiveTaxes": 100
},
"Amount": 80,
"CurrencyCode": "USD"
}
},
"TaxesFeesIncluded": false
},
"Rate": {
"Code": "BAR"
},
"Room": {
"Code": "HCP"
}
}
}],
"AdditionalPrices": [{
"PerGuest": [{
"Guest": [{
"AgeQualifyingCode": "Adult",
"NumGuests": 3
}],
"Price": {
"Average": {
"Amount": 142.5
},
"Total": {
"Amount": 142.5,
"AmountWithTaxesFees": 162.5
},
"CurrencyCode": "USD"
}
}, {
"Guest": [{
"AgeQualifyingCode": "Adult",
"NumGuests": 4
}],
"Price": {
"Average": {
"Amount": 205
},
"Total": {
"Amount": 205,
"AmountWithTaxesFees": 225
},
"CurrencyCode": "USD"
}
}],
"Rate": {
"Code": "BAR"
},
"Room": {
"Code": "HCP"
}
}],
"ProductResult": "Success"
}
}