For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Hotel Offers

Endpoint: offers

All rooms and rate plans of one hotel.

Request

Field
Type
Required
Description

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

Field
Type
Description

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

The first call for a given masterId/date/occupancy set may take up to ~6 seconds because Gotadi resolves the hotel first; subsequent calls within 30 minutes are faster.

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