Confirm a reservation with the user's code
confirm_reservation_codeUse when the user gives you the 6-digit code they received for a new reservation. Never guess or invent a code. Returns the reservation status: the rental company may still have to accept it. Example: {"reservation_number":"AB12CD34","status_token":"from_reservation","code":"123456"}.
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": {
"reservation_number": "<reservation_number>",
"status_token": "<status_token>",
"code": "<code>"
},
"name": "confirm_reservation_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 6-digit code the user received. | |
| market | No | ||
| status_token | Yes | ||
| reservation_number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | No | ||
| reason | No | ||
| status | No | ok | |
| payment | No | ||
| messages | No | ||
| policies | No | ||
| expires_at | No | ||
| next_steps | No | ||
| reservation | No | ||
| capabilities | No | ||
| confirmation | No | ||
| continue_url | No | ||
| has_recovery | No | ||
| recovery_url | No | ||
| extension_block | No | ||
| content_language | No | ||
| partner_decision | No | ||
| reservation_number | No | ||
| partner_confirmation | No |