Update UCP Checkout Session
update_checkoutUpdate line items, buyer contact/wallet details, or selected fulfillment options on an open uchk_* checkout session. Use this to supply buyer email or 0x wallet before calling complete_checkout; rejected once canceled or completed. Parameters: pass top-level id ("uchk_*") and checkout object containing optional line_items, buyer, context, or fulfillment. Behavior: full-replace line_items update when supplied, recomputes final USD cent totals, and preserves session continuity.
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": {
"id": "<id>",
"checkout": "<checkout>"
},
"name": "update_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Active checkout session identifier (uchk_<20 hex chars>). | |
| meta | No | UCP protocol request metadata (meta.ucp-agent and meta.idempotency-key). | |
| checkout | Yes | Checkout fields to update. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ucp | Yes | Negotiated UCP protocol metadata and capability intersection. |