Cancel a checkout session
cancel_checkout_linkCancels a create_checkout_link session the human has not opened yet: its handoff link stops binding a checkout, and get_checkout_status answers session_cancelled from then on. Nothing has been paid at that stage, so nothing is refunded and no human is needed. Once the human opens checkout the call is refused with session_in_checkout and the checkout stands: an unpaid one expires on its own, a paid one is refunded by SMKlog support and get_refund_status follows it. Idempotent: cancelling a cancelled session answers the same. No carrier call, no quote allowance.
Parameter rules:
session_id is the as_ plus UUID id from create_checkout_link.
An unknown, malformed or expired id answers session_not_found.
From checkout_started on: session_in_checkout, and nothing changes.
To try again, call create_checkout_link for a new session.
60 calls an hour per client, shared with get_checkout_status.
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_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session_id from create_checkout_link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | What, if anything, the agent should do now | |
| amount | No | The amount the session was anchored to, USD | |
| status | Yes | ||
| service | No | The service the session was anchored to | |
| checkout | No | Always null: no checkout was opened | |
| currency | No | ISO currency, USD | |
| created_at | No | When create_checkout_link made the session, ISO 8601 | |
| expires_at | No | When the session would have stopped answering, ISO 8601 | |
| session_id | Yes | The session cancelled | |
| cancelled_at | Yes | When it was cancelled, ISO 8601 | |
| quote_reused | No |