Cancel UCP Checkout Session
cancel_checkoutAbort an open uchk_* UCP checkout session before payment settlement. Use this when the buyer declines or restarts checkout; cannot reverse an already-paid Stripe or on-chain Base USDC transaction. Parameters: pass top-level id ("uchk_*") and meta.idempotency-key. Behavior: transitions checkout status to "canceled" with idempotency replay protection and zero charge.
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>"
},
"name": "cancel_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Checkout identifier (uchk_<20 hex chars>) to cancel. | |
| meta | No | UCP protocol request metadata (meta.ucp-agent and meta.idempotency-key). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ucp | Yes | Negotiated UCP protocol metadata and capability intersection. |