Update Checkout Session
update_checkout_sessionUpdate a checkout session by attaching billing and shipping addresses. Provide the delivery address after creating the session to make it ready for final completion.
Instructions
Attach billing and shipping address to a checkout session.
Use this after create_checkout_session to provide the delivery address. Required before calling complete_checkout. If shipping is omitted, billing address is used for shipping too.
Args: session_id: From create_checkout_session result. billing: Billing address dict with keys: first_name, last_name, email, address_1, city, postcode, country (default 'CH'), state (optional). shipping: Shipping address dict (same keys as billing). Optional.
Returns: Updated UCP CheckoutSession with status 'ready_for_complete'.
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": {
"session_id": "<session_id>",
"billing": "<billing>"
},
"name": "update_checkout_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| billing | Yes | ||
| shipping | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||