Pay and confirm an approved reservation
complete_bookingCharges the exact approved USD booking total using a Stripe shared payment token from the customer's authorized wallet, then verifies reservation confirmation. First call get_booking_status and obtain explicit customer approval of that total and the booking terms. Never accept card numbers, CVC, or saved-card IDs. The token must be issued to the returned Stripe business profile for this amount. Retries reuse the SAME checkout_url; this tool never creates another reservation. Follow customer_action: verify_in_agent_wallet means the issuing wallet must handle the issued token's next_action before retrying this same booking. Only a confirmed result means the ride is booked.
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": {
"checkout_url": "<checkout_url>",
"approved_total_cents": "<approved_total_cents>",
"currency": "<currency>",
"customer_confirmed": "<customer_confirmed>",
"shared_payment_token": "<shared_payment_token>"
},
"name": "complete_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | ||
| checkout_url | Yes | Exact secure checkout_url from book_ride. Treat it as private; never search for or share it publicly. | |
| customer_confirmed | Yes | Only true after the customer approves this booking, its final total, terms, and this one-time payment through their agent wallet. | |
| approved_total_cents | Yes | Exact USD total from get_booking_status that the customer explicitly approved for payment. | |
| shared_payment_token | Yes | Stripe Shared Payment Token obtained from the customer's approved wallet, scoped to the returned Stripe profile and total. Never card numbers, CVCs, saved-card IDs, or a token invented by the assistant. |