Servidor MCP

PriceWin

win.price/pricewin
Viajes y hospitalidad Público y accesible MCP 2025-11-25

Qué hace este MCP

Searches and compares live hotel and flight prices and supports hotel booking requests, status checks, cancellation policies, and cancellations.

cancel_booking
Cancel Booking (step 2 of 2)
Second of two steps to cancel a booking: cancels it and starts any refund due. Irreversible. Requires the confirmation code and the single-use token that request_cancel_token emailed to the guest; a missing, expired or already-used token is rejected. get_cancellation_policy shows the refund terms that apply.
Destructivo Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['confirmationCode', 'cancelToken', 'reason'], 'properties': {'reason': {'type': 'string', 'minLength': 3, 'description': 'Guest-provided cancellation reason (at least 3 characters)'}, 'cancelToken': {'type': 'string', 'minLength': 1, 'description': 'Single-use cancellation token from the email request_cancel_token sent to the guest.'}, 'confirmationCode': {'type': 'string', 'minLength': 1, 'description': '8-char booking confirmation code, e.g. K7X9M2P4'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['status', 'refundAmount', 'refundStatus', 'gatewaySettlementEta'], 'properties': {'status': {'type': 'string'}, 'refundAmount': {'type': 'number'}, 'refundStatus': {'type': ['string', 'null']}, 'gatewaySettlementEta': {'type': ['string', 'null']}}, 'additionalProperties': True}
check_booking_status
Check Booking Status
Returns the current status of a booking request (waiting for the hotel, confirmed or cancelled) by the confirmation code request_booking returned.
Solo lectura
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['confirmationCode'], 'properties': {'language': {'enum': ['en', 'vi'], 'type': 'string', 'default': 'en', 'description': 'Response language'}, 'confirmationCode': {'type': 'string', 'description': "confirmationCode from request_booking structuredContent (e.g. 'K7X9M2P4')"}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['bookingId', 'confirmationCode', 'status', 'paymentStatus', 'paymentMethod', 'paymentLinkUrl', 'paidAt', 'checkIn', 'checkOut', 'roomNumber', 'guestName', 'guestEmail', 'propertyName'], 'properties': {'paidAt': {'type': ['string', 'null']}, 'status': {'type': 'string'}, 'checkIn': {'type': 'string'}, 'checkOut': {'type': 'string'}, 'bookingId': {'type': 'string'}, 'guestName': {'type': 'string'}, 'guestEmail': {'type': 'string'}, 'roomNumber': {'type': ['string', 'null']}, 'propertyName': {'type': 'string'}, 'paymentMethod': {'type': ['string', 'null']}, 'paymentStatus': {'type': 'string'}, 'paymentLinkUrl': {'type': ['string', 'null']}, 'confirmationCode': {'type': ['string', 'null']}}, 'additionalProperties': False}
get_cancellation_policy
Get Cancellation Policy
Returns the cancellation terms for one rate plan at an OpenTravel partner hotel: whether it is refundable, the free-cancellation window, the refund percentage, a plain-language summary and, given the check-in date, the exact free-cancellation deadline. Takes the propertyId and the ratePlanId from get_hotel_detail.
Solo lectura
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['propertyId', 'ratePlanId', 'checkInDate'], 'properties': {'language': {'enum': ['en', 'vi'], 'type': 'string', 'description': 'Reply language. Falls back to queryText, then English.'}, 'queryText': {'type': 'string', 'maxLength': 500, 'description': "Short excerpt of the guest's request, used only to pick the reply language."}, 'propertyId': {'type': 'string', 'format': 'uuid', 'description': 'OpenTravel propertyId UUID from search results'}, 'ratePlanId': {'type': 'string', 'format': 'uuid', 'description': 'ratePlanId from get_hotel_detail roomTypes[].ratePlanId'}, 'checkInDate': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-in date YYYY-MM-DD â\x80\x94 required to compute the exact free-cancel deadline'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['ratePlanId', 'nonRefundable', 'freeCancelUntilHours', 'refundPercentAfterWindow', 'policyText', 'computedDeadline'], 'properties': {'policyText': {'type': 'string'}, 'ratePlanId': {'type': 'string'}, 'nonRefundable': {'type': 'boolean'}, 'computedDeadline': {'type': ['string', 'null']}, 'freeCancelUntilHours': {'type': ['number', 'null']}, 'refundPercentAfterWindow': {'type': ['number', 'null']}}, 'additionalProperties': True}
get_hotel_detail
Get Hotel Detail (by propertyId / OpenTravel-direct)
Prices and availability for one OpenTravel direct-listed hotel over a date range, with its photos, amenities and room types, each room with its rate plan and total price. Takes the propertyId from search results (source 'OPENTRAVEL_DIRECT'), or a hotel name plus city for a known direct listing. get_hotel_info returns the same hotel's static facts without dates.
Solo lectura
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['checkIn', 'checkOut'], 'properties': {'city': {'type': 'string', 'maxLength': 100, 'description': 'City of the hotel â\x80\x94 required when resolving by hotelName.'}, 'adults': {'type': 'integer', 'default': 2, 'maximum': 20, 'minimum': 1, 'description': 'Number of adults (default 2)'}, 'checkIn': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-in date YYYY-MM-DD. Must be today or later.'}, 'checkOut': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-out date YYYY-MM-DD. Must be after checkIn.'}, 'children': {'type': 'integer', 'default': 0, 'maximum': 20, 'minimum': 0, 'description': 'Number of children (default 0)'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string', 'description': 'Preferred UI language (en/vi/de/ja/ko/zh/fr/es/ru/th/id).'}, 'hotelName': {'type': 'string', 'maxLength': 200, 'minLength': 1, 'description': 'Fallback name for a confirmed OpenTravel direct listing when propertyId is unavailable'}, 'queryText': {'type': 'string', 'maxLength': 500, 'description': 'Optional short excerpt of the current request, used only to detect the UI language; it is not stored or forwarded.'}, 'propertyId': {'type': 'string', 'maxLength': 200, 'description': 'OpenTravel propertyId UUID from search results (opentravelResults[].propertyId).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['property', 'roomTypes', 'nights', 'checkIn', 'checkOut', 'adults', 'language'], 'properties': {'adults': {'type': 'number'}, 'nights': {'type': 'number'}, 'checkIn': {'type': 'string'}, 'checkOut': {'type': 'string'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string'}, 'property': {'type': 'object', 'required': ['propertyId', 'title', 'address', 'city', 'country', 'checkInTime', 'checkOutTime', 'photos', 'facilities'], 'properties': {'id': {'type': 'string'}, 'city': {'type': 'string'}, 'title': {'type': 'string'}, 'photos': {'type': 'array', 'items': {'type': 'string'}}, 'address': {'type': 'string'}, 'country': {'type': 'string'}, 'facilities': {'type': 'array', 'items': {'type': 'string'}}, 'propertyId': {'type': 'string'}, 'checkInTime': {'type': 'string'}, 'description': {'type': ['string', 'null']}, 'checkOutTime': {'type': 'string'}}, 'additionalProperties': True}, 'discovery': {'type': 'boolean'}, 'roomTypes': {'type': 'array', 'items': {'type': 'object', 'required': ['id', 'title', 'adultsMax', 'childrenMax', 'photos', 'facilities', 'availableCount', 'totalPrice', 'currency', 'perNightRates'], 'properties': {'id': {'type': 'string'}, 'size': {'type': ['number', 'null']}, 'title': {'type': 'string'}, 'photos': {'type': 'array', 'items': {'type': 'string'}}, 'currency': {'type': 'string'}, 'adultsMax': {'type': 'number'}, 'facilities': {'type': 'array', 'items': {'type': 'string'}}, 'ratePlanId': {'type': ['string', 'null']}, 'totalPrice': {'type': 'number'}, 'childrenMax': {'type': 'number'}, 'description': {'type': ['string', 'null']}, 'perNightRates': {'type': 'array', 'items': {'type': 'object', 'required': ['date', 'amount'], 'properties': {'date': {'type': 'string'}, 'amount': {'type': 'number'}}, 'additionalProperties': True}}, 'availableCount': {'type': 'number'}}, 'additionalProperties': True}}, 'bookingUrl': {'type': 'string'}}, 'additionalProperties': True}
get_hotel_info
Hotel Info (no dates needed)
Static facts about an OpenTravel direct-listed hotel, with no check-in or check-out date required: photo gallery, property description, address, facilities (parking, pool, pets and so on), check-in and check-out times, the house cancellation policy, and each room type's description, floor area, capacity, photos and in-room facilities. Carries no prices and no availability — get_hotel_detail covers those for a specific date range. Takes the propertyId UUID from search results.
Solo lectura
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['propertyId'], 'properties': {'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string', 'description': 'Preferred reply language (en/vi/de/ja/ko/zh).'}, 'queryText': {'type': 'string', 'maxLength': 500, 'description': 'Optional short excerpt of the current request, used only to detect the reply language; it is not stored or forwarded.'}, 'propertyId': {'type': 'string', 'format': 'uuid', 'description': 'OpenTravel propertyId UUID from search results (opentravelResults[].propertyId).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['property', 'roomTypes'], 'properties': {'property': {'type': 'object', 'required': ['id', 'title', 'description', 'address', 'city', 'country', 'checkInTime', 'checkOutTime', 'photos', 'facilities'], 'properties': {'id': {'type': 'string'}, 'city': {'type': 'string'}, 'title': {'type': 'string'}, 'photos': {'type': 'array', 'items': {'type': 'string'}}, 'address': {'type': 'string'}, 'country': {'type': 'string'}, 'facilities': {'type': 'array', 'items': {'type': 'string'}}, 'checkInTime': {'type': 'string'}, 'description': {'type': ['string', 'null']}, 'checkOutTime': {'type': 'string'}}, 'additionalProperties': True}, 'roomTypes': {'type': 'array', 'items': {'type': 'object', 'required': ['id', 'title', 'description', 'size', 'adultsMax', 'childrenMax', 'photos', 'facilities'], 'properties': {'id': {'type': 'string'}, 'size': {'type': ['number', 'null']}, 'title': {'type': 'string'}, 'photos': {'type': 'array', 'items': {'type': 'string'}}, 'adultsMax': {'type': 'number'}, 'facilities': {'type': 'array', 'items': {'type': 'string'}}, 'childrenMax': {'type': 'number'}, 'description': {'type': ['string', 'null']}}, 'additionalProperties': True}}, 'cancellationPolicy': {'type': 'object', 'required': ['nonRefundable', 'freeCancelUntilHours', 'refundPercentAfterWindow', 'policyText'], 'properties': {'source': {'type': 'string'}, 'policyText': {'type': 'string'}, 'nonRefundable': {'type': 'boolean'}, 'freeCancelUntilHours': {'type': ['number', 'null']}, 'refundPercentAfterWindow': {'type': ['number', 'null']}}, 'additionalProperties': True}}, 'additionalProperties': True}
get_ota_hotel_detail
Hotel Detail by Name (one specific hotel)
Full detail (rooms, live prices, facilities, photos, reviews) from Booking.com for one named hotel over a date range, for requests about a single hotel rather than a whole city (search_hotels_live lists a city). The name is resolved through the city's listings, so it takes the hotel name together with its city; a Booking.com URL from an earlier result skips that lookup. OpenTravel direct listings are covered by get_hotel_detail. The fetch is live and takes up to about two minutes; under heavy load it can return not-found.
Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['checkIn', 'checkOut'], 'properties': {'city': {'type': 'string', 'description': "City of the hotel, used to resolve the name, e.g. 'Da Nang'. Required with hotelName."}, 'rooms': {'type': 'integer', 'default': 1, 'minimum': 1, 'description': 'Number of rooms (default 1)'}, 'adults': {'type': 'integer', 'default': 2, 'minimum': 1, 'description': 'Number of adults (default 2)'}, 'checkIn': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-in date YYYY-MM-DD. Must be today or later.'}, 'checkOut': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-out date YYYY-MM-DD. Must be after checkIn.'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string', 'description': 'Optional UI language. Indonesian (id) cannot be detected from text, so for Indonesian this is how the language is set.'}, 'hotelName': {'type': 'string', 'description': "Name of the hotel, e.g. 'Mercure Danang French Village Bana Hills'. Required unless propertyUrl is given."}, 'queryText': {'type': 'string', 'maxLength': 500, 'description': "Short excerpt (one sentence at most) of the guest's latest message in their own words, used only to detect the reply language; it is not stored or forwarded. It carries no names, contact details or other parts of the conversation."}, 'propertyUrl': {'type': 'string', 'description': 'Booking.com property URL from an earlier result (hotel.prices.booking.url); skips the name lookup.'}}, 'additionalProperties': False}
poll_flight_results
Poll Flight Results
Returns the current results of a flight search session started by search_flights_live: outbound and return options with airline, flight number, times, stops, fare and booking link. Results can be partial while the search runs; status reads 'completed' or 'failed' when it ends.
Solo lectura
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['sessionId'], 'properties': {'sessionId': {'type': 'string', 'format': 'uuid', 'description': 'Session ID from search_flights_live'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['sessionId', 'status', 'cached', 'origin', 'destination', 'departureDate', 'adults', 'cabin', 'tripType', 'outboundFlights', 'returnFlights', 'totalOutbound', 'totalReturn'], 'properties': {'cabin': {'type': 'string'}, 'adults': {'type': 'number'}, 'cached': {'type': 'boolean'}, 'origin': {'type': 'string'}, 'status': {'type': 'string'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string'}, 'tripType': {'type': 'string'}, 'sessionId': {'type': 'string'}, 'returnDate': {'type': 'string'}, 'destination': {'type': 'string'}, 'totalReturn': {'type': 'number'}, 'departureDate': {'type': 'string'}, 'returnFlights': {'type': 'array', 'items': {'$ref': '#/properties/outboundFlights/items'}}, 'totalOutbound': {'type': 'number'}, 'outboundFlights': {'type': 'array', 'items': {'type': 'object', 'required': ['airline', 'airlineCode', 'flightNumber', 'departure', 'arrival', 'duration', 'stops', 'stopCities', 'price', 'currency', 'cabin', 'bookingUrl'], 'properties': {'legs': {'type': 'array', 'items': {'type': 'object', 'required': ['departureAirport', 'arrivalAirport', 'departureTime', 'arrivalTime', 'departureDate', 'arrivalDate', 'airline', 'flightNumber', 'duration'], 'properties': {'airline': {'type': 'string'}, 'duration': {'type': 'number'}, 'arrivalDate': {'type': 'string'}, 'arrivalTime': {'type': 'string'}, 'flightNumber': {'type': 'string'}, 'departureDate': {'type': 'string'}, 'departureTime': {'type': 'string'}, 'arrivalAirport': {'type': 'string'}, 'departureAirport': {'type': 'string'}}, 'additionalProperties': True}}, 'cabin': {'type': 'string'}, 'price': {'type': 'number'}, 'stops': {'type': 'number'}, 'airline': {'type': 'string'}, 'arrival': {'type': 'object', 'required': ['airport', 'city', 'time', 'date'], 'properties': {'city': {'type': 'string'}, 'date': {'type': 'string'}, 'time': {'type': 'string'}, 'airport': {'type': 'string'}}, 'additionalProperties': True}, 'currency': {'type': 'string'}, 'duration': {'type': 'number'}, 'departure': {'type': 'object', 'required': ['airport', 'city', 'time', 'date'], 'properties': {'city': {'type': 'string'}, 'date': {'type': 'string'}, 'time': {'type': 'string'}, 'airport': {'type': 'string'}}, 'additionalProperties': True}, 'bookingUrl': {'type': 'string'}, 'stopCities': {'type': 'array', 'items': {'type': 'string'}}, 'airlineCode': {'type': 'string'}, 'flightNumber': {'type': 'string'}}, 'additionalProperties': True}}}, 'additionalProperties': True}
poll_search_results
Poll Search Results
Returns the current results of a hotel search session started by search_hotels_live: hotels with their price from each source, and OpenTravel direct listings with the propertyId that get_hotel_detail and get_hotel_info take. Results can be partial while the search runs; status reads 'completed' once every source has answered.
Solo lectura
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['sessionId', 'nights'], 'properties': {'area': {'type': 'string', 'maxLength': 120, 'description': 'Optional override for the area filter captured at search time'}, 'limit': {'type': 'integer', 'default': 50, 'maximum': 100, 'minimum': 0, 'description': 'Max hotels to return; 0 = all (default 50)'}, 'nights': {'type': 'integer', 'maximum': 365, 'minimum': 1, 'description': 'Number of nights'}, 'offset': {'type': 'integer', 'default': 0, 'minimum': 0, 'description': 'Skip first N hotels for pagination (default 0)'}, 'priceMax': {'type': 'number', 'maximum': 1000000000, 'minimum': 0, 'description': 'Optional override for the maximum-price filter'}, 'priceMin': {'type': 'number', 'maximum': 1000000000, 'minimum': 0, 'description': 'Optional override for the minimum-price filter'}, 'hotelName': {'type': 'string', 'maxLength': 200, 'description': 'Optional override for the hotel-name filter captured at search time'}, 'sessionId': {'type': 'string', 'maxLength': 128, 'minLength': 1, 'description': 'Session ID from search_hotels_live'}, 'priceCurrency': {'type': 'string', 'pattern': '^[A-Za-z]{3}$', 'description': "ISO 4217 code of priceMin/priceMax; defaults to the UI language's currency"}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['city', 'checkIn', 'checkOut', 'nights', 'status', 'progress', 'bookingStatus', 'agodaStatus', 'travelokaStatus', 'totalHotels', 'hotels', 'offset', 'limit', 'hasMore', 'tier', 'tier2AgodaStatus', 'tier2BookingStatus', 'tier2TravelokaStatus', 'opentravelStatus', 'opentravelResults', 'opentravelIndicativeResults', 'fxRates'], 'properties': {'city': {'type': 'string'}, 'tier': {'type': 'string'}, 'limit': {'type': 'number'}, 'cached': {'type': 'boolean'}, 'hotels': {'type': 'array', 'items': {'type': 'object', 'required': ['name', 'stars', 'rating', 'reviewCount', 'imageUrl', 'location', 'prices'], 'properties': {'name': {'type': 'string'}, 'stars': {'type': 'number'}, 'prices': {'type': 'object', 'properties': {'agoda': {'type': 'object', 'required': ['price', 'currency', 'url'], 'properties': {'url': {'type': 'string'}, 'price': {'type': 'number'}, 'currency': {'type': 'string'}}, 'additionalProperties': True}, 'booking': {'$ref': '#/properties/hotels/items/properties/prices/properties/agoda'}, 'traveloka': {'$ref': '#/properties/hotels/items/properties/prices/properties/agoda'}}, 'additionalProperties': True}, 'rating': {'type': 'number'}, 'imageUrl': {'type': 'string'}, 'location': {'type': 'string'}, 'reviewCount': {'type': 'number'}}, 'additionalProperties': True}}, 'nights': {'type': 'number'}, 'offset': {'type': 'number'}, 'status': {'type': 'string'}, 'checkIn': {'type': 'string'}, 'fxRates': {'type': 'object', 'additionalProperties': {'type': 'number'}}, 'hasMore': {'type': 'boolean'}, 'checkOut': {'type': 'string'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string'}, 'progress': {'type': 'number'}, 'sessionId': {'type': 'string'}, 'agodaStatus': {'type': 'string'}, 'totalHotels': {'type': 'number'}, 'bookingStatus': {'type': 'string'}, 'longStayNotice': {'type': ['string', 'null']}, 'travelokaStatus': {'type': 'string'}, 'opentravelStatus': {'type': 'string'}, 'tier2AgodaStatus': {'type': ['string', 'null']}, 'opentravelResults': {'type': 'array', 'items': {'type': 'object', 'required': ['propertyId', 'name', 'address', 'city', 'mainImageUrl', 'cheapestPrice', 'totalForStay', 'currency', 'nights', 'source', 'priceType'], 'properties': {'city': {'type': ['string', 'null']}, 'name': {'type': 'string'}, 'nights': {'type': 'number'}, 'source': {'type': 'string', 'const': 'OPENTRAVEL_DIRECT'}, 'address': {'type': ['string', 'null']}, 'country': {'type': ['string', 'null']}, 'currency': {'type': 'string'}, 'priceType': {'enum': ['available', 'indicative'], 'type': 'string'}, 'propertyId': {'type': 'string'}, 'countryCode': {'type': ['string', 'null']}, 'mainImageUrl': {'type': ['string', 'null']}, 'totalForStay': {'type': 'number'}, 'cheapestPrice': {'type': 'number'}, 'indicativeNote': {'type': 'string'}, 'availableRoomTypes': {'type': 'number'}}, 'additionalProperties': True}}, 'tier2BookingStatus': {'type': ['string', 'null']}, 'tier2TravelokaStatus': {'type': ['string', 'null']}, 'opentravelIndicativeResults': {'type': 'array', 'items': {'$ref': '#/properties/opentravelResults/items'}}}, 'additionalProperties': True}
request_booking
Request a Booking (hotel confirms, pay at the hotel)
Sends a booking request for a room at an OpenTravel partner hotel. Nothing is charged and no room is held: the hotel confirms the request by email, and the guest pays at the property on arrival. There is no payment step, now or later. Takes the room and rate from get_hotel_detail and the guest's name, phone number and email; when any of these is missing, the result asks for it and, in clients that show widgets, opens a form for it. A few properties require payment at booking time, and the result says so for those. Returns a confirmation code.
Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['propertyId', 'checkIn', 'checkOut', 'roomTypeId', 'adults', 'totalAmount', 'currency'], 'properties': {'adults': {'type': 'integer', 'minimum': 1, 'description': 'Number of adults'}, 'checkIn': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-in date YYYY-MM-DD. Must be today or later.'}, 'checkOut': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-out date YYYY-MM-DD. Must be after checkIn.'}, 'children': {'type': 'integer', 'default': 0, 'minimum': 0, 'description': 'Number of children (default 0)'}, 'currency': {'enum': ['VND', 'USD', 'EUR'], 'type': 'string', 'description': 'Currency of totalAmount, as quoted by get_hotel_detail for the chosen room.'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string', 'description': 'Optional response language hint. Only used when queryText gives no signal.'}, 'guestName': {'type': 'string', 'minLength': 1, 'description': 'Full name of the primary guest. When omitted, the result asks the user for it.'}, 'queryText': {'type': 'string', 'maxLength': 500, 'description': "Short excerpt (one sentence at most) of the guest's latest message in their own words, used only to detect the reply language; it is not stored or forwarded. It carries no names, contact details or other parts of the conversation."}, 'guestEmail': {'type': 'string', 'format': 'email', 'description': 'Email address the confirmation is sent to, as the guest gave it; it cannot be changed after the request is sent. When omitted, the result asks the user for it.'}, 'guestPhone': {'type': 'string', 'minLength': 1, 'description': 'Guest phone number; the hotel calls it to confirm the request. When omitted, the result asks the user for it.'}, 'propertyId': {'type': 'string', 'description': 'OpenTravel propertyId from get_hotel_detail'}, 'roomTypeId': {'type': 'string', 'description': 'roomTypeId from get_hotel_detail roomTypes array'}, 'totalAmount': {'type': 'number', 'description': "Total amount in the property's base currency"}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['bookingId', 'confirmationCode', 'status', 'paymentRequired', 'nextStep', 'assignedRoomId', 'quotedAmount', 'quotedCurrency'], 'properties': {'status': {'type': 'string'}, 'nextStep': {'type': 'string'}, 'bookingId': {'type': 'string'}, 'quotedAmount': {'type': 'number'}, 'assignedRoomId': {'type': ['string', 'null']}, 'quotedCurrency': {'type': 'string'}, 'paymentRequired': {'type': 'boolean'}, 'confirmationCode': {'type': 'string'}}, 'additionalProperties': False}
request_cancel_token
Request Cancellation Link (step 1 of 2)
First of two steps to cancel a booking. Emails a single-use cancellation token to the address on the booking, given its confirmation code and that same email address. Nothing is cancelled, charged or refunded by this step. The token expires after 24 hours and works once; cancel_booking completes the cancellation with it.
Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['confirmationCode', 'guestEmail'], 'properties': {'guestEmail': {'type': 'string', 'format': 'email', 'description': 'Guest email address â\x80\x94 must match the booking primary guest email'}, 'confirmationCode': {'type': 'string', 'minLength': 1, 'description': '8-char booking confirmation code, e.g. K7X9M2P4'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'message'], 'properties': {'message': {'type': 'string'}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
search_flights_live
Search Flights Live
Starts a live flight search for a route and date, one-way or return. Fares come from Agoda, Trip.com, Traveloka and Google Flights. Origin and destination are 3-letter IATA airport codes (for example SGN, HAN, DAD). Returns a session ID; poll_flight_results returns the results. When the route or date is missing, the result is a question for the user instead of a search.
Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'cabin': {'enum': ['economy', 'premium_economy', 'business', 'first'], 'type': 'string', 'default': 'economy', 'description': 'Cabin class (default economy)'}, 'adults': {'type': 'integer', 'default': 1, 'maximum': 20, 'minimum': 1, 'description': 'Number of adults (default 1)'}, 'origin': {'type': 'string', 'pattern': '^[A-Za-z]{3}$', 'description': "Departure airport IATA code, e.g. 'SGN'. When omitted, the result asks the user for it."}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string', 'description': 'Preferred UI language (en/vi/de/ja/ko/zh/fr/es/ru/th/id).'}, 'queryText': {'type': 'string', 'maxLength': 500, 'description': 'Optional short excerpt of the current request, used only to detect the UI language; it is not stored or forwarded.'}, 'returnDate': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Return date YYYY-MM-DD (omit for one-way). Must be on or after departureDate.'}, 'destination': {'type': 'string', 'pattern': '^[A-Za-z]{3}$', 'description': "Arrival airport IATA code, e.g. 'HAN'. When omitted, the result asks the user for it."}, 'departureDate': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Departure date YYYY-MM-DD, today or later. When omitted, the result asks the user for it.'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['sessionId', 'status', 'cached', 'origin', 'destination', 'departureDate', 'adults', 'cabin', 'tripType', 'outboundFlights', 'returnFlights', 'totalOutbound', 'totalReturn'], 'properties': {'cabin': {'type': 'string'}, 'adults': {'type': 'number'}, 'cached': {'type': 'boolean'}, 'origin': {'type': 'string'}, 'status': {'type': 'string'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string'}, 'tripType': {'type': 'string'}, 'sessionId': {'type': 'string'}, 'returnDate': {'type': 'string'}, 'destination': {'type': 'string'}, 'totalReturn': {'type': 'number'}, 'departureDate': {'type': 'string'}, 'returnFlights': {'type': 'array', 'items': {'$ref': '#/properties/outboundFlights/items'}}, 'totalOutbound': {'type': 'number'}, 'outboundFlights': {'type': 'array', 'items': {'type': 'object', 'required': ['airline', 'airlineCode', 'flightNumber', 'departure', 'arrival', 'duration', 'stops', 'stopCities', 'price', 'currency', 'cabin', 'bookingUrl'], 'properties': {'legs': {'type': 'array', 'items': {'type': 'object', 'required': ['departureAirport', 'arrivalAirport', 'departureTime', 'arrivalTime', 'departureDate', 'arrivalDate', 'airline', 'flightNumber', 'duration'], 'properties': {'airline': {'type': 'string'}, 'duration': {'type': 'number'}, 'arrivalDate': {'type': 'string'}, 'arrivalTime': {'type': 'string'}, 'flightNumber': {'type': 'string'}, 'departureDate': {'type': 'string'}, 'departureTime': {'type': 'string'}, 'arrivalAirport': {'type': 'string'}, 'departureAirport': {'type': 'string'}}, 'additionalProperties': True}}, 'cabin': {'type': 'string'}, 'price': {'type': 'number'}, 'stops': {'type': 'number'}, 'airline': {'type': 'string'}, 'arrival': {'type': 'object', 'required': ['airport', 'city', 'time', 'date'], 'properties': {'city': {'type': 'string'}, 'date': {'type': 'string'}, 'time': {'type': 'string'}, 'airport': {'type': 'string'}}, 'additionalProperties': True}, 'currency': {'type': 'string'}, 'duration': {'type': 'number'}, 'departure': {'type': 'object', 'required': ['airport', 'city', 'time', 'date'], 'properties': {'city': {'type': 'string'}, 'date': {'type': 'string'}, 'time': {'type': 'string'}, 'airport': {'type': 'string'}}, 'additionalProperties': True}, 'bookingUrl': {'type': 'string'}, 'stopCities': {'type': 'array', 'items': {'type': 'string'}}, 'airlineCode': {'type': 'string'}, 'flightNumber': {'type': 'string'}}, 'additionalProperties': True}}}, 'additionalProperties': True}
search_hotels_live
Search Hotels Live
Starts a live hotel search for a city and date range. Prices come from Agoda, Booking.com and Traveloka, plus direct rates from OpenTravel partner hotels. Returns a session ID; poll_search_results returns the results as they arrive. Optional filters narrow the results by hotel name, area or total price for the stay. Prices depend on the party: it defaults to 2 adults in 1 room, and the result states the party searched and flags when it was defaulted. When the city or dates are missing, the result is a question for the user instead of a search; the stay dates searched are echoed back for confirmation.
Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'area': {'type': 'string', 'maxLength': 120, 'description': 'Optional district, ward, or neighborhood filter within the city'}, 'city': {'type': 'string', 'maxLength': 100, 'minLength': 1, 'description': "City or broad destination, e.g. 'Da Nang'. When omitted, the result asks the user for it."}, 'rooms': {'type': 'integer', 'default': 1, 'maximum': 20, 'minimum': 1, 'description': 'Number of rooms (default 1).'}, 'adults': {'type': 'integer', 'default': 2, 'maximum': 20, 'minimum': 1, 'description': 'Number of adults (default 2). Prices depend on it.'}, 'checkIn': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-in date (YYYY-MM-DD), today or later. When omitted, the result asks the user for it.'}, 'checkOut': {'type': 'string', 'pattern': '^\\d{4}-\\d{2}-\\d{2}$', 'description': 'Check-out date (YYYY-MM-DD), after checkIn. When omitted, the result asks the user for it.'}, 'children': {'type': 'integer', 'default': 0, 'maximum': 20, 'minimum': 0, 'description': 'Number of children sharing the room (default 0). OTA prices cannot include children; the result says so when children are given.'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string', 'description': 'Preferred UI language (en/vi/de/ja/ko/zh/fr/es/ru/th/id).'}, 'priceMax': {'type': 'number', 'maximum': 1000000000, 'minimum': 0, 'description': 'Maximum total price for the whole stay (not per night), in priceCurrency.'}, 'priceMin': {'type': 'number', 'maximum': 1000000000, 'minimum': 0, 'description': 'Minimum total price for the whole stay (not per night), in priceCurrency.'}, 'hotelName': {'type': 'string', 'maxLength': 200, 'description': 'Optional hotel-name filter when the user names a specific property'}, 'queryText': {'type': 'string', 'maxLength': 500, 'description': 'Optional short excerpt of the current request, used only to detect the UI language; it is not stored or forwarded.'}, 'priceCurrency': {'type': 'string', 'pattern': '^[A-Za-z]{3}$', 'description': 'ISO 4217 code of priceMin/priceMax (USD, EUR, VND, â\x80¦); defaults to the currency of the UI language.'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['city', 'checkIn', 'checkOut', 'nights', 'status', 'progress', 'bookingStatus', 'agodaStatus', 'travelokaStatus', 'totalHotels', 'hotels', 'offset', 'limit', 'hasMore', 'tier', 'tier2AgodaStatus', 'tier2BookingStatus', 'tier2TravelokaStatus', 'opentravelStatus', 'opentravelResults', 'opentravelIndicativeResults', 'fxRates'], 'properties': {'city': {'type': 'string'}, 'tier': {'type': 'string'}, 'limit': {'type': 'number'}, 'cached': {'type': 'boolean'}, 'hotels': {'type': 'array', 'items': {'type': 'object', 'required': ['name', 'stars', 'rating', 'reviewCount', 'imageUrl', 'location', 'prices'], 'properties': {'name': {'type': 'string'}, 'stars': {'type': 'number'}, 'prices': {'type': 'object', 'properties': {'agoda': {'type': 'object', 'required': ['price', 'currency', 'url'], 'properties': {'url': {'type': 'string'}, 'price': {'type': 'number'}, 'currency': {'type': 'string'}}, 'additionalProperties': True}, 'booking': {'$ref': '#/properties/hotels/items/properties/prices/properties/agoda'}, 'traveloka': {'$ref': '#/properties/hotels/items/properties/prices/properties/agoda'}}, 'additionalProperties': True}, 'rating': {'type': 'number'}, 'imageUrl': {'type': 'string'}, 'location': {'type': 'string'}, 'reviewCount': {'type': 'number'}}, 'additionalProperties': True}}, 'nights': {'type': 'number'}, 'offset': {'type': 'number'}, 'status': {'type': 'string'}, 'checkIn': {'type': 'string'}, 'fxRates': {'type': 'object', 'additionalProperties': {'type': 'number'}}, 'hasMore': {'type': 'boolean'}, 'checkOut': {'type': 'string'}, 'language': {'enum': ['en', 'vi', 'de', 'ja', 'ko', 'zh', 'fr', 'es', 'ru', 'th', 'id'], 'type': 'string'}, 'progress': {'type': 'number'}, 'sessionId': {'type': 'string'}, 'agodaStatus': {'type': 'string'}, 'totalHotels': {'type': 'number'}, 'bookingStatus': {'type': 'string'}, 'longStayNotice': {'type': ['string', 'null']}, 'travelokaStatus': {'type': 'string'}, 'opentravelStatus': {'type': 'string'}, 'tier2AgodaStatus': {'type': ['string', 'null']}, 'opentravelResults': {'type': 'array', 'items': {'type': 'object', 'required': ['propertyId', 'name', 'address', 'city', 'mainImageUrl', 'cheapestPrice', 'totalForStay', 'currency', 'nights', 'source', 'priceType'], 'properties': {'city': {'type': ['string', 'null']}, 'name': {'type': 'string'}, 'nights': {'type': 'number'}, 'source': {'type': 'string', 'const': 'OPENTRAVEL_DIRECT'}, 'address': {'type': ['string', 'null']}, 'country': {'type': ['string', 'null']}, 'currency': {'type': 'string'}, 'priceType': {'enum': ['available', 'indicative'], 'type': 'string'}, 'propertyId': {'type': 'string'}, 'countryCode': {'type': ['string', 'null']}, 'mainImageUrl': {'type': ['string', 'null']}, 'totalForStay': {'type': 'number'}, 'cheapestPrice': {'type': 'number'}, 'indicativeNote': {'type': 'string'}, 'availableRoomTypes': {'type': 'number'}}, 'additionalProperties': True}}, 'tier2BookingStatus': {'type': ['string', 'null']}, 'tier2TravelokaStatus': {'type': ['string', 'null']}, 'opentravelIndicativeResults': {'type': 'array', 'items': {'$ref': '#/properties/opentravelResults/items'}}}, 'additionalProperties': True}
Añadido
cancel_booking
4 de October de 2026 a las 02:40
Añadido
request_cancel_token
4 de October de 2026 a las 02:40
Añadido
get_cancellation_policy
4 de October de 2026 a las 02:40
Añadido
get_hotel_info
4 de October de 2026 a las 02:40
Añadido
request_booking
4 de October de 2026 a las 02:40
Añadido
check_booking_status
4 de October de 2026 a las 02:40
Añadido
get_ota_hotel_detail
4 de October de 2026 a las 02:40
Añadido
get_hotel_detail
4 de October de 2026 a las 02:40
Añadido
poll_flight_results
4 de October de 2026 a las 02:40
Añadido
search_flights_live
4 de October de 2026 a las 02:40
Añadido
poll_search_results
4 de October de 2026 a las 02:40
Añadido
search_hotels_live
4 de October de 2026 a las 02:40