Create a checkout link
create_booking_linkCreate a secure checkout link for one room option from get_hotel. Give the link to the traveller: it opens our checkout with that exact room, dates and price, where they enter their details and pay (rate re-confirmed live). Links last 24 hours. Never ask the traveller for card details yourself.
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": {
"hotel_id": "<hotel_id>",
"option_id": "<option_id>",
"checkin": "<checkin>",
"checkout": "<checkout>"
},
"name": "create_booking_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rooms | No | ||
| adults | No | ||
| checkin | Yes | YYYY-MM-DD | |
| checkout | Yes | YYYY-MM-DD | |
| hotel_id | Yes | ||
| option_id | Yes | option_id from get_hotel | |
| children_ages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| room | Yes | ||
| board | No | ||
| hotel | Yes | ||
| refundable | No | ||
| booking_link | Yes | Give this URL to the traveller; it opens our secure checkout with the room, dates and price. Valid 24 hours. | |
| total_price_usd | Yes |