Initiate Booking
initiate_bookingUse this when the user has agreed to a quoted price and wants to book: turns a live quote_id into a booking proposal with final pricing and terms for review. Nothing is charged or booked yet — show the proposal to the user. When they want to go ahead, call request_human_booking_approval (an approval form in this chat, with a saved card) or confirm_booking (Zestli's secure checkout link) with the proposal_id. Payment happens only in that form or on the checkout, where the user approves and pays; a reply in chat pays nothing. For a person under 18 (guardian_must_pay true) there is no checkout: use ask_someone_to_pay so their parent or legal guardian pays. Send one idempotency_key per intended purchase and reuse it on retry; each call without one creates a new proposal that holds its own seats. Creating another proposal, including from a revised quote, does not replace or release an earlier proposal or hold. Only a current Zestli readback establishes whether an earlier hold is active, released, or expired. State amounts using the *_display fields.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request": "<request>"
},
"name": "initiate_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | Input for initiating a booking (creates a proposal, not a booking). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| review | No | ||
| status | No | ||
| message | No | ||
| currency | No | ||
| quote_id | Yes | ||
| booking_id | No | ||
| error_code | No | ||
| is_sandbox | No | ||
| line_items | No | ||
| proposal_id | Yes | ||
| checkout_url | No | ||
| confirmation | No | ||
| total_amount | Yes | ||
| total_display | No | ||
| guest_questions | No | ||
| travelers_saved | No | ||
| travelers_needed | No | ||
| guardian_must_pay | No | ||
| cancellation_policy | No |