Book an activity
create_bookingBook a quoted activity for the signed-in client. Only call this after the user has seen the quoted total and explicitly agreed. Pass the quote_id, confirm_total_cents equal to the quote's total_cents, and a unique idempotency_key (reuse the same key when retrying). Nothing is charged here. The booking is held, not confirmed, and the reply says how to pay: a secure opas.world payment link, or in assistants that support in-chat payment, the payment handler details to pass to pay_for_booking.
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": {
"quote_id": "<quote_id>",
"confirm_total_cents": "<confirm_total_cents>",
"idempotency_key": "<idempotency_key>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | ||
| quote_id | Yes | ||
| last_name | No | ||
| first_name | No | ||
| idempotency_key | Yes | ||
| other_participants | No | Everyone else in the party, with name and email. | |
| confirm_total_cents | Yes |