DocumentationMCPCLI

Introduction

  • Overview

Hotels

  • Search hotels
  • Get hotel details
  • Get live hotel rates

Booking

  • Create hotel booking payment link

Guides

  • Get hotel planning guide

Booking

Create hotel booking payment link

Create (or resume) a booking for one rate from get_hotel_rates, with the same rooms, adults and childrenAges (per room). Returns the amount and currency the user will be charged, the accepted terms (meal plan, cancellation, confirmation, pay-at-hotel fees), the stay as booked, and paymentUrl: a Fortrip page that recaps the booking and continues to payment. Nothing is charged until the user pays there; anyone holding paymentUrl can pay. The same user and stay always returns the same order; a stay that is already paid returns 409. This tool can't change or cancel a booking: for changes, cancellations or refunds the user emails info@fortrip.ai with the booking's orderUrl. Can take up to about two minutes; if the call times out, call it again with the same details — it resumes the same order.

book_hotel · Creates an unpaid order · CLI: fortrip hotels book

Input

hotelIdintegerrequired

Hotel id.> 0

roomIdstringrequired

roomId from get_hotel_rates≥ 1 chars

ratePlanCodestringrequired

ratePlanCode from get_hotel_rates≥ 1 chars

checkInstringrequired

Check-in date, yyyy-MM-dd.

checkOutstringrequired

Check-out date, yyyy-MM-dd. Stays are 1 to 15 nights.

roomsintegerrequired

Number of rooms, as in get_hotel_rates; every room has the same occupancy1–8

adultsintegerrequired

Adults per room, not in total, as in get_hotel_rates (2 rooms for 4 adults = rooms 2, adults 2)1–8

childrenAgesinteger[]

Age of each child in one room (0-17), per room, as in get_hotel_rates≤ 8 items · each 0–17 · default []

guestsobject[]required

At least one guest per room, no more than the room sleeps. Names in Latin letters as on the passport; transliterate accents (Müller → Mueller).≥ 1 items

guests[].firstNamestringrequired

First name.1–60 chars

guests[].lastNamestringrequired

Last name.1–60 chars

guests[].roomNointegerrequired

Room the guest stays in, starting at 1.1–8

contactNamestringrequired

Contact person for the booking.1–120 chars

contactPhonestringrequired

Contact phone number.3–40 chars

contactEmailstring

Contact email.

specialRequestsstring

Requests for the hotel, in English. Not guaranteed.0–500 chars

Output

Returns the Booking result object as structuredContent. Errors are described in the overview.

PreviousGet live hotel ratesNextGet hotel planning guide

On this page

  • Input
  • Output
Fortrip

Opinionated trip planning, built for real itineraries.

Plan

  • AI Trip Planner
  • Validator
  • Transport
  • Stays

Company

  • Pricing
  • About
  • Team
  • Blog
  • Decision Optimization
  • Itinerary Selection
  • News

Resources

  • Explore Destinations
  • Brand Assets
  • Responsible Travel
  • vs ChatGPT
  • Best AI travel planner
  • FAQ

© 2026 FortripAI, Inc.

PrivacyTerms
info@fortrip.ai+1-650-272-16121111b South Governors Ave, Dover, DE 19904
Skip to main content
Fortrip Logo
HomeExplorePlanningPricing
CLIMCPDocs
Saved0