API Hotel Availability
Endpoint: availability
Giá thấp nhất của 1–50 khách sạn. Giới hạn: tối đa 30 đêm, 1–8 phòng, mỗi phòng 1–8 người lớn, trẻ em 0–17 tuổi.
Request
masterIds[]
string[]
✔
1–50 id
checkin
date
✔
yyyy-MM-dd
checkout
date
✔
Tối đa 30 đêm sau checkin
rooms[]
array
✔
1–8 phòng, mỗi phòng { adults, childAges[] }
language
enum
vi | en
{
"masterIds": ["30715", "1002", "9999"],
"checkin": "2026-11-20",
"checkout": "2026-11-22",
"rooms": [{ "adults": 2, "childAges": [6] }],
"language": "vi"
}Response
checkin, checkout, nights
Theo request
complete
boolean
false = còn nguồn giá chưa trả về
results[].masterId
string
results[].status
enum
AVAILABLE | SOLD_OUT | NOT_FOUND
results[].lowestPrice
Money
total, perNight, currency, taxIncluded, taxAndFees, totalBeforePromo
results[].refundable
boolean
results[].freeCancellation
boolean
Giá thấp nhất có huỷ miễn phí; lịch phí huỷ chi tiết lấy từ offers
results[].breakfastIncluded
boolean
results[].promo
boolean
Có khuyến mãi → totalBeforePromo là giá gạch ngang
results sắp theo masterId dạng chuỗi (ví dụ "10" đứng trước "9"), không theo thứ tự gửi lên — ghép kết quả theo masterId.
Cập nhật lần cuối