Create booking payment link
create_bookingCreates or resumes a hotel booking from a chosen rate, collecting guest and contact details to return the amount, terms, and private payment link for user confirmation.
Instructions
Create or resume a booking for a user-selected rate from get_rates. Provide guests and contact details. Returns amount, currency, accepted terms and a private paymentUrl. Show terms and ask for confirmation before sharing paymentUrl exactly. Nothing is charged until the user pays on Fortrip/Stripe. Same user and stay resumes the same order; paid stays return 409. Does not cancel or modify bookings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rooms | Yes | ||
| adults | Yes | Adults per room | |
| guests | Yes | At least one guest per room; Latin letters as on passport; roomNo is 1-based | |
| roomId | Yes | roomId from get_rates | |
| checkIn | Yes | Calendar date in YYYY-MM-DD format; checkOut must be 1–15 nights after checkIn. | |
| hotelId | Yes | ||
| checkOut | Yes | Calendar date in YYYY-MM-DD format; checkOut must be 1–15 nights after checkIn. | |
| contactName | Yes | ||
| childrenAges | No | Age in years of each child, 0–17; omit or use [] when no children are travelling. | |
| contactEmail | No | ||
| contactPhone | Yes | ||
| ratePlanCode | Yes | ratePlanCode from get_rates | |
| specialRequests | No | English only; not guaranteed |