API Hotel Offers
Endpoint: offers
All rooms and rate plans of one hotel.
Request
masterId
string
✔
checkin, checkout
date
✔
rooms[]
array
✔
1–8 rooms, { adults, childAges[] }
language
enum
vi | en
{
"masterId": "30715",
"checkin": "2026-11-20",
"checkout": "2026-11-22",
"rooms": [{ "adults": 2, "childAges": [6] }],
"language": "en"
}Response
offerId
string
Opaque string, expires after 30 minutes (expiresAt)
roomTypeId, roomName, ratePlanName
string
mealPlan
enum
ROOM_ONLY, BREAKFAST, HALF_BOARD, FULL_BOARD, ALL_INCLUSIVE
breakfastIncluded
boolean
bedTypes[]
string[]
amenities[]
string[]
Rate-plan amenities
price
Money
total, perNight, currency, taxIncluded, taxAndFees, totalBeforePromo
promo
boolean
refundable
boolean
freeCancellationUntil
date-time
Free-cancellation deadline; absent when refundable: false
cancelPolicies[]
array
{ from, penaltyAmount } — the search-time version
remainingRooms
int
expiresAt
date-time
cancelPolicies here is the search-time version; the binding one for the booking comes from price-check. penaltyAmount is already converted from an amount, a percentage of the total, or a number of nights.
Cập nhật lần cuối