Cancel Checkout Session
cancel_checkout_sessionCancel an active checkout session and clear the cart to abandon a purchase or restart the process.
Instructions
Cancel a checkout session and clear the cart.
Use this when the user wants to abandon a checkout or start over.
Args: session_id: From create_checkout_session result.
Returns: Dictionary with session_id and status 'canceled'.
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>"
},
"name": "cancel_checkout_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||